Skip to content

Conversation

@asgerf
Copy link
Contributor

@asgerf asgerf commented Jan 31, 2025

This PR contains two changes: a change to the post-processing test library, and one JS test case to exercise the new behaviour. And also some updates to other tests.

The post-processing test change is that the Source tag is no longer expected if the source and alert location are on the same line. Previously they had to have the exact same location in order for Source to be omitted. See d349b51 and c5545f0.

The TaintedPath test is ported from JavaScript's old inline test to being post-processed, and demonstrates how it is affected by the change to the post-processing library.

Simply converts the comments as they are, regardless of actual query output
Unfortunately this also triggers a reordering of result sets in the output.
Previously the Source tag was required if the source and alert did not
have the exact same location. This relaxes the restriction to being on
the same line.

Note that in order to be "on the same line" both start and end lines
have to match.

It's still possible for a given line to expect both Alert and Source
tags, in case the source pairs up with another alert on a different
line.
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Jan 31, 2025
@github-actions github-actions bot added the JS label Jan 31, 2025
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jan 31, 2025
@asgerf
Copy link
Contributor Author

asgerf commented Feb 3, 2025

Superseded by another PR since there are already test cases able to exercise the new behaviour.

@asgerf asgerf closed this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JS no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant