Skip to content

Go: Use provenance pretty-printing for qlref tests - #17092

Merged
owen-mc merged 4 commits into
github:mainfrom
owen-mc:go/provenance-postprocess-qltest
Jul 31, 2024
Merged

Go: Use provenance pretty-printing for qlref tests#17092
owen-mc merged 4 commits into
github:mainfrom
owen-mc:go/provenance-postprocess-qltest

Conversation

@owen-mc

Copy link
Copy Markdown
Contributor

For qlref tests this uses the new ability to use a post-processing query.

@owen-mcowen-mc added the no-change-note-required This PR does not need a change note label Jul 29, 2024
@owen-mc

Copy link
Copy Markdown
ContributorAuthor

6 tests failed with the following output:

Postprocess query result is ambiguous for column 1 of line 0 in output grid models
[74/523 comp 274ms eval 927ms] FAILED(EXECUTION) /home/runner/work/codeql/codeql/go/ql/test/query-tests/Security/CWE-347/MissingJwtSignatureCheck.qlref

@owen-mc
owen-mcforce-pushed the go/provenance-postprocess-qltest branch from 33307f9 to ffeb86cCompareJuly 30, 2024 11:55
This commit will be reverted when a bug is fixed which is currently
stopping these tests from working with post-processing.
@owen-mc

Copy link
Copy Markdown
ContributorAuthor

I rebased on top of #17072, which changed the model numbering. I also added a commit reverting the post-processing for 6 tests which currently hit a bug in the post-processing implementation. When the bug is fixed I will re-convert them, but in the meantime it seems best to merge post-processing for all of the other tests.

@owen-mc
owen-mc marked this pull request as ready for review July 30, 2024 12:40
@owen-mc
owen-mc requested a review from a team as a code ownerJuly 30, 2024 12:40

@smowtonsmowton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks plausible except for the duplicate numbering problem already noted

@owen-mc
owen-mc merged commit 3ece3ec into github:mainJul 31, 2024
@owen-mc
owen-mc deleted the go/provenance-postprocess-qltest branch July 31, 2024 08:54
@owen-mcowen-mc mentioned this pull request Aug 14, 2024
@owen-mcowen-mc mentioned this pull request Nov 7, 2024
7 tasks
@owen-mcowen-mc changed the title Go: Add support for provenance pretty-printingGo: Use provenance pretty-printing for qlref testsNov 7, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gono-change-note-requiredThis PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@owen-mc@smowton