Skip to content

Convert remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref #19817

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

d10c
Copy link
Contributor

@d10c d10c commented Jun 19, 2025

Converts the remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref.

Example prior work: #18848

In the Go IncorrectIntegerConversion case, the #select, edges, and nodes query predicates have different results depending on whether the Go source is compiled under 64-bit or 32-bit mode. So I have filtered out those predicates using a custom test post-processor.

Also, in the Ruby case I've made the utils/test/PrettyPrintModels.ql test postprocessor available; Swift apparently doesn't support the Models-as-Data extensible predicates, so I couldn't fit its existing MaD support into the codeql.dataflow.test.ProvenancePathGraph::TestPostProcessing::TranslateProvenanceResults<> interface.

Anecdotally, the Copilot "Next Edit Suggestion" feature had some marginal benefit for this PR.

@github-actions github-actions bot added the Go label Jun 19, 2025
@d10c d10c changed the title Convert $lang-code-scanning.qls query tests to .qlref Convert remaining {go,swift,ruby,java}-code-scanning.qls query tests to .qlref Jun 19, 2025
@d10c d10c added the no-change-note-required This PR does not need a change note label Jun 20, 2025
@d10c d10c requested a review from a team June 20, 2025 08:32
@d10c d10c changed the title Convert remaining {go,swift,ruby,java}-code-scanning.qls query tests to .qlref Convert remaining {go,swift,ruby}-code-scanning.qls query tests to .qlref Jun 20, 2025
@d10c d10c force-pushed the d10c/convert-tests-to-qlref branch 4 times, most recently from 7a9cb36 to 4a12777 Compare June 20, 2025 13:04
@d10c d10c force-pushed the d10c/convert-tests-to-qlref branch from 4a12777 to 2aaa656 Compare June 20, 2025 13:47
@d10c d10c force-pushed the d10c/convert-tests-to-qlref branch from 2aaa656 to c628653 Compare June 20, 2025 13:57
@d10c d10c force-pushed the d10c/convert-tests-to-qlref branch from c628653 to 657e782 Compare June 20, 2025 14:05
@d10c d10c marked this pull request as ready for review June 20, 2025 14:30
@d10c d10c requested review from a team as code owners June 20, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go no-change-note-required This PR does not need a change note Ruby Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant