From ee2999605acc6a41e343198266e58d125dd9b7ac Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 19 Nov 2026 12:27:55 -0500 Subject: [PATCH 1/4] chore(ci): run config registry scripts from libdatadog-build 1.15.0 The copied config-registry jobs now run the scripts baked into the libdatadog-build 1.15.0 packaging image instead of downloading two of them from a content-addressed URL. That URL is no longer published, and the 1.15.0 validation script imports sibling modules that a two-file download would miss. Also adds the new optional variables from the 1.15.0 template and drops MULTIPLE_RELEASE_LINES and BACKFILLED, which the scripts no longer read. --- .gitlab-ci.yml | 6 ++---- .gitlab/config-registry.yml | 32 ++++++++++++-------------------- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6dda2cc18..da888218f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,22 +14,20 @@ include: # Config Registry CI Jobs validate_supported_configurations_v2_local_file: stage: config-validation - image: registry.ddbuild.io/ci/libdatadog-build/packaging:100425777 + image: registry.ddbuild.io/ci/libdatadog-build/packaging:154750924 tags: ["arch:amd64"] rules: - when: on_success extends: .validate_supported_configurations_v2_local_file variables: LOCAL_JSON_PATH: "supported-configurations.json" - BACKFILLED: true update_central_configurations_version_range_v2: stage: config-validation - image: registry.ddbuild.io/ci/libdatadog-build/packaging:100425777 + image: registry.ddbuild.io/ci/libdatadog-build/packaging:154750924 tags: ["arch:amd64"] extends: .update_central_configurations_version_range_v2 variables: LOCAL_REPO_NAME: "dd-trace-cpp" LOCAL_JSON_PATH: "supported-configurations.json" LANGUAGE_NAME: "cpp" - MULTIPLE_RELEASE_LINES: "false" diff --git a/.gitlab/config-registry.yml b/.gitlab/config-registry.yml index 885c27801..eb16db25c 100644 --- a/.gitlab/config-registry.yml +++ b/.gitlab/config-registry.yml @@ -1,17 +1,6 @@ -# This CI jobs are copied from libdatadog-build one-pipeline.yml gitlab template. -# This URL is available in the dd-gitlab/publish-content-addresable-templates job whenever -# a change is made on the one-pipeline template. -variables: - SCRIPTS_BASE_URL: https://gitlab-templates.ddbuild.io/libdatadog/one-pipeline/ca/f14ac28614630d12bcfe6cba4fd8d72dce142c62ff0b053ba7c323622104ebd7/scripts/config-inversion/ - -.download-scripts-from-template: &download-scripts-from-template - - mkdir -p scripts - - | - for script_file in "config-inversion-local-validation.py" "config-inversion-update-supported-range.py" - do - curl --location --fail --show-error --output "scripts/${script_file}" "${SCRIPTS_BASE_URL}/${script_file}" - chmod +x scripts/$script_file - done +# These CI jobs are copied from the libdatadog-build 1.15.0 one-pipeline.yml template. +# The scripts ship in the libdatadog-build packaging image, so jobs extending these +# must use the packaging image tag published with that template version. .validate_supported_configurations_v2_local_file: allow_failure: false @@ -19,23 +8,26 @@ variables: - when: on_success variables: LOCAL_JSON_PATH: "" - BACKFILLED: "true" before_script: - - *download-scripts-from-template + - pip3 install requests jsonschema script: - - scripts/config-inversion-local-validation.py + - /scripts/config-inversion/config-inversion-local-validation.py .update_central_configurations_version_range_v2: allow_failure: false + needs: [] rules: - if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/' when: always variables: LOCAL_JSON_PATH: "" LANGUAGE_NAME: "" - MULTIPLE_RELEASE_LINES: "false" # expect "true" or "false" as a value to determine if a new "branch" identifier is needed to differentiate between multiple release lines + SEND_ALIASES: "false" + CONFIG_REGISTRY_DRY_RUN: "false" + CONFIG_REGISTRY_ALLOW_MASS_REMOVAL: "false" + CONFIG_REGISTRY_ALLOW_PARTIAL_HISTORY: "false" before_script: - - *download-scripts-from-template + - pip install requests pyyaml - export FP_API_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.$CI_PROJECT_NAME.FP_API_KEY --with-decryption --query "Parameter.Value" --out text) script: - - scripts/config-inversion-update-supported-range.py \ No newline at end of file + - /scripts/config-inversion/config-inversion-update-supported-range.py From 1fcfd1a69d072091504339b12c175dfabd8001a6 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 19 Nov 2026 13:09:37 -0500 Subject: [PATCH 2/4] chore(ci): include the one-pipeline template for config registry jobs Replace the copied config registry jobs with an include of the versioned libdatadog-build one-pipeline template, the same way dd-trace-go does. The template version now lives only in .gitlab/one-pipeline.locked.yml, which the libdatadog-build one-pipeline campaign rewrites on each release. SKIP_SHARED_PIPELINE keeps the packaging, publishing and system-test jobs out of the pipeline. Two template jobs don't check it, so they are turned off here: deploy_to_reliability_env and notify-pipeline-failure. The image, runner tag, and rules now come from the template. The stages the template jobs use replace the config-validation stage. LOCAL_REPO_NAME is dropped because the scripts don't read it. --- .gitlab-ci.yml | 29 ++++++++++++++++------------- .gitlab/config-registry.yml | 33 --------------------------------- .gitlab/one-pipeline.locked.yml | 4 ++++ 3 files changed, 20 insertions(+), 46 deletions(-) delete mode 100644 .gitlab/config-registry.yml create mode 100644 .gitlab/one-pipeline.locked.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da888218f..18fc573dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,36 @@ stages: - - config-validation + - shared-pipeline-build + - shared-pipeline-test + - shared-pipeline-publish - benchmarks - benchmarks-report variables: + # Only the config registry jobs are used from the one-pipeline template. SKIP_SHARED_PIPELINE: "true" include: - - local: ".gitlab/config-registry.yml" + - local: ".gitlab/one-pipeline.locked.yml" - local: ".gitlab/benchmarks.yml" - -# Config Registry CI Jobs +# Config Registry CI Jobs, extended from the one-pipeline template validate_supported_configurations_v2_local_file: - stage: config-validation - image: registry.ddbuild.io/ci/libdatadog-build/packaging:154750924 - tags: ["arch:amd64"] - rules: - - when: on_success extends: .validate_supported_configurations_v2_local_file variables: LOCAL_JSON_PATH: "supported-configurations.json" update_central_configurations_version_range_v2: - stage: config-validation - image: registry.ddbuild.io/ci/libdatadog-build/packaging:154750924 - tags: ["arch:amd64"] extends: .update_central_configurations_version_range_v2 variables: - LOCAL_REPO_NAME: "dd-trace-cpp" LOCAL_JSON_PATH: "supported-configurations.json" LANGUAGE_NAME: "cpp" + +# These template jobs ignore SKIP_SHARED_PIPELINE and would trigger the +# reliability environment or post release-failure alerts for dd-trace-cpp. +deploy_to_reliability_env: + rules: + - when: never + +notify-pipeline-failure: + rules: + - when: never diff --git a/.gitlab/config-registry.yml b/.gitlab/config-registry.yml deleted file mode 100644 index eb16db25c..000000000 --- a/.gitlab/config-registry.yml +++ /dev/null @@ -1,33 +0,0 @@ -# These CI jobs are copied from the libdatadog-build 1.15.0 one-pipeline.yml template. -# The scripts ship in the libdatadog-build packaging image, so jobs extending these -# must use the packaging image tag published with that template version. - -.validate_supported_configurations_v2_local_file: - allow_failure: false - rules: - - when: on_success - variables: - LOCAL_JSON_PATH: "" - before_script: - - pip3 install requests jsonschema - script: - - /scripts/config-inversion/config-inversion-local-validation.py - -.update_central_configurations_version_range_v2: - allow_failure: false - needs: [] - rules: - - if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/' - when: always - variables: - LOCAL_JSON_PATH: "" - LANGUAGE_NAME: "" - SEND_ALIASES: "false" - CONFIG_REGISTRY_DRY_RUN: "false" - CONFIG_REGISTRY_ALLOW_MASS_REMOVAL: "false" - CONFIG_REGISTRY_ALLOW_PARTIAL_HISTORY: "false" - before_script: - - pip install requests pyyaml - - export FP_API_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.$CI_PROJECT_NAME.FP_API_KEY --with-decryption --query "Parameter.Value" --out text) - script: - - /scripts/config-inversion/config-inversion-update-supported-range.py diff --git a/.gitlab/one-pipeline.locked.yml b/.gitlab/one-pipeline.locked.yml new file mode 100644 index 000000000..fbe1186eb --- /dev/null +++ b/.gitlab/one-pipeline.locked.yml @@ -0,0 +1,4 @@ +# DO NOT EDIT THIS FILE MANUALLY +# This file is auto-generated by automation. +include: + - remote: https://gitlab-templates.ddbuild.io/libdatadog/include/versions/1.15.0/one-pipeline.yml From 0f53b85dc98a017869847feb33a134c7b0b2d803 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 19 Nov 2026 13:13:30 -0500 Subject: [PATCH 3/4] chore(ci): trim comments in .gitlab-ci.yml deploy_to_reliability_env would trigger the reliability environment and notify-pipeline-failure would post release-failure alerts, so both stay off. The template's no-op finished job still runs in every pipeline, as it does in dd-trace-go. --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18fc573dc..21f40f4c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,14 +6,12 @@ stages: - benchmarks-report variables: - # Only the config registry jobs are used from the one-pipeline template. SKIP_SHARED_PIPELINE: "true" include: - local: ".gitlab/one-pipeline.locked.yml" - local: ".gitlab/benchmarks.yml" -# Config Registry CI Jobs, extended from the one-pipeline template validate_supported_configurations_v2_local_file: extends: .validate_supported_configurations_v2_local_file variables: @@ -25,8 +23,7 @@ update_central_configurations_version_range_v2: LOCAL_JSON_PATH: "supported-configurations.json" LANGUAGE_NAME: "cpp" -# These template jobs ignore SKIP_SHARED_PIPELINE and would trigger the -# reliability environment or post release-failure alerts for dd-trace-cpp. +# Template jobs that ignore SKIP_SHARED_PIPELINE deploy_to_reliability_env: rules: - when: never From abaa5bcaf3f0b4d826a3532f9ccdd739b0c8c560 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 19 Nov 2026 16:11:59 -0500 Subject: [PATCH 4/4] Bump one-pipeline template to 1.16.0 --- .gitlab/one-pipeline.locked.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/one-pipeline.locked.yml b/.gitlab/one-pipeline.locked.yml index fbe1186eb..7586c87a2 100644 --- a/.gitlab/one-pipeline.locked.yml +++ b/.gitlab/one-pipeline.locked.yml @@ -1,4 +1,4 @@ # DO NOT EDIT THIS FILE MANUALLY # This file is auto-generated by automation. include: - - remote: https://gitlab-templates.ddbuild.io/libdatadog/include/versions/1.15.0/one-pipeline.yml + - remote: https://gitlab-templates.ddbuild.io/libdatadog/include/versions/1.16.0/one-pipeline.yml