Skip to content

fix(just): clear stale Go coverage data before running tests - #209

Merged
sabinem merged 1 commit into
mainfrom
chore/cleanup-local-ci
Aug 21, 2026
Merged

fix(just): clear stale Go coverage data before running tests#209
sabinem merged 1 commit into
mainfrom
chore/cleanup-local-ci

Conversation

@sabinem

@sabinem sabinem commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

go tool covdata merges every covmeta in .output/<component>/coverage/data, and the directory is never cleared. Run the tests on one branch and then on another and the merged profile still names source files that only existed on the first, so go tool cover -html fails reading them — every spec passes and the target still goes red.

Drop the directory before delegating to quitsh. The run about to happen regenerates all of it. CI gets a fresh workspace, so this only ever bit locally, after a branch switch.

The proper fix is for quitsh's test-go runner to clear GOCOVERDIR itself, but that runner lives upstream in sdsc-ordes/quitsh.

`go tool covdata` merges every covmeta in .output/<component>/coverage/data,
and the directory is never cleared. Run the tests on one branch and then on
another and the merged profile still names source files that only existed on
the first, so `go tool cover -html` fails reading them — every spec passes and
the target still goes red.

Drop the directory before delegating to quitsh. The run about to happen
regenerates all of it. CI gets a fresh workspace, so this only ever bit
locally, after a branch switch.

The proper fix is for quitsh's test-go runner to clear GOCOVERDIR itself,
but that runner lives upstream in sdsc-ordes/quitsh.
@sabinem
sabinem merged commit df1459d into main Aug 21, 2026
2 checks passed
@sabinem
sabinem deleted the chore/cleanup-local-ci branch August 21, 2026 10:24
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