Skip to content

ci: exempt version.go from the test-presence check#3

Merged
alxxjohn merged 1 commit into
mainfrom
fix/test-presence-version-bump
Jul 10, 2026
Merged

ci: exempt version.go from the test-presence check#3
alxxjohn merged 1 commit into
mainfrom
fix/test-presence-version-bump

Conversation

@alxxjohn

Copy link
Copy Markdown
Contributor

Problem

The Release Please PR (release-please--branches--main--components--merger) fails the test presence CI job:

Go source changed without any updates under tests/ or *_test.go files
internal/version/version.go

Release Please bumps internal/version/version.go (its var Number, via the x-release-please-version marker) on every release PR, along with CHANGELOG.md — no other code, and nothing testable. scripts/ci/check_test_presence.sh treats version.go as ordinary Go source and blocks the release.

Fix

Exempt internal/version/version.go from the test-presence check (alongside the existing _test.go and doc.go exemptions). It holds only the version string. Real code changes elsewhere are still enforced.

Verified locally:

  • release PR files (version.go + CHANGELOG.md) → no code changes flagged → passes
  • a real change (internal/scan/scan.go) → still flagged as requiring tests
  • mixed → version.go dropped, real file kept

🤖 Generated with Claude Code

Release Please bumps `internal/version/version.go` (its `var Number`, via
the x-release-please-version marker) on every release PR, with no other
code and nothing to test. The test-presence gate flagged those PRs as
"Go source changed without any updates under tests/", blocking releases.

Exempt internal/version/version.go from the check; it holds only the
version string. Real code changes elsewhere are still enforced.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Alex Wilkerson John <alex.w@linktr.ee>
@alxxjohn alxxjohn merged commit 1f0de3b into main Jul 10, 2026
17 checks passed
@alxxjohn alxxjohn deleted the fix/test-presence-version-bump branch July 10, 2026 18:20
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