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

Rust: Reduce CI noise from the SummaryStats query #19180

Merged
merged 11 commits into from
Apr 4, 2025

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Apr 1, 2025

Reduce CI noise from the SummaryStats query:

  • move all of the query logic from SummaryStats.ql into predicates in Stats.qll.
  • use this to create a similar query SummaryStatsLess.ql that is a cut down version - it doesn't include the frequently fluctuating element and taint stats.
  • switch to the latter in tests (the former is still used as part of our DCA reports, and can of course be run manually).

This should greatly reduce the amount of effort we spend chasing up benignly failing CI tests.

Please let me know if you can think of a better name for SummaryStatsLess.ql.

@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code labels Apr 1, 2025
@Copilot Copilot bot review requested due to automatic review settings April 1, 2025 09:07
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (11)
  • rust/ql/integration-tests/hello-project/summary.expected: Language not supported
  • rust/ql/integration-tests/hello-project/summary.qlref: Language not supported
  • rust/ql/integration-tests/hello-workspace/summary.cargo.expected: Language not supported
  • rust/ql/integration-tests/hello-workspace/summary.qlref: Language not supported
  • rust/ql/integration-tests/hello-workspace/summary.rust-project.expected: Language not supported
  • rust/ql/src/queries/summary/Stats.qll: Language not supported
  • rust/ql/src/queries/summary/SummaryStats.ql: Language not supported
  • rust/ql/src/queries/summary/SummaryStatsLess.ql: Language not supported
  • rust/ql/test/query-tests/diagnostics/SummaryStats.qlref: Language not supported
  • rust/ql/test/query-tests/diagnostics/SummaryStatsLess.expected: Language not supported
  • rust/ql/test/query-tests/diagnostics/SummaryStatsLess.qlref: Language not supported

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

* @description A table of summary statistics about a database, with data that
* has been found to be noisy on tests removed.
* @kind metric
* @id rust/summary/summary-statistics-less
Copy link
Contributor

Choose a reason for hiding this comment

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

SummeryStatsReduced.ql and ust/summary/summary-statistics-reduced instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I think I like that a bit more. Updated.

hvitved
hvitved previously approved these changes Apr 2, 2025
@geoffw0
Copy link
Contributor Author

geoffw0 commented Apr 4, 2025

Finally fixed all the problems with this (including working around an issue with the DCA run). Thanks for your patience!

@geoffw0 geoffw0 merged commit 49c2f97 into github:main Apr 4, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants