test: prove fine-grained external-repo hashing is hermetic across wor… by maxwellE · Pull Request #387 · Tinder/bazel-diff · GitHub
Skip to content

test: prove fine-grained external-repo hashing is hermetic across wor…#387

Merged
tinder-maxwellelliott merged 1 commit into
Tinder:masterfrom
maxwellE:claude/fine-grained-hermeticity-test
Jun 25, 2026
Merged

test: prove fine-grained external-repo hashing is hermetic across wor…#387
tinder-maxwellelliott merged 1 commit into
Tinder:masterfrom
maxwellE:claude/fine-grained-hermeticity-test

Conversation

@maxwellE

@maxwellE maxwellE commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

…kspaces

Adds an E2E test that runs generate-hashes with --fineGrainedHashExternalRepos on the same wrapped_external_repo fixture checked out at two different absolute paths (each with its own Bazel output base, as on two CI agents) and asserts the fine-grained target hashes are identical.

This covers the fine-grained path specifically: @inner_repo's individual targets are hashed, including the source file @inner_repo//:data.txt which flows through SourceFileHasher (the path made portable in #385). The synthetic //external:* blob targets are excluded from the comparison -- they are a separate, non-fine-grained representation and, for local_path_override repos, can carry an absolute machine-specific path attribute (tracked separately).

Gated to Bazel 8.6.0+/9.0.1+ to match the other bzlmod E2E tests; CI runs Bazel 8.x/9.x so it executes.

…kspaces

Adds an E2E test that runs generate-hashes with --fineGrainedHashExternalRepos
on the same wrapped_external_repo fixture checked out at two different absolute
paths (each with its own Bazel output base, as on two CI agents) and asserts the
fine-grained target hashes are identical.

This covers the fine-grained path specifically: @inner_repo's individual targets
are hashed, including the source file @inner_repo//:data.txt which flows through
SourceFileHasher (the path made portable in Tinder#385). The synthetic //external:*
blob targets are excluded from the comparison -- they are a separate,
non-fine-grained representation and, for local_path_override repos, can carry an
absolute machine-specific `path` attribute (tracked separately).

Gated to Bazel 8.6.0+/9.0.1+ to match the other bzlmod E2E tests; CI runs Bazel
8.x/9.x so it executes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLwXzgBTGkZp63N9jv16x8
@tinder-maxwellelliott tinder-maxwellelliott merged commit d640369 into Tinder:master Jun 25, 2026
15 checks passed
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.

3 participants