{{ message }}
Convert selected Python qlref tests to inline expectations#21967
Open
Copilot wants to merge 2 commits into
Open
Convert selected Python qlref tests to inline expectations#21967Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
Normalize non-Go/Java
Jun 10, 2026
.qlref files to explicit query: format
Contributor
| Rerun has been triggered, but no failed runs found ⚠️ |
Sorry, something went wrong.
aa3982d to
4d2e16e
Compare
June 10, 2026 20:59
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Sorry, something went wrong.
Copilot
AI
changed the title
Convert non-Go/Java qlref tests to inline expectation tests via postprocess
Jun 11, 2026
12 hidden items
Load more…
Copilot
AI
changed the title
Convert JavaScript templating CodeInjection test to inline expectations
Jun 11, 2026
a713d75 to
0156cfb
Compare
June 15, 2026 10:08
0156cfb to
0c2df7c
Compare
June 15, 2026 15:15
0c2df7c to
f48d715
Compare
June 15, 2026 23:35
Contributor
Rerun has been triggered: 5 restarted 🚀 |
Sorry, something went wrong.
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
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.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.
This updates the Python qlref-to-inline-expectation migration by converting a focused set of standard
problemandpath-problemtests that can be represented cleanly without changing test semantics. The converted cases cover exception queries, overriding-signature queries, and the local threat-model SQL injection test.Converted standard Python query tests
postprocess: utils/test/InlineExpectationsTestQuery.qlto:python/ql/test/query-tests/Exceptions/general/IllegalExceptionHandlerType.qlrefpython/ql/test/query-tests/Exceptions/general/IllegalRaise.qlrefpython/ql/test/query-tests/Exceptions/general/NotImplementedIsNotAnException.qlrefpython/ql/test/query-tests/Functions/overriding/IncorrectlyOverriddenMethod.qlrefpython/ql/test/query-tests/Functions/overriding/IncorrectlySpecifiedOverriddenMethod.qlrefpython/ql/test/query-tests/Functions/overriding/WrongNameForArgumentInCall.qlrefpython/ql/test/query-tests/Functions/overriding/WrongNumberArgumentsInCall.qlrefpython/ql/test/query-tests/Security/CWE-089-SqlInjection-local-threat-model/SqlInjection.qlrefby preservingPrettyPrintModels.qland appendingInlineExpectationsTestQuery.ql.Annotated source at result locations
# $ Alert[...]markers in:python/ql/test/query-tests/Exceptions/general/exceptions_test.pypython/ql/test/query-tests/Exceptions/general/pypy_test.pypython/ql/test/query-tests/Functions/overriding/test.pypython/ql/test/query-tests/Security/CWE-089-SqlInjection-local-threat-model/test.pyPreserved existing test ownership boundaries
.expectedfiles untouched.Excluded behavior-sensitive cases from this slice
Example of the migrated style:
Original prompt
Created from VS Code.