Skip to content

Rust: Remove the noisy models output from the dataflow/local test. #19305

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

Merged
merged 3 commits into from
Apr 17, 2025

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Apr 14, 2025

Remove the noisy models output from the dataflow/local test. This test appears to be outputting all taint models, which makes it a maintainability nuisance as this is frequently affected by changes unrelated to the test.

@hvitved at present this PR fully removes the models output from this test. If we want to keep it, we could change it to be "pretty printed" instead - I'm not sure exactly how to do that though as this is not an inline expectations test.

update: I keep hitting this problem; I think we should just merge this PR as-is, and come back to creating a better test for models later if there's a reason to have one.

@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code labels Apr 14, 2025
@Copilot Copilot AI review requested due to automatic review settings April 14, 2025 16:01
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 reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • rust/ql/test/library-tests/dataflow/local/DataFlowStep.ql: Language not supported

@geoffw0 geoffw0 requested a review from a team as a code owner April 17, 2025 08:44
@geoffw0 geoffw0 merged commit 254789c into github:main Apr 17, 2025
14 checks passed
@@ -6,8 +6,6 @@ private predicate provenance(string model) { RustDataFlow::simpleLocalFlowStep(_

private module Tm = TranslateModels<provenance/1>;
Copy link
Contributor

Choose a reason for hiding this comment

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

May as well remove this and the provenance predicate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, sorry I missed this. Since the PR has been merged I've made a follow-up for this: #19353

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.

3 participants