Skip to content

ci: smoke tests a branch from its checkout, retry the module download - #23

Merged
StevenCyb merged 2 commits into
mainfrom
fix/smoke-reliable
Nov 17, 2026
Merged

StevenCyb merged 2 commits into
mainfrom
fix/smoke-reliable

Conversation

@StevenCyb

Copy link
Copy Markdown
Owner

What and why

The smoke jobs were red for reasons unrelated to the code:

  • On a branch push the job ran go install …@<commit sha>. A quick auto-merge deleted the branch before the job fetched the commit (unknown revision).
  • The Go module cache sometimes fails on a just pushed commit on Linux (git fetch --unshallow … shallow file has changed).

Changes:

  • scripts/smoke.sh --local <repo>: a checkout with a replace directive, no network for the repository itself. Feature-branch pushes use it. main, tags and manual runs still fetch the pushed commit like a user would.
  • retry around go install, go get and go mod tidy.
  • .gitignore: ignore .claude/worktrees/ (agent worktrees were picked up by a git add -A; the commit was rewritten before review).

Verified on this branch: smoke passes on Ubuntu, macOS and Windows in local mode. After merging, the three smoke jobs become required checks.

🤖 Generated with Claude Code

StevenCyb and others added 2 commits November 17, 2026 08:33
A feature branch can be merged and deleted before its smoke job fetches the commit
(unknown revision), and the Go module cache sometimes fails on a just pushed commit
(shallow file has changed). Branch pushes now smoke-test the checkout with a replace
directive, main, tags and manual runs still fetch the pushed commit, with retries.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@StevenCyb
StevenCyb enabled auto-merge (squash) November 17, 2026 07:36
@StevenCyb
StevenCyb merged commit b63f3a6 into main Nov 17, 2026
11 checks passed
@StevenCyb
StevenCyb deleted the fix/smoke-reliable branch November 17, 2026 07:37
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