Skip to content

Commit 45d4156

Browse files
authored
Trigger jobs in SMP metal-runners client team (#44069)
### What does this PR do? This PR enables a CI job to send job requests to the metal-runners client team. It triggers a request for every 10th pipeline as a starting point. ### Motivation ### Describe how you validated your changes QA done by triggering the new job to test it completed successfully ### Additional Notes Co-authored-by: usama.saqib <[email protected]>
1 parent 5e57ad1 commit 45d4156

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.gitlab/functional_test/regression_detector.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ single_machine_performance-regression_detector-merge_base_check:
7676
timeout: 1h10m
7777
image: registry.ddbuild.io/ci/datadog-agent-buildimages/docker_x64$CI_IMAGE_DOCKER_X64_SUFFIX:$CI_IMAGE_DOCKER_X64
7878
tags: ["arch:amd64", "specific:true"]
79+
rules:
80+
- !reference [.except_coverage_pipeline] # Coverage pipeline creates a duplicate, specialized artifact that is not useful to run through SMP on every PR
81+
- !reference [.on_dev_branches]
82+
- when: on_success
7983
artifacts:
8084
expire_in: 1 weeks
8185
paths:
@@ -91,6 +95,10 @@ single_machine_performance-regression_detector-merge_base_check:
9195
allow_failure: false
9296
retry: !reference [.retry_only_infra_failure, retry]
9397
script:
98+
- |
99+
if [[ "${SAMPLE}" == "true" ]] && (( "${CI_PIPELINE_ID}" % 10 != 0 )); then
100+
exit 0
101+
fi
94102
# `datadog-ci` relies on `DATADOG_API_KEY` so we get that here.
95103
- DATADOG_API_KEY="$("$CI_PROJECT_DIR"/tools/ci/fetch_secret.sh "$AGENT_API_KEY_ORG2" token)" || exit $?; export DATADOG_API_KEY
96104
# Start by tagging the failure mode as `timeout`. At each smp command we will catch any failure exit codes and update this tag properly.
@@ -309,10 +317,6 @@ single-machine-performance-regression_detector:
309317
artifacts: true
310318
- job: single_machine_performance-full-amd64-a7
311319
artifacts: false
312-
rules:
313-
- !reference [.except_coverage_pipeline] # Coverage pipeline creates a duplicate, specialized artifact that is not useful to run through SMP on every PR
314-
- !reference [.on_dev_branches]
315-
- when: on_success
316320
variables:
317321
SMP_TEAM_NAME: agent
318322
SMP_API_URL: api_url
@@ -323,22 +327,20 @@ single-machine-performance-regression_detector:
323327
single-machine-performance-metal-runners-regression_detector:
324328
extends:
325329
- .single-machine-performance-run_regression_detector
330+
allow_failure: true
326331
needs:
327332
- job: single_machine_performance-regression_detector-merge_base_check
328333
artifacts: true
329334
optional: true
330335
- job: single_machine_performance-full-amd64-a7
331336
artifacts: false
332-
rules:
333-
- !reference [.except_coverage_pipeline] # Coverage pipeline creates a duplicate, specialized artifact that is not useful to run through SMP on every PR
334-
- !reference [.manual]
335-
- when: on_success
336337
variables:
337338
SMP_TEAM_NAME: metal-runners
338339
SMP_API_URL: metal-runners_api_url
339-
SMP_VERSION: dev-pr3629-bea43153
340+
SMP_VERSION: dev-pr3796-e7f7a988
340341
BOT_LOGIN: bot_login_metal-runners
341342
BOT_TOKEN: bot_token_metal-runners
343+
SAMPLE: "true"
342344

343345
# Shamelessly adapted from golang_deps_commenter job config in
344346
# golang_deps_diff.yml at commit 01da274032e510d617161cf4e264a53292f44e55.

0 commit comments

Comments
 (0)