Skip to content

Add end-to-end regression tests for Bzlmod override patches - #527

Closed
alex-the-third wants to merge 3 commits into
Tinder:masterfrom
alex-the-third:fix/bzlmod-override-patches
Closed

alex-the-third wants to merge 3 commits into
Tinder:masterfrom
alex-the-third:fix/bzlmod-override-patches

Conversation

@alex-the-third

@alex-the-third alex-the-third commented Oct 19, 2026 •

Copy link
Copy Markdown

Adds query and cquery regression coverage for #522 against the upstream implementation from #528.

The tests change only a single_version_override patch to a .txt file and verify that:

  • The consumer's build output changes.
  • The consumer is reported as impacted without fine-grained external hashing.
  • An unrelated target remains unaffected.
  • Repeated hash generation is stable.

The patched dependency uses a local registry and archive. The diff contains only e2e tests, their fixture and documentation, and generated test entries.

Validated on Linux in WSL:

  • bazel test //...: all 67 test targets passed, including the three previously failing cquery cases.
  • Bazel 9 CI candidate checks: all 13 test targets passed, including Rust unit tests, Clippy, formatting, and tooling tests.
  • go test -count=1 ./... in tools/firecracker: passed.

Register repository targets under apparent and canonical names so override patch changes propagate to cquery consumers.

Add query and cquery regressions for changed outputs, stable repeated hashes, and unaffected unrelated targets.

Fixes Tinder#522.
@alex-the-third alex-the-third changed the title Fix cquery impact detection for patched Bzlmod repositories Add end-to-end regression tests for Bzlmod override patches Oct 21, 2026
@alex-the-third

Copy link
Copy Markdown
Author

Fixed by #528 already. All regressions passing as well.

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.

1 participant