Skip to content

Add missing Cargo.lock files and ext/ crate for Rust QL tools test fixtures#210

Merged
data-douser merged 2 commits intomainfrom
copilot/add-missing-cargo-lock-files
Apr 6, 2026
Merged

Add missing Cargo.lock files and ext/ crate for Rust QL tools test fixtures#210
data-douser merged 2 commits intomainfrom
copilot/add-missing-cargo-lock-files

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

Rust QL tools test directories CallGraphFromTo, CallGraphTo, and PrintCFG are missing Cargo.lock files needed for deterministic CodeQL database extraction. The ext/ directory also lacks the Rust crate scaffolding (Cargo.toml, Cargo.lock, lib.rs) to serve as a dependency fixture.

Added files

  • Cargo.lock in CallGraphFromTo/, CallGraphTo/, PrintCFG/, ext/ — minimal lock files matching the existing pattern in PrintAST/ and CallGraphFrom/
  • ext/Cargo.toml — empty library crate (edition 2021), same format as sibling test directories
  • ext/lib.rs — empty library source

Copilot AI requested review from Copilot and removed request for Copilot April 6, 2026 14:07
Copilot AI changed the title [WIP] Add missing Cargo.lock files and ext crate for Rust QL tools Add missing Cargo.lock files and ext/ crate for Rust QL tools test fixtures Apr 6, 2026
Copilot AI requested a review from data-douser April 6, 2026 14:09
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 4c158fe.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@data-douser data-douser marked this pull request as ready for review April 6, 2026 15:01
@data-douser data-douser requested a review from enyil as a code owner April 6, 2026 15:01
Copilot AI review requested due to automatic review settings April 6, 2026 15:01
@data-douser data-douser requested a review from a team as a code owner April 6, 2026 15:01
Copy link
Copy Markdown
Collaborator

@data-douser data-douser left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
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

Adds the missing Rust Cargo artifacts required for deterministic CodeQL database extraction in the Rust QL tools test fixtures, and scaffolds the previously “models-only” ext/ fixture directory as an actual Rust crate.

Changes:

  • Add minimal Cargo.lock files for CallGraphFromTo, CallGraphTo, and PrintCFG test fixtures.
  • Add Rust crate scaffolding for server/ql/rust/tools/test/ext/ via Cargo.toml, Cargo.lock, and an (intentionally) empty lib.rs.
Show a summary per file
File Description
server/ql/rust/tools/test/PrintCFG/Cargo.lock Adds deterministic lockfile for the PrintCFG fixture crate.
server/ql/rust/tools/test/CallGraphTo/Cargo.lock Adds deterministic lockfile for the CallGraphTo fixture crate.
server/ql/rust/tools/test/CallGraphFromTo/Cargo.lock Adds deterministic lockfile for the CallGraphFromTo fixture crate.
server/ql/rust/tools/test/ext/Cargo.toml Adds minimal crate manifest so ext/ can be used as a dependency fixture.
server/ql/rust/tools/test/ext/Cargo.lock Adds deterministic lockfile for the ext/ fixture crate.
server/ql/rust/tools/test/ext/lib.rs Adds an empty library source file to complete the crate scaffold.

Copilot's findings

  • Files reviewed: 1/6 changed files
  • Comments generated: 0

@data-douser data-douser merged commit a7b37c5 into main Apr 6, 2026
30 checks passed
@data-douser data-douser deleted the copilot/add-missing-cargo-lock-files branch April 6, 2026 15:03
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.

Add missing Cargo.lock files and ext/ crate for Rust QL tools test fixtures

3 participants