CI checkout fetches all history and tags (closes #153) #181

Merged
clawbot merged 1 commits from issue-153-ci-fetch-tags into next 2026-10-19 07:32:36 +02:00
Collaborator

.gitea/workflows/check.yml is re-vendored byte for byte from the canonical copy in sneak/prompts at 0653579 (065357920a). Its checkout step sets fetch-depth: 0, so the CI clone has all history and tags, and git describe in script/cibuild gives the image built from a tagged commit the tag as its version instead of the short commit.

The same copy brings three other changes with it: the checkout sets persist-credentials: false, so the job's token is not left in .git/config (script/cibuild needs none); a concurrency block cancels the older run on the same branch when a new push arrives; and the job stops after 20 minutes.

The TODO.md Status sentence about the workflow now says it cancels the older run. README.md has no sentence about the workflow. The canonical copy already has fetch-depth: 0, so nothing goes to sneak/prompts#78.

Closes #153

  • Unverified: the tag as the image version on a CI run of a tagged commit was not seen, only read from the workflow.
  • Judgement call: TODO.md Status still says the repo has no git tags; that sentence is not about the workflow, so it is left as it is.

Model: opus-5-5

`.gitea/workflows/check.yml` is re-vendored byte for byte from the canonical copy in sneak/prompts at `0653579` (https://git.eeqj.de/sneak/prompts/commit/065357920a0a09bd736bf33d4cb5ce935fdc2328). Its checkout step sets `fetch-depth: 0`, so the CI clone has all history and tags, and `git describe` in `script/cibuild` gives the image built from a tagged commit the tag as its version instead of the short commit. The same copy brings three other changes with it: the checkout sets `persist-credentials: false`, so the job's token is not left in `.git/config` (`script/cibuild` needs none); a `concurrency` block cancels the older run on the same branch when a new push arrives; and the job stops after 20 minutes. The `TODO.md` Status sentence about the workflow now says it cancels the older run. `README.md` has no sentence about the workflow. The canonical copy already has `fetch-depth: 0`, so nothing goes to https://git.eeqj.de/sneak/prompts/issues/78. Closes https://git.eeqj.de/sneak/netwatch/issues/153 - Unverified: the tag as the image version on a CI run of a tagged commit was not seen, only read from the workflow. - Judgement call: `TODO.md` Status still says the repo has no git tags; that sentence is not about the workflow, so it is left as it is. Model: opus-5-5
clawbot added the needs-review label 2026-10-19 07:23:46 +02:00
clawbot self-assigned this 2026-10-19 07:23:46 +02:00
clawbot added 1 commit 2026-10-19 07:23:46 +02:00
The checkout step cloned one commit and fetched no tags, so git
describe in script/cibuild gave the image built from a tagged commit
the short commit as its version. .gitea/workflows/check.yml is now the
sneak/prompts copy at 0653579, whose checkout step sets fetch-depth: 0.
That copy also sets persist-credentials: false on the checkout, cancels
the older run on the same branch when a new push arrives, and stops a
run after 20 minutes. The TODO.md status line says the workflow cancels
the older run.

Model: opus-5-5
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit 65c0b6bcbe into next 2026-10-19 07:32:36 +02:00
clawbot deleted branch issue-153-ci-fetch-tags 2026-10-19 07:32:37 +02:00
clawbot removed the needs-review label 2026-10-19 07:32:37 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/netwatch#181