From c16a7defe92a83f61cd89507e83695f335eae5d6 Mon Sep 17 00:00:00 2001 From: Charles de Beauchesne Date: Tue, 20 Jan 2026 15:36:00 +0100 Subject: [PATCH 1/2] run system-tests on pull requests --- .github/workflows/dev.yml | 24 ++++++++++++++++++++++++ .github/workflows/main.yml | 15 --------------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 609aba00..3fe85617 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -170,3 +170,27 @@ jobs: disable_search: true token: ${{ secrets.CODECOV_TOKEN }} verbose: true + + build-system-tests-artifact: + runs-on: ubuntu-22.04 + steps: + - run: mkdir binaries + - run: echo "https://github.com/DataDog/dd-trace-cpp@main" > binaries/cpp-load-from-git + - name: Save artifact + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: system_tests_binaries + path: ./binaries/**/* + + system-tests: + needs: build-system-tests-artifact + uses: DataDog/system-tests/.github/workflows/system-tests.yml@main + secrets: inherit + permissions: + contents: read + packages: write + with: + library: cpp + binaries_artifact: system_tests_binaries + parametric_job_count: 8 # dedicated parameter to speed up parametric job + scenarios: PARAMETRIC diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4eec77c8..db397874 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,21 +13,6 @@ jobs: contents: read packages: write - system-tests: - uses: DataDog/system-tests/.github/workflows/system-tests.yml@main - secrets: inherit - permissions: - contents: read - packages: write - with: - library: cpp - binaries_artifact: binaries - desired_execution_time: 300 # 5 minutes - scenarios: PARAMETRIC - skip_empty_scenarios: true - _system_tests_dev_mode: true - display_summary: true - # Ensure the main job is run to completion check-system-tests: needs: system-tests From c2efa4a4b38aaaf9347584cda5afcd14dd6b3fdd Mon Sep 17 00:00:00 2001 From: Charles de Beauchesne Date: Wed, 21 Jan 2026 09:59:12 +0100 Subject: [PATCH 2/2] Set good branch name --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 3fe85617..d95ce0cc 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -175,7 +175,7 @@ jobs: runs-on: ubuntu-22.04 steps: - run: mkdir binaries - - run: echo "https://github.com/DataDog/dd-trace-cpp@main" > binaries/cpp-load-from-git + - run: echo "https://github.com/DataDog/dd-trace-cpp@${{ github.head_ref || github.ref_name }}" > binaries/cpp-load-from-git - name: Save artifact uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: