-
Notifications
You must be signed in to change notification settings - Fork 407
52 lines (48 loc) · 1.91 KB
/
Copy pathsystem-tests.yml
File metadata and controls
52 lines (48 loc) · 1.91 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
name: System Tests
on:
pull_request:
push:
branches: [master, mq-working-branch-master-*]
workflow_dispatch:
schedule:
- cron: 0 4 * * *
concurrency:
# this ensures that only one workflow runs at a time for a given branch on pull requests
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_id || github.ref }}
cancel-in-progress: true
jobs:
build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout dd-trace-js
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: dd-trace-js
- name: Pack dd-trace-js
run: mkdir -p ./binaries && echo /binaries/$(npm pack --silent --pack-destination ./binaries ./dd-trace-js) > ./binaries/nodejs-load-from-npm
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: system_tests_binaries
path: ./binaries/**/*
main:
needs:
- build-artifacts
uses: DataDog/system-tests/.github/workflows/system-tests.yml@main
permissions:
contents: read
id-token: write
packages: write
with:
library: nodejs
# TEMPORARY: pin system-tests to the branch that flushes native client stats
# on /trace/stats/flush (DataDog/system-tests#7293). Revert to the default
# (drop this `ref`) once #7293 merges to system-tests main.
ref: bengl/parametric-native-stats-flush
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: ${{ github.ref != 'refs/heads/master' && github.event_name != 'schedule' }}
push_to_test_optimization: ${{ github.actor != 'dependabot[bot]' }}