Skip to content

chore(ci): fix main workflow #11

chore(ci): fix main workflow

chore(ci): fix main workflow #11

Workflow file for this run

name: "Main"

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 46, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CI_IMAGE_COMMIT
on:
workflow_dispatch:
push:
branches:
- main
env:
CI_IMAGE_COMMIT: 5f5c273
jobs:
call-dev-workflow:
uses: ./.github/workflows/dev.yml
secrets: inherit
permissions:
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
name: Check system tests success
runs-on: ubuntu-latest
steps:
- run: exit 0
fuzz-testing:
needs: call-dev-workflow
runs-on: ubuntu-22.04-arm
container:
image: datadog/docker-library:dd-trace-cpp-ci-${{ env.CI_IMAGE_COMMIT }}-arm64
env:
DURATION_SEC: 300 # 5min
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Configure
run: bin/with-toolchain llvm cmake . -B .build -DCMAKE_BUILD_TYPE=Debug -DDD_TRACE_BUILD_FUZZERS=1 -DDD_TRACE_ENABLE_SANITIZE=1 -DDD_TRACE_TRANSPORT=none
- name: Build
run: cmake --build .build -j --target dd_trace_cpp-fuzzers
- name: Run W3C propagation fuzzer
uses: ./.github/actions/fuzzer
with:
binary: ./.build/fuzz/w3c-propagation/w3c-propagation-fuzz
duration_seconds: ${DURATION_SEC}
- name: Run Base64 fuzzer
uses: ./.github/actions/fuzzer
with:
binary: ./.build/fuzz/base64/base64-fuzz
duration_seconds: ${DURATION_SEC}
- name: Run Remote Configuration fuzzer
uses: ./.github/actions/fuzzer
with:
binary: ./.build/fuzz/remote-configuration/remote-config-fuzz
duration_seconds: ${DURATION_SEC}