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

chore(integration-tests): require minimum results to be at least 2 #508

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

amaanq
Copy link
Collaborator

@amaanq amaanq commented Sep 5, 2024

What problem are you trying to solve?

As mentioned earlier, rules are subject to constant updates and changes to mitigate false positives or improve performance. Our current integration scripts check for an exact number of violations to be flagged, which is really brittle, as changing one rule can change this number easily if the change is mitigating false positives.

What is your solution?

We should only check that a bare minimum number of results are detected. For example, if we're detecting around ~20, we can safely assume that we will always have at least 2 results. This logic was implemented in #505 with the addition of new integration tests, but we should also update the existing ones to follow this logic.

Alternatives considered

What the reviewer should know

The integration scripts for python, docker, and js-ts were all updated to check for a bare minimum of 2 violations, instead of the exact number of violations detected at the time the script was created.

@amaanq amaanq requested a review from a team as a code owner September 5, 2024 17:28
@amaanq amaanq requested a review from jacobotb September 5, 2024 17:28
@amaanq amaanq merged commit c852de8 into main Sep 5, 2024
70 checks passed
@jasonforal jasonforal deleted the amaan.qureshi/update-scripts branch November 8, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants