-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Java: Automodel: Add Candidates for Regression Testing #13954
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
Conversation
…for regression testing
...emetry/AutomodelApplicationModeExtraction/AutomodelApplicationModeExtractCandidates.expected
Outdated
Show resolved
Hide resolved
tausbn
left a comment
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.
Short and sweet! 👍
I have a small suggestion for how to make this more flexible (in case we need it), but otherwise this looks good to me.
drive-by comment: I do that quite often too and I find that selecting the previous PR's branch as the merge target for the second PR is quite handy to keep things clear. |
|
Thanks @kaeluka! Just to double check my understanding: this design does mean that during normal operation (i.e. not regression testing) we need to implement a filter in the script that will skip the candidates with an In practice I imagine that the majority of candidates will not have an AI-provenance and so that skipping will be the exception (and so won't impact performance) but ooi have we also considered a 2 queries design whereby we would add a |
…AiModeled meta data property
Yes! 👍
I have, and have discussed that in our standup on Monday, remember? Two queries will mean increased maintenance load, even though the two queries would be almost exactly the same. |
Thanks! I considered that but have never done it before because I wasn't sure how the UI would present that! Will do that next time ;) Edit: now that the 'base' branch was merged, I could update this PR and it only shows the new commits as intended. |
|
Shall we have similar changes for |
It feels a little weird to always extract all candidates instead of just the ones we need (seems like the wrong away around) but we can easily modify that later if need be. In the meantime we should probably avoiding merging this until we have the filter implemented in the script. |
|
I've just realised that the positive and negative extraction queries do not include the new edit: come to think of it I'm not entirely of the strength of the use case - we can handle the diff script side easily. |
This is actually not true - it will only be an issue when we attempt bumping our codeql dependency. |
@tausbn thanks for the pointers on how to update the tests, I think the commit I just pushed took care of this - if you're happy with it I think this PR is now ready to be merged. |
tausbn
left a comment
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.
As far as I can tell, all of your test cases have alreadyAiModeled set to false (as witnessed by the file://:1:1:1:1 bit that precedes them -- i.e. the empty string).
This seems... not right? I would expect at least one of the test cases to actually populate this with a non-empty string (like we do for the application mode tests, where in one case it's "ai-manual").
|
No there is one that has the See the 8th example in |
Ah, so there is! Never mind, then. 🙂 |
tausbn
left a comment
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.
![]()
|
Great thanks for having a quick look, let's merge it then! 🚢 |
This adds additional candidates that are useful for regression testing.
For regression testing, we want to also look at candidates that we used to extract and then modeled using automodel.
To achieve that, we add the candidates to the extraction query, but also add metadata so that we can skip them during non-testing uses.