Skip to content

fix(ci): improve builds by gitignoring go-coverage.out - #1747

Merged
nimdanitro merged 1 commit into
developfrom
fix/gitignore-go-coverage
Aug 21, 2026
Merged

fix(ci): improve builds by gitignoring go-coverage.out#1747
nimdanitro merged 1 commit into
developfrom
fix/gitignore-go-coverage

Conversation

@nimdanitro

Copy link
Copy Markdown
Member

One-line .gitignore fix for a name mismatch that has been there as long as the entry.

The mismatch

.gitignore lists coverage.out, but both workflows pass a different filename:

run: go test -coverprofile=go-coverage.out ./...

So the coverage profile is left untracked on every run that produces it, in both build.yaml and docker-workflow.yml.

Why it matters

Harmless while nothing looks at git state. But it makes the working tree dirty, and a build step that inspects git will refuse to proceed rather than stamp a commit that does not describe what was built. ko does exactly that once given a build config, failing with:

git is in a dirty state
Please check in your pipeline what can be changing the following files:
?? go-coverage.out

Landing this separately so the fix is available independently of the change that surfaced it.

Verified

Reproduced the docker job's file state in the order the steps run — go test, the cobertura conversion, and the downloaded ui/build artifact — then confirmed git status --porcelain is clean:

file status
go-coverage.out ignored — this PR
go-cobertura.xml already ignored by name
ui/build/** already ignored by ui/.gitignore

Also

Ignores *.tsbuildinfo, which tsc emits for the composite tsconfig.node.json project. Not produced by CI today — yarn build is just vite build — but it is the same class of stray artifact, and any step that runs tsc before a git-inspecting build would hit the same failure.

.gitignore listed `coverage.out`, but both workflows pass
`-coverprofile=go-coverage.out`, so the profile was left untracked on
every run that produced it — a name mismatch that has been there as long
as the entry.

Harmless while nothing looked at git state, but it makes the working tree
dirty, and a build step that inspects git will refuse to proceed rather
than stamp a commit that does not describe what was built. ko does exactly
that once given a build config, so this becomes load-bearing shortly.

Verified by reproducing the docker job's file state in order — go test,
the cobertura conversion, and the downloaded ui/build artifact — and
confirming git status is clean afterwards. The other two were already
covered: go-cobertura.xml by name, ui/build/** by ui/.gitignore.

Also ignores *.tsbuildinfo, which tsc emits for the composite
tsconfig.node.json project. Not produced by CI today — `yarn build` is
just `vite build` — but it is the same class of stray artifact.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@nimdanitro
nimdanitro requested a review from a team as a code owner August 21, 2026 20:34
@github-actions github-actions Bot added the fix label Aug 21, 2026
@github-code-quality

github-code-quality Bot commented Aug 21, 2026

Copy link
Copy Markdown

Code Coverage Overview

Languages: TypeScript, Go

TypeScript / code-coverage-agent

The overall line coverage in commit 08260e8 in the fix/gitignore-go-cov... branch is 44%. The line coverage in commit 9cdf63b in the develop branch is 37%.

Show a line coverage summary of the most impacted files.
File develop 9cdf63b fix/gitignore-go-cov... 08260e8 +/-
src/utils/ReloadSWPrompt.tsx 2% 2% 0%
src/components/...yerFeatures.tsx 97% 97% 0%
public/map/spri...es/basemap.json 0% 100% +100%
src/components/...iconResolver.ts 0% 100% +100%
src/utils/version.ts 0% 100% +100%
src/components/...AndZoneTypes.ts 0% 100% +100%
src/components/...xcludedIcons.ts 0% 100% +100%
src/components/...pickerConfig.ts 0% 100% +100%
src/components/...acyAtlasKeys.ts 0% 100% +100%
src/components/...acyIconNames.ts 0% 100% +100%

Go / code-coverage-agent

The overall line coverage in commit 08260e8 in the fix/gitignore-go-cov... branch is 3%. The line coverage in commit 9cdf63b in the develop branch is 1%.

Show a line coverage summary of the most impacted files.
File develop 9cdf63b fix/gitignore-go-cov... 08260e8 +/-
server/auth/oidc.go 4% 4% 0%
server/options.go 0% 11% +11%
server/handlers.go 0% 45% +45%

Updated August 21, 2026 20:36 UTC

@nimdanitro
nimdanitro merged commit 18968eb into develop Aug 21, 2026
20 checks passed
@nimdanitro
nimdanitro deleted the fix/gitignore-go-coverage branch August 21, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant