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

[Debugger] Make source_file optional + make sure debugger controller exists in symbols #3916

Merged
merged 6 commits into from
Feb 3, 2025

Conversation

shurivich
Copy link
Contributor

Motivation

Make source_file optional + make sure debugger controller exists in symbols

Changes

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • If PR title starts with [<language>], double-check that only <language> is impacted by the change
  • No system-tests internal is modified. Otherwise, I have the approval from R&P team
  • CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added (or removed)?

@shurivich shurivich self-assigned this Jan 29, 2025
@shurivich shurivich marked this pull request as ready for review January 30, 2025 12:24
@shurivich shurivich requested review from a team as code owners January 30, 2025 12:24
@shurivich shurivich requested review from emmettbutler, tabgok, jandro996, sezen-datadog and nayeem-kamal and removed request for a team January 30, 2025 12:24
@@ -305,6 +305,9 @@ jobs:
- name: Run DEBUGGER_EXCEPTION_REPLAY scenario
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"DEBUGGER_EXCEPTION_REPLAY"')
run: ./run.sh DEBUGGER_EXCEPTION_REPLAY
- name: Run DEBUGGER_SYMDB scenario
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we forget to add it ? Oo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we forgot to add it before 😞

Copy link
Collaborator

@cbeauchesne cbeauchesne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two small details

self._assert_debugger_controller_exists()

def _assert_debugger_controller_exists(self):
pattern = r"[Dd]ebugger[_]?[Cc]ontroller"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is only one char in a char set, you can directly use the cahr

Suggested change
pattern = r"[Dd]ebugger[_]?[Cc]ontroller"
pattern = r"[Dd]ebugger_?[Cc]ontroller"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Underscore is optional. In python it's called debugger_controller, in java and dotnet - DebuggerController

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, the ? just after the _ will do the trick : https://regex101.com/r/J1P4r6/1

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though, it's just a detail, feel free to ignore 😄

tests/debugger/test_debugger_symdb.py Outdated Show resolved Hide resolved
shurivich and others added 2 commits January 30, 2025 15:06
@shurivich shurivich merged commit 7482f12 into main Feb 3, 2025
434 of 436 checks passed
@shurivich shurivich deleted the shurivich/symdb_expand branch February 3, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants