-
Notifications
You must be signed in to change notification settings - Fork 10
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
add: test line probe expression language support alongside methods #3877
Conversation
8b2eabe
to
45847f8
Compare
60e3197
to
9fc3a28
Compare
80e193c
to
f45baa2
Compare
778d018
to
e3ceb7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AGTM form framework usage. Though, I let someone familiar with the feature review the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, love it!
/merge |
Devflow running:
|
/merge |
Devflow running:
|
/merge |
Devflow running:
|
/merge |
Devflow running:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just a passing comment - I wonder if at some point it might make sense to change the way these tests work such that we can put inline comments within the sample app code, such as // Probe Here
, and have the test code parse these out automatically to find the line numbers - thereby alleviating the need for things like _method_and_language_to_line_number
and perhaps making the test a bit easier to reason about.
I suppose that will only really make sense to invest in that if we find ourselves using this pattern a lot more often.
@tylfin we're not using mergeQueue, just hit the squash and merge button 😎 ! |
Motivation
This pull request updates the
tests/debugger/test_debugger_expression_language.py
file to enhance the setup of expression language tests by incorporating language-specific line numbers and restructuring the probe creation process.Changes
language
andmethod
variables to various setup methods to facilitate language-specific line number mapping._method_and_language_to_line_number
method to map methods and languages to their respective line numbers, ensuring accurate probe placement.Restructuring probe creation:
_create_expression_probes
method to accept an optionallines
parameter and handle both method and line probes. This change facilitates more flexible and comprehensive probe creation.Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present