Skip to content

Commit eebb4fe

Browse files
authored
ci: move one-pipeline jobs to shared child pipeline (#3688)
Instead of including one-pipeline.locked.yml in the parent pipeline (which caused package-oci and other shared-pipeline jobs to leak into the parent), move the two supported-configurations validation jobs to generate-shared.php where the shared-pipeline include belongs. This removes all SKIP_SHARED_PIPELINE workarounds that were added as a band-aid in #3679, #3682, and supersedes #3687. The validate_supported_configurations_v2_local_file and update_central_configurations_version_range_v2 jobs now run in the shared-trigger child pipeline (shared-gen.yml), which includes one-pipeline.locked.yml for the required job templates.
1 parent 988edd2 commit eebb4fe

2 files changed

Lines changed: 15 additions & 32 deletions

File tree

.gitlab-ci.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
stages:
22
- build
33
- tests
4-
- shared-pipeline
54
- deploy
65
- ci-build
76

87
variables:
98
GIT_SUBMODULE_STRATEGY: recursive
109
# Only clone libdatadog submodule by default
1110
GIT_SUBMODULE_PATHS: libdatadog
12-
# Suppress shared-pipeline jobs (package-oci and its downstream) in the
13-
# parent pipeline. They run in the child pipeline (package-gen.yml) where
14-
# package loader artifacts are available. Override to "false" in
15-
# package-trigger so the child pipeline runs them correctly.
16-
SKIP_SHARED_PIPELINE: "true"
1711
RELIABILITY_ENV_BRANCH:
1812
value: "master"
1913
description: "Run a specific datadog-reliability-env branch downstream"
@@ -23,7 +17,6 @@ include:
2317
- project: DataDog/apm-reliability/libdatadog-build
2418
ref: 5826819695d93286569e70ed087ae6bf906ce2c3
2519
file: templates/ci_authenticated_job.yml
26-
- local: .gitlab/one-pipeline.locked.yml
2720
- local: .gitlab/ci-images.yml
2821

2922
generate-templates:
@@ -102,28 +95,3 @@ package-trigger:
10295
GIT_SUBMODULE_PATHS: libdatadog appsec/third_party/cpp-base64 appsec/third_party/libddwaf appsec/third_party/msgpack-c
10396
NIGHTLY_BUILD: $NIGHTLY_BUILD
10497
RELIABILITY_ENV_BRANCH: $RELIABILITY_ENV_BRANCH
105-
SKIP_SHARED_PIPELINE: "false"
106-
107-
deploy_to_reliability_env:
108-
variables:
109-
SKIP_SHARED_PIPELINE: "false"
110-
111-
# requirements_json_test doesn't check SKIP_SHARED_PIPELINE, suppress explicitly
112-
requirements_json_test:
113-
rules:
114-
- when: never
115-
116-
validate_supported_configurations_v2_local_file:
117-
needs: []
118-
extends: .validate_supported_configurations_v2_local_file
119-
variables:
120-
LOCAL_JSON_PATH: "metadata/supported-configurations.json"
121-
BACKFILLED: "true"
122-
123-
update_central_configurations_version_range_v2:
124-
extends: .update_central_configurations_version_range_v2
125-
variables:
126-
LOCAL_REPO_NAME: "dd-trace-php"
127-
LOCAL_JSON_PATH: "metadata/supported-configurations.json"
128-
LANGUAGE_NAME: "php"
129-
MULTIPLE_RELEASE_LINES: "false"

.gitlab/generate-package.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,21 @@
9696
- local: .gitlab/benchmarks.yml
9797

9898
# One pipeline job overrides
99+
validate_supported_configurations_v2_local_file:
100+
needs: []
101+
extends: .validate_supported_configurations_v2_local_file
102+
variables:
103+
LOCAL_JSON_PATH: "metadata/supported-configurations.json"
104+
BACKFILLED: "true"
105+
106+
update_central_configurations_version_range_v2:
107+
extends: .update_central_configurations_version_range_v2
108+
variables:
109+
LOCAL_REPO_NAME: "dd-trace-php"
110+
LOCAL_JSON_PATH: "metadata/supported-configurations.json"
111+
LANGUAGE_NAME: "php"
112+
MULTIPLE_RELEASE_LINES: "false"
113+
99114
configure_system_tests:
100115
variables:
101116
SYSTEM_TESTS_SCENARIOS_GROUPS: "simple_onboarding,simple_onboarding_profiling,simple_onboarding_appsec,lib-injection,lib-injection-profiling,docker-ssi"

0 commit comments

Comments
 (0)