-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (57 loc) · 2.25 KB
/
system-tests.yml
File metadata and controls
61 lines (57 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: System Tests
on:
# pull_request:
push:
branches: [main]
workflow_dispatch:
# schedule:
# - cron: 0 4 * * *
concurrency:
# this ensures that only one workflow runs at a time for a given branch on pull requests
# as the group key is the workflow name and the branch name
# for scheduled runs and pushes to main, we use the run id to ensure that all runs are executed
group: ${{ (github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.ref)) || format('{0}-{1}', github.workflow, github.run_id) }}
cancel-in-progress: true
jobs:
build-artifacts:
runs-on: ubuntu-22.04
container:
# See in Makefile where this image comes from.
image: datadog/docker-library:httpd-datadog-ci-28219c0ef3e00f1e3d5afcab61a73a5e9bd2a9b957d7545556711cce2a6262cd
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Add cloned repo as safe
run: sh -c "git config --global --add safe.directory $PWD"
- name: Init required submodules
run: git submodule update --init --depth=1 deps/dd-trace-cpp deps/nginx-datadog
- name: Configure
run: cmake --preset=ci-dev -B build .
- name: Build
run: |
cmake --build build -j --verbose
cmake --install build --prefix dist
- name: Export library
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: system_tests_binaries
path: dist/lib/mod_datadog.so
if-no-files-found: error
main:
needs:
- build-artifacts
uses: DataDog/system-tests/.github/workflows/system-tests.yml@main
secrets:
TEST_OPTIMIZATION_API_KEY: ${{ secrets.DD_API_KEY_CI_APP }}
DD_API_KEY: ${{ secrets.DD_API_KEY_CI_APP }}
permissions:
contents: read
id-token: write
with:
library: cpp_httpd
binaries_artifact: system_tests_binaries
desired_execution_time: 300 # 5 minutes
scenarios_groups: tracer-release
excluded_scenarios: APM_TRACING_E2E_OTEL,APM_TRACING_E2E_SINGLE_SPAN # require AWS and datadog credentials
parametric_job_count: 8
skip_empty_scenarios: true
push_to_test_optimization: ${{ github.actor != 'dependabot[bot]' }}