Repository navigation
Conversation
DataDog/dd-trace-py#21030 makes debugger snapshots always emit `stack` and `stacktrace` as JSON arrays instead of null. It first shipped in v4.17.0rc1 and was not backported to 4.16. Restrict both DEBUG-5715 SchemaBug entries to earlier versions so schema validation covers current Python releases again in DEBUGGER_PROBES_SNAPSHOT and DEBUGGER_EVALUATION_TIMEOUT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
|
This branch has not been deployed
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.
Motivation
DEBUG-5715: in
DEBUGGER_PROBES_SNAPSHOTandDEBUGGER_EVALUATION_TIMEOUT, the Python tracer emitted debugger snapshotstack(andstacktrace) asnullinstead of a JSON array, which breaks the schema. TwoSchemaBugentries were ignoring these errors for every Python version. DataDog/dd-trace-py#21030 fixed this, and the fix first shipped inv4.17.0rc1. It is not on the 4.16 branch. The latest release is 4.17.2.Changes
tests/schemas/test_schemas.py: change the condition on both DEBUG-5715SchemaBugentries (/debugger/v2/input$[].debugger.snapshot.stackand/api/v2/debugger$[]) fromcontext.library == "python"tocontext.library < "python@4.17.0-rc1". The scenario filter is unchanged.To check that narrowing the broad
/api/v2/debugger $[]entry doesn't expose unrelated errors, I validated local payloads from python 4.15.5 (before the fix) again offline. In that data, the only error under the snapshot branch issnapshot.stack: None is not of type 'array', which is exactly what the fix addresses. Python >= 4.17 CI runs will be the final check.The
system-tests-reviewskill was run on this change and all four lenses found nothing: test effectiveness, lifecycle and isolation, activation and metadata, infrastructure and conventions.Workflow
system-tests-reviewers: ask to one of youre co-worker familiar with the tested feature.system-tests-core(slack)🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
🤖 Generated with Claude Code