Visitar URL original
JS: Fix copy/paste error in XSS ML-powered queries results patterns by henrymercer · Pull Request #7700 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20260624111559/https://github.com/github/codeql/pull/7700
Skip to content

JS: Fix copy/paste error in XSS ML-powered queries results patterns#7700

Merged
henrymercer merged 1 commit into
mainfrom
henrymercer/js-atm-fix-xss-results-pattern
Jan 21, 2022
Merged

JS: Fix copy/paste error in XSS ML-powered queries results patterns#7700
henrymercer merged 1 commit into
mainfrom
henrymercer/js-atm-fix-xss-results-pattern

Conversation

@henrymercer

Copy link
Copy Markdown
Contributor

We didn’t catch this because our unit tests test only library code due to the previous difficulty of running queries with an ML model (the ML models in packs work should fix that), and because the end-to-end evaluation runs separate queries that have different result patterns.

Going forward we should create unit tests for the queries themselves, which will require using the ML model in tests. We should also be able to catch this type of error using DCA.

We didn’t catch this because our unit tests test only library code due
to the previous difficulty of running queries with an ML model (the ML
models in packs work should fix that), and because the end-to-end
evaluation runs separate queries that have different result patterns.

Going forward we should create unit tests for the queries themselves,
which will require using the ML model in tests. We should also be able
to catch this type of error using DCA.
@henrymercer henrymercer added the JS label Jan 21, 2022
@henrymercer henrymercer requested a review from Z80coder January 21, 2022 15:18
@henrymercer henrymercer requested a review from a team as a code owner January 21, 2022 15:18
@esbena

esbena commented Jan 21, 2022

Copy link
Copy Markdown
Contributor

FWIW 63de4ba contains StoredXssATM.ql as an entirely generated file, so this kind of bug will become less likely.

@henrymercer henrymercer merged commit c41de33 into main Jan 21, 2022
@henrymercer henrymercer deleted the henrymercer/js-atm-fix-xss-results-pattern branch January 21, 2022 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants