Skip to content

build: add CI workflow and fix flaky compaction test - #1

Merged
shaikn6 merged 1 commit into
mainfrom
build/add-ci-and-fix-flaky-compaction-test
Oct 17, 2026
Merged

shaikn6 merged 1 commit into
mainfrom
build/add-ci-and-fix-flaky-compaction-test

Conversation

@shaikn6

@shaikn6 shaikn6 commented Oct 17, 2026

Copy link
Copy Markdown
Owner

CI

The repo had no GitHub Actions workflow. Adds one (build-test) running go build, go vet and go test ./... -race with a coverage summary, on push to main and on PRs. Pinned to Go 1.26.4 (matches go.mod).

Flaky test

TestCompactionDuringConcurrentUse signalled its background compaction goroutine with close(stop) but never joined it, so the goroutine could call Compact() after s.Close() and fail intermittently with "store is closed" (~5 of 6 runs without -race). Joined it with a WaitGroup before Close.

Verified: 6/6 passes without -race, full suite green plain and under -race, go vet clean.

Follow-ups (separate PRs): a govulncheck job needs a Go toolchain bump first; a golangci-lint job needs a config pass.

No GitHub Actions workflow existed. Adds one running go build, go vet
and go test -race with a coverage summary on push and PR.

TestCompactionDuringConcurrentUse signalled its compaction goroutine to
stop with close(stop) but never joined it, so the goroutine could call
Compact() after s.Close() and fail intermittently with 'store is closed'
(failed ~5 of 6 runs without -race). Join it with a WaitGroup before
Close. Passes 6/6 without -race and under -race.
@shaikn6
shaikn6 merged commit e1b4c83 into main Oct 17, 2026
1 check passed
@shaikn6
shaikn6 deleted the build/add-ci-and-fix-flaky-compaction-test branch October 17, 2026 06:01
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