Add test-debug label to run PR tests with verbose pytest logging - #24436
Merged
Conversation
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>
vitkyrka
force-pushed
the
vitkyrka/test-debug
branch
from
July 8, 2026 14:54
48f6179 to
c8fe486
Compare
Contributor
Author
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8fe486942
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
nubtron
approved these changes
Jul 20, 2026
Contributor
Validation ReportAll 21 validations passed. Show details
|
github-actions Bot
pushed a commit
to ConnectionMaster/integrations-core
that referenced
this pull request
Jul 20, 2026
…aDog#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> 2042232
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a conditional to the top-level
pr.ymlworkflow: when a PR has thetest-debuglabel, its tests run with-rP --log-level=DEBUGpassed to pytest via the existingpytest-argsinput.Motivation
Some servers (e.g.
kong 1.5.0) only provide Docker images for amd64, so their E2E tests can't be run locally on non-amd64 dev machines to inspect debug output such as discovery candidate probing (assert_all_discovery_candidates_stable). With this change, adding thetest-debuglabel to a PR surfaces that debug output directly in the CI job log instead, without needing any local run. By requiring a separate label, we don't pollute the logs for the common case.This was validated against the
kong-discoverybranch (PR #24318): the label correctly threaded-rP --log-level=DEBUGthrough to the pytest invocation, andtest_e2e_discovery_all_candidates's captured debug output appeared in the CI job log even though the test passed.Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged