fix(image): stage only the sample files in the ci image's hook smoke test #5

Merged
Defame1297 merged 1 commits from fix/ci-image-smoke-test into main 2026-10-25 11:26:49 +00:00
Owner

Problem

Run 2251 (after #4): the ci job failed in the new smoke test, before any push. git add -A also staged the copied .pre-commit-config.yaml, so pre-commit run yamllint --all-files linted it with the default rules (6 lines over 80 chars) and set -eu aborted the build. install-hooks itself succeeded; gitleaks and actionlint were never reached.

Change

git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.yml instead of git add -A in the build-stage RUN of images/ci/Dockerfile. --all-files only covers tracked files, and pre-commit does not need its own config to be tracked. The yamllint warnings on the sample files (document-start, truthy) are not errors.

Verification

image.yml builds on main; the next push shows whether all three hooks pass before and after the Go toolchains are deleted, and the real layer sizes.

🤖 Generated with Claude Code

## Problem Run 2251 (after #4): the `ci` job failed in the new smoke test, before any push. `git add -A` also staged the copied `.pre-commit-config.yaml`, so `pre-commit run yamllint --all-files` linted it with the default rules (6 lines over 80 chars) and `set -eu` aborted the build. `install-hooks` itself succeeded; gitleaks and actionlint were never reached. ## Change `git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.yml` instead of `git add -A` in the build-stage RUN of `images/ci/Dockerfile`. `--all-files` only covers tracked files, and pre-commit does not need its own config to be tracked. The yamllint warnings on the sample files (document-start, truthy) are not errors. ## Verification `image.yml` builds on `main`; the next push shows whether all three hooks pass before and after the Go toolchains are deleted, and the real layer sizes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-10-25 11:24:47 +00:00
fix(image): stage only the sample files in the ci image's hook smoke test
Lint / lint (pull_request) Successful in 1m23s
Build / build (pull_request) Successful in 50s
9be17d6655
`git add -A` also staged the copied .pre-commit-config.yaml, so the yamllint
smoke run linted it with the default rules (six lines over 80 characters)
and, under set -eu, aborted the build before gitleaks and actionlint ran.
pre-commit does not need its own config to be tracked.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 merged commit 6fb490a062 into main 2026-10-25 11:26:49 +00:00
Defame1297 deleted branch fix/ci-image-smoke-test 2026-10-25 11:26:49 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#5