Skip to content

Commit ded4ff7

Browse files
committed
wip 4/x
1 parent 7cdbe11 commit ded4ff7

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Development"
2-
on: [push, workflow_dispatch]
2+
on: [push, workflow_dispatch, workflow_call]
33

44
jobs:
55
format:

.github/workflows/main.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: "Development"
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
call-dev-workflow:
10+
uses: ./.github/workflows/dev.yml
11+
# - name: Upload artifact
12+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
13+
# with:
14+
# name: binaries
15+
# path: .musl-build/ngx_http_datadog_module.so
16+
17+
system-tests:
18+
uses: DataDog/system-tests/.github/workflows/system-tests.yml@main
19+
secrets: inherit
20+
permissions:
21+
contents: read
22+
packages: write
23+
with:
24+
library: cpp
25+
binaries_artifact: binaries
26+
desired_execution_time: 300 # 5 minutes
27+
scenarios_groups: appsec
28+
scenarios: DEFAULT
29+
excluded_scenarios: INTEGRATIONS # no test activated, and long warm-up
30+
skip_empty_scenarios: true
31+
32+
# Ensure the main job is run to completion
33+
check-system-tests:
34+
needs: system-tests
35+
name: Check system tests success
36+
runs-on: ubuntu-latest
37+
steps:
38+
- run: exit 0
39+
40+
fuzz-testing:
41+
needs: call-dev-workflow
42+
runs-on: ubuntu-22.04-arm
43+
container:
44+
image: datadog/docker-library:dd-trace-cpp-ci-91c12776-arm64
45+
env:
46+
DURATION_SEC: 300 # 5min
47+
steps:
48+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
- name: Configure
50+
run: bin/with-toolchain llvm cmake . -B .build -DCMAKE_BUILD_TYPE=Debug -DDD_TRACE_BUILD_FUZZERS=1 -DDD_TRACE_ENABLE_SANITIZE=1
51+
- name: Build
52+
run: cmake --build .build -j --target dd_trace_cpp-fuzzers
53+
- name: Run W3C propagation fuzzer
54+
run: ./.build/fuzz/w3c-propagation/w3c-propagation-fuzz -max_total_time=${DURATION_SEC}
55+
- name: Run Base64 fuzzer
56+
run: ./.build/fuzz/base64/base64-fuzz -max_total_time=${DURATION_SEC}
57+
- name: Run Remote Configuration fuzzer
58+
run: ./.build/fuzz/remote-configuration/remote-config-fuzz -max_total_time=${DURATION_SEC}
59+
60+
coverage:
61+
needs: call-dev-workflow
62+
runs-on: ubuntu-22.04
63+
container:
64+
image: datadog/docker-library:dd-trace-cpp-ci
65+
steps:
66+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
67+
- run: bin/test --coverage --verbose
68+
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
69+
with:
70+
fail_ci_if_error: true
71+
file: .coverage/filtered.info
72+
upload_args: --disable-search
73+
token: ${{ secrets.CODECOV_TOKEN }}
74+
verbose: true

0 commit comments

Comments
 (0)