Skip to content

Commit 2042232

Browse files
vitkyrkaclaude
andauthored
Add test-debug label to run PR tests with verbose pytest logging (DataDog#24436)
Some integrations (e.g. kong) only build/run on amd64, so their E2E tests can't be run locally on non-amd64 dev machines to inspect debug output such as discovery candidate probing. Setting the "test-debug" label on a PR now passes -rP --log-level=DEBUG to pytest via the existing pytest-args input, surfacing that output in the CI job log instead. Environment: Datadog workspace Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 3441d4a commit 2042232

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
uses: ./.github/workflows/pr-test.yml
2222
with:
2323
repo: core
24+
# Set the "test-debug" label on a PR to run its tests with verbose pytest
25+
# logging. Useful for inspecting test output, such as E2E discovery
26+
# candidate probing, on platforms where tests can't be run locally.
27+
pytest-args: ${{ contains(github.event.pull_request.labels.*.name, 'test-debug') && '-rP --log-level=DEBUG' || '' }}
2428
secrets: inherit
2529

2630
permissions:

0 commit comments

Comments
 (0)