Skip to content

Conversation

@geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Oct 22, 2025

Split up the dataflow/sources test. It had become quite large, with lots of dependencies, which was making it slow to work with locally.

@geoffw0 geoffw0 added the no-change-note-required This PR does not need a change note label Oct 22, 2025
@geoffw0 geoffw0 requested a review from a team as a code owner October 22, 2025 12:59
Copilot AI review requested due to automatic review settings October 22, 2025 12:59
@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label Oct 22, 2025
Copy link
Contributor

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.

Pull Request Overview

This PR reorganizes the dataflow/sources test suite by splitting a large monolithic test into smaller, more focused test suites organized by source type. This improves local development workflow by reducing dependencies and compilation times.

Key changes:

  • Split the original dataflow/sources test into multiple focused test directories
  • Created separate test suites for: web frameworks, stdin, networking, file I/O, environment variables, and database sources
  • Maintained test coverage while improving modularity

Reviewed Changes

Copilot reviewed 44 out of 54 changed files in this pull request and generated no comments.

Show a summary per file
File Description
web_frameworks/test.rs (Implied) Test cases for web framework data sources
web_frameworks/*.qlref Query references for web framework taint source tests
web_frameworks/*.expected Expected test results for web framework sources
stdin/test.rs Test cases for standard input data sources
stdin/*.qlref Query references for stdin taint source tests
stdin/*.expected Expected test results for stdin sources
net/test.rs Test cases for network-related data sources (HTTP, TCP)
net/options.yml Reduced dependency list, removed web framework dependencies
net/*.qlref Query references for network taint source tests
net/*.expected Expected test results for network sources
file/test.rs Test cases for file system data sources
file/options.yml Dependencies for file I/O tests
file/*.qlref Query references for file taint source tests
env/test.rs Test cases for environment variable and command-line argument sources
env/options.yml Minimal dependencies for environment tests
env/*.qlref Query references for environment taint source tests
database/test.rs Test cases for database query result sources
database/options.yml Dependencies for MySQL database tests
database/*.qlref Query references for database taint source tests
test.rs (Deleted) Original monolithic test file
test_futures_io.rs (Deleted) Moved to net directory
reqwest.rs (Deleted) Stub file removed

@@ -0,0 +1,2 @@
query: ../env/InlineFlow.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@@ -0,0 +1,2 @@
query: ../env/InlineFlow.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@@ -0,0 +1,2 @@
query: ../env/InlineFlow.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@@ -0,0 +1,2 @@
query: ../env/InlineFlow.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@@ -0,0 +1,2 @@
query: ../env/InlineFlow.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@hvitved
Copy link
Contributor

hvitved commented Oct 22, 2025

Can we please wait until #20282 is merged? I have already had to rebase that PR multiple times because of exactly this test.

@geoffw0
Copy link
Contributor Author

geoffw0 commented Oct 22, 2025

Can we please wait until #20282 is merged?

Yes, if we get that merged soon. Fixing merge conflicts here is going to be a bit of a pain, I tried to pick a quiet time for it.

@hvitved
Copy link
Contributor

hvitved commented Oct 22, 2025

Yes, if we get that merged soon.

Has now been merged.

@geoffw0
Copy link
Contributor Author

geoffw0 commented Oct 22, 2025

I've merged in main (with #20282). Had to do a bit of manual fixup. There had been two results lost in this PR (I hypothesised because of something about their context changing), we get them back now! :)

I would appreciate review and approval of this work as soon as possible, assuming there are no big objections. Otherwise difficult merge conflicts are going to keep happening due to the nature of this change.

Copy link
Contributor

@paldepind paldepind left a comment

Choose a reason for hiding this comment

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

Thanks for doing this 👍

@geoffw0 geoffw0 merged commit 7acd214 into github:main Oct 23, 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.

3 participants