Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(er): fix broken exception ID asserts #11869

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Conversation

P403n1x87
Copy link
Contributor

@P403n1x87 P403n1x87 commented Jan 7, 2025

The changes in #11772 broke ER tests that were relying on the old exception ID tag. The rerun mechanism made the test pass on re-run so the failure was not caught and the change was merged. Only the tests were impacted, there was no impact on user-facing functionalities.

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

The changes in #11772 broke ER tests that were relying on the old
exception ID tag. The rerun mechanism made the test pass on re-run so
the failure was not caught and the change was merged. Only the tests
were impacted, there was no impact on user-facing functionalities.
@P403n1x87 P403n1x87 added changelog/no-changelog A changelog entry is not required for this PR. Dynamic Instrumentation Dynamic Instrumentation/Live Debugger labels Jan 7, 2025
@P403n1x87 P403n1x87 self-assigned this Jan 7, 2025
@P403n1x87 P403n1x87 requested a review from a team as a code owner January 7, 2025 10:43
Copy link
Contributor

github-actions bot commented Jan 7, 2025

CODEOWNERS have been resolved as:

tests/debugging/exception/test_replay.py                                @DataDog/debugger-python

@P403n1x87 P403n1x87 enabled auto-merge (squash) January 7, 2025 10:49
@datadog-dd-trace-py-rkomorn
Copy link

datadog-dd-trace-py-rkomorn bot commented Jan 7, 2025

Datadog Report

Branch report: test/fix-broken-er-tests
Commit report: 95d1c00
Test service: dd-trace-py

✅ 0 Failed, 87 Passed, 1468 Skipped, 3m 59.97s Total duration (35m 22.06s time saved)

@pr-commenter
Copy link

pr-commenter bot commented Jan 7, 2025

Benchmarks

Benchmark execution time: 2025-01-07 16:17:55

Comparing candidate commit ca1e34d in PR branch test/fix-broken-er-tests with baseline commit 268d3f4 in branch main.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 393 metrics, 2 unstable metrics.

scenario:iast_aspects-ospathjoin_aspect

  • 🟩 execution_time [-542.164ns; -465.205ns] or [-9.544%; -8.189%]

@P403n1x87 P403n1x87 merged commit a225334 into main Jan 8, 2025
235 checks passed
@P403n1x87 P403n1x87 deleted the test/fix-broken-er-tests branch January 8, 2025 14:13
github-actions bot pushed a commit that referenced this pull request Jan 13, 2025
The changes in #11772 broke ER tests that were relying on the old
exception ID tag. The rerun mechanism made the test pass on re-run so
the failure was not caught and the change was merged. Only the tests
were impacted, there was no impact on user-facing functionalities.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [ ] Reviewer has checked that all the criteria below are met
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- 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)

(cherry picked from commit a225334)
erikayasuda pushed a commit that referenced this pull request Jan 14, 2025
Backport a225334 from #11869 to 2.19.

The changes in #11772 broke ER tests that were relying on the old
exception ID tag. The rerun mechanism made the test pass on re-run so
the failure was not caught and the change was merged. Only the tests
were impacted, there was no impact on user-facing functionalities.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- 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)

Co-authored-by: Gabriele N. Tornetta <[email protected]>
Co-authored-by: Taegyun Kim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.19 changelog/no-changelog A changelog entry is not required for this PR. Dynamic Instrumentation Dynamic Instrumentation/Live Debugger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants