Skip to content

fix(e2e): keep the image stamp stable across commits - #2261

Open
w3lld1 wants to merge 1 commit into
umputun:masterfrom
w3lld1:fix/e2e-content-stamp
Open

w3lld1 wants to merge 1 commit into
umputun:masterfrom
w3lld1:fix/e2e-content-stamp

Conversation

@w3lld1

@w3lld1 w3lld1 commented Oct 8, 2026

Copy link
Copy Markdown

Fixes #2216

I changed the image stamp to hash tracked files on disk instead of combining HEAD tree hashes, a diff and porcelain status. Staging or committing an existing edit now leaves the stamp unchanged. I skip deleted tracked files so staging and committing a removal behave the same way, and keep the existing name-only detection for untracked files and the separate coverage stamp.

I added a standalone shell regression test and wired it into the e2e workflow's cheap gate. It covers edits, staging, commits, deletions, paths with spaces, untracked names, suite-only commits, the Telegram stub and coverage mode. I also ran it against the original stamp script: it fails on the staging assertion there and passes with this change.

Validation I ran locally:

  • sh e2e/stamp_test.sh — all 16 assertions passed, including a rerun on the committed change.
  • shellcheck e2e/stamp.sh e2e/stamp_test.sh, sh -n e2e/stamp.sh e2e/stamp_test.sh and git diff origin/master...HEAD --check.
  • With Go 1.27.0: cd backend/app && go test -timeout=300s -count 1 ./....
  • With Go 1.27.0: cd backend/_example/memory_store && go test -race ./... && go build -race ./....
  • cd backend && golangci-lint run and cd backend/_example/memory_store && golangci-lint run --config ../../.golangci.yml using v2.13.2 built with Go 1.27.0.
  • cd e2e && go vet -tags=e2e ./... and golangci-lint run --build-tags=e2e --config ../backend/.golangci.yml with the same toolchain.

I could not run the full Docker build and browser suite locally because this environment cannot access the Docker socket. I am leaving those checks to the existing e2e CI workflow; the shell regression does not require Docker or browsers.

@w3lld1
w3lld1 requested a review from umputun as a code owner October 8, 2026 01:38
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.

e2e stamp changes when identical content is committed

2 participants