Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
17ff796
Add nightly system-tests workflow
nccatoni Feb 18, 2026
10f7eab
Enable push_to_test_optimization
nccatoni Feb 18, 2026
2f73f4b
Pass secrets explicitly to reusable workflow
nccatoni Feb 18, 2026
34d46d2
Only pass TEST_OPTIMIZATION_API_KEY secret
nccatoni Feb 18, 2026
420b281
tmp: add pull_request trigger for testing
nccatoni Feb 18, 2026
1185a36
Set desired_execution_time to 300s
nccatoni Feb 18, 2026
4af9b76
Also pass DD_API_KEY secret
nccatoni Feb 18, 2026
55526dd
ci: add system-tests Test Optimization upload and tracer-release nightly
nccatoni Feb 26, 2026
42bcd97
ci: fix after_script by using upload script directly
nccatoni Feb 26, 2026
50f858b
ci: fix system-tests Test Optimization upload
nccatoni Feb 26, 2026
34f79e3
Run only tracer-release on schedule, it already includes other groups
nccatoni Mar 2, 2026
bafec28
Temporarily run tracer-release on all triggers for testing
nccatoni Mar 2, 2026
578e0b6
Tracer release scenario group on main
nccatoni Mar 5, 2026
4db0655
Test
nccatoni Mar 5, 2026
a65519d
Remove ref argument
nccatoni Mar 5, 2026
b44c4ab
Every day schedule (include weekends)
nccatoni Mar 12, 2026
5159a71
Use upload-junit-to-datadog.sh
nccatoni Mar 12, 2026
85c13ba
Remove github workflow
nccatoni Mar 12, 2026
3c214dc
Test
nccatoni Mar 13, 2026
be1373a
Add tracer-release system tests job on GitLab
nccatoni Mar 13, 2026
a258de8
Merge branch 'master' into add-nightly-system-tests
nccatoni Mar 13, 2026
6b14c2f
Fetch DD_API_KEY from Vault for tracer-release system tests
nccatoni Mar 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .gitlab/generate-package.php
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,9 @@
when: always
paths:
- .cache/
after_script:
- mkdir -p artifacts && cp system-tests/logs*/reportJunit.xml artifacts/ 2>/dev/null || true
- DD_SERVICE=system-tests DD_JUNIT_XPATH_TAGS="test.codeowners=/testcase/properties/property[@name='test.codeowners']" .gitlab/silent-upload-junit-to-datadog.sh
artifacts:
paths:
- "system-tests/logs_parametric/"
Expand All @@ -1262,6 +1265,19 @@
script:
- ./run.sh $TESTSUITE

"System Tests: [tracer-release]":
extends: .system_tests
# rules:
# - if: $CI_COMMIT_REF_NAME == "master"
# when: on_success
# - if: $CI_PIPELINE_SOURCE == "schedule"
# when: on_success
# - when: manual
# allow_failure: true
script:
- export DD_API_KEY=$(curl -s -H "X-Vault-Token:$VAULT_TOKEN" "$VAULT_ADDR/v1/kv/data/k8s/gitlab-runner/dd-trace-php/datadoghq-api-key" | python3 -c "import sys,json;print(json.load(sys.stdin)['data']['data']['key'])")
- ./run.sh TRACER_RELEASE_SCENARIOS

"System Tests: [parametric]":
extends: .system_tests
variables:
Expand Down
12 changes: 9 additions & 3 deletions .gitlab/upload-junit-to-datadog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eo pipefail

export DATADOG_SITE="datadoghq.com"
export DD_ENV="ci"
export DD_SERVICE="dd-trace-php-tests"
export DD_SERVICE="${DD_SERVICE:-dd-trace-php-tests}"
export VAULT_SECRET_PATH="kv/k8s/gitlab-runner/dd-trace-php/datadoghq-api-key"
export VAULT_VERSION="1.20.0"

Expand Down Expand Up @@ -212,10 +212,16 @@ if [[ -n "${TAGS}" ]]; then
tags_args="--tags ${TAGS}"
fi

# Build xpath-tag arguments if DD_JUNIT_XPATH_TAGS is set
xpath_tags_args=""
if [[ -n "${DD_JUNIT_XPATH_TAGS:-}" ]]; then
xpath_tags_args="--xpath-tag ${DD_JUNIT_XPATH_TAGS}"
fi

echo "Current directory: $(pwd)"
echo "Running command: ${datadog_ci_cmd} junit upload --service \"${DD_SERVICE}\" --max-concurrency 20 --verbose --tags git.repository_url:https://github.com/DataDog/dd-trace-php ${tags_args} ${files_array[*]}"
echo "Running command: ${datadog_ci_cmd} junit upload --service \"${DD_SERVICE}\" --max-concurrency 20 --verbose --tags git.repository_url:https://github.com/DataDog/dd-trace-php ${tags_args} ${xpath_tags_args} ${files_array[*]}"

if ! ${datadog_ci_cmd} junit upload --service "${DD_SERVICE}" --max-concurrency 20 --verbose --tags "git.repository_url:https://github.com/DataDog/dd-trace-php" ${tags_args} "${files_array[@]}"; then
if ! ${datadog_ci_cmd} junit upload --service "${DD_SERVICE}" --max-concurrency 20 --verbose --tags "git.repository_url:https://github.com/DataDog/dd-trace-php" ${tags_args} ${xpath_tags_args} "${files_array[@]}"; then
echo "Warning: Failed to upload JUnit files" >&2
exit 0
fi
Expand Down
Loading