You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: backport of conditional system tests configuration [backport 1.16] (#6783)
Backport 8e06cd1 from #6758 to 1.16.
We backport the changes to the system tests GitHub action configuration
to get its benefits on lower release branches, since the jobs are now
marked as required on PRs.
## Checklist
- [x] Change(s) are motivated and described in the PR description.
- [x] Testing strategy is described if automated tests are not included
in the PR.
- [x] Risk is outlined (performance impact, potential for breakage,
maintainability, etc).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] [Library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
are followed. If no release note is required, add label
`changelog/no-changelog`.
- [x] Documentation is included (in-code, generated user docs, [public
corp docs](https://github.com/DataDog/documentation/)).
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
## Reviewer Checklist
- [x] Title is accurate.
- [x] No unnecessary changes are introduced.
- [x] Description motivates each change.
- [x] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes unless absolutely necessary.
- [x] Testing strategy adequately addresses listed risk(s).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] Release note makes sense to a user of the library.
- [x] Reviewer has explicitly acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment.
- [x] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
- [x] If this PR touches code that signs or publishes builds or
packages, or handles credentials of any kind, I've requested a review
from `@DataDog/security-design-and-guidance`.
- [x] This PR doesn't touch any of that.
Co-authored-by: Gabriele N. Tornetta <[email protected]>
export PATHS=$(git diff --name-only HEAD ${{ github.event.pull_request.base.sha }})
25
+
python -c "import os,sys,fnmatch;sys.exit(not bool([_ for pattern in {'ddtrace/*', 'setup*', 'pyproject.toml', '.github/workflows/system-tests.yml'} for _ in fnmatch.filter(os.environ['PATHS'].splitlines(), pattern)]))"
26
+
continue-on-error: true
27
+
10
28
system-tests:
11
29
runs-on: ubuntu-latest
30
+
needs: needs-run
12
31
strategy:
13
32
matrix:
14
33
include:
@@ -25,115 +44,146 @@ jobs:
25
44
DD_API_KEY: 1234567890abcdef1234567890abcdef
26
45
steps:
27
46
- name: Setup python 3.9
47
+
if: needs.needs-run.outputs.outcome == 'success'
28
48
uses: actions/setup-python@v4
29
49
with:
30
50
python-version: '3.9'
31
51
32
52
- name: Checkout system tests
53
+
if: needs.needs-run.outputs.outcome == 'success'
33
54
uses: actions/checkout@v3
34
55
with:
35
56
repository: 'DataDog/system-tests'
36
57
37
58
- name: Checkout dd-trace-py
59
+
if: needs.needs-run.outputs.outcome == 'success'
38
60
uses: actions/checkout@v3
39
61
with:
40
62
path: 'binaries/dd-trace-py'
41
63
fetch-depth: 0
42
64
43
65
- name: Build
66
+
if: needs.needs-run.outputs.outcome == 'success'
44
67
run: ./build.sh
45
68
46
69
- name: Run
70
+
if: needs.needs-run.outputs.outcome == 'success'
47
71
run: ./run.sh
48
72
49
73
- name: Run REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES
0 commit comments