Skip to content

rbtest: -perf.commit must equal the measured tree's HEAD - #13

Merged
tannevaled merged 3 commits into
mainfrom
commit-check
Nov 12, 2026
Merged

tannevaled merged 3 commits into
mainfrom
commit-check

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Closes #12

-perf.commit must now equal the 40-character git rev-parse HEAD of <root>, on a clean tree (only bench/go.mod / bench/go.sum may be dirty); otherwise the run refuses, naming both values or the dirty paths. Without the flag the commit is filled from HEAD, suffixed -dirty when the tree is. With no git, only a given flag refuses. The git lookup is replaceable; tests cover match, mismatch, prefix, dirty library file, dirty harness only, no git. README updated.

🤖 Generated with Claude Code

tannevaled and others added 3 commits November 12, 2026 10:43
Refuse a -perf.commit that is not the exact 40-character HEAD of <root>,
or a dirty tree (bench/go.mod and bench/go.sum excepted). Without the
flag, record HEAD, suffixed -dirty when the tree is. No git: refuse only
if the flag was given.

Refs #12

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Real-git tests for the status parser (dirty, untracked, rename, xbench,
nested module); bench/go.mod exempt only for requires of other modules
with the library's replace unchanged, go.sum only alongside it; -perf.record
refuses a different commit and records the checked one; dirty marker carries
a digest of the changes; untracked-files=all, ignore-submodules=none,
GIT_* cleared, 30 s timeout, paths mapped under the module root.

Refs #12

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fewer error branches (one batched git call), a goModAccepted table,
hash-choice and outside-git tests.

Refs #12

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

-perf.commit must equal the measured tree's HEAD (refuse fabricated or dirty commits)

1 participant