Skip to content
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

result.suppressions property doesn't prefer most current suppressions info during result matching #1600

Closed
harleenkohli opened this issue Jul 31, 2019 · 0 comments

Comments

@harleenkohli
Copy link
Contributor

harleenkohli commented Jul 31, 2019

Originally reported by Nathan Davidson of MS.

Original text:

We’ve encountered what seems to be an unexpected behavior of the SARIF SDK result matching. Not sure if it’s unintended behavior though, or a bad assumption on our side. Here’s the test case:

Given:
• SARIF Log 1 containing Result A, where the suppressions property of Result A is null
• SARIF Log 2 containing Result A, where the suppressions property of Result A is set to a non-null value (like [{ "kind": "external" }])

When:
• Result matching is run with Log 1 as the baseline, and Log 2 as the current

Then:
• (Expected) The suppressions property of Result A in the output from result matching is set to the newer (non-null) value from Log 2
• (Actual) The suppressions property of Result A in the output from result matching is null

Is the stated expectation here valid (meaning there’s a bug in the SDK) or invalid? Since we assumed this behavior, we’re now seeing some suppressed results being filed to ADO as bugs in the case where we’ve already processed an earlier log (which is when we use result matching).

@ghost ghost self-assigned this Aug 5, 2019
ghost pushed a commit that referenced this issue Aug 6, 2019
@ghost ghost closed this as completed in 5fad350 Aug 6, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants