Skip to content

test: fix microVM guest-pipe and JSONL lineage flakes - #2033

Merged
jbeda merged 1 commit into
mainfrom
fix/flake-microvm-jsonl-lineage
Oct 1, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/flake-microvm-jsonl-lineage

Conversation

@jbeda

@jbeda jbeda commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #2016 and #2017.

  • Own and close both ends of every offline multibuild guest pipe at fixture shutdown, then join guest handlers. This prevents idle authenticated transport goroutines from surviving package teardown.
  • Keep the published engine lineage conformance suite runnable against JSONL's intentional fail-closed reads during partition publication. A test-only wrapper serializes its legacy success-required concurrent read; direct JSONL tests cover real concurrent saves and read-during-save failure followed by success. No production behavior changes.

Verification

  • go test -race ./integration/microvm -count=50 — passed; the old fixture reproduced a paired pipe goleak in 50 repetitions before the fix.
  • cd adapters && GOWORK=off go test -race ./jsonlstore -run 'TestJSONLStoreLineageConformance|TestJSONLStoreConcurrentLineageSaves|TestLineageReadDuringSaveFailsClosedThenRecovers' -count=100 — passed.
  • task test, task lint, task test:race — passed on the final candidate.
  • go run ./cmd/mecademo — showed tool call, permission ask/approval, and result.

An earlier full race run hit a separate intermittent microVM-manager environment-capture assertion at internal/adapter/microvmmanager/default_operations_test.go:258. Its focused 50-run race test and the final full race suite passed; that unrelated test is not changed here.

@jbeda
jbeda merged commit ef3e993 into main Oct 1, 2026
37 checks passed
@jbeda
jbeda deleted the fix/flake-microvm-jsonl-lineage branch October 1, 2026 08:02
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.

Flaky integration/microvm goleak after multibuild tests

1 participant