Skip to content

fix(test): isolate microVM integration dependencies and stabilize workspace metadata - #1999

Merged
JAORMX merged 1 commit into
mainfrom
fix/workspace-dependency-hygiene
Sep 29, 2026
Merged

JAORMX merged 1 commit into
mainfrom
fix/workspace-dependency-hygiene

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix the task tidy failure and recurring workspace-checksum changes without weakening microVM dependency isolation.

Root composition tests imported the opt-in microVM runtime. Workspace mode supplied those imports, but root go mod tidy added go-microvm to go.mod, violating the existing isolation test. Move the two real-daemon tests into integration/microvm, a test-only module using explicit local replacements. Preserve their assertions, isolated fixtures, and goroutine-leak coverage; no production API changes.

  • Remove the runtime-module import from the tagged production E2E probe while retaining its shared/private object-store assertions.
  • Include the integration module in workspace, standalone, race, lint, tidy, and CI path-selection coverage.
  • Regenerate module metadata and workspace checksums, including the additional checksums populated by CI's go mod download all step.
  • Add a CI gate that runs tidy after builds and rejects module/workspace metadata drift.

This is a reversible test refactor preserving the existing production-module isolation contract. No plan or ADR is introduced. Most added lines are generated dependency metadata.

Verification

  • task test
  • task lint (all modules, zero issues)
  • task test:race
  • task build
  • Offline go run ./cmd/mecademo: tool call, permission ask/approval, and final result verified
  • Focused root microVM isolation test; integration tests with workspace on/off and race detection
  • Tagged production E2E compilation and offline probe test; no live hypervisor/provider E2E run
  • Actionlint; relevant-change, race-aggregate, race-vet-off, and root-race-partition shell checks
  • SHA-256 checks across all 20 module/workspace metadata files: repeated build/tidy and dependency-download/tidy cycles are byte-identical after normalization

Independent requirements, standards, test-adequacy, CI, and developer-workflow reviews are clean. The refactor preserves the real-daemon peer-close and cross-build schedule-owner tests rather than replacing them with protocol fakes.

…e metadata

Move daemon-backed composition tests into a local test-only module without weakening runtime isolation or lifecycle coverage. Preserve the goroutine-leak gate and wire workspace, standalone, race, lint, and CI coverage.

Normalize module/workspace metadata and reject drift after CI builds and tidy, including the checksums populated by CI dependency downloads.

Co-authored-by: Mecatl <[email protected]>
@JAORMX
JAORMX merged commit 6142f52 into main Sep 29, 2026
44 checks passed
@JAORMX
JAORMX deleted the fix/workspace-dependency-hygiene branch September 29, 2026 12:56
JAORMX added a commit that referenced this pull request Sep 30, 2026
Replace race shards, workflow-shape assertions, and timing experiments with one CI job using Task's parallel module dependencies. Remove redundant release wrappers and repeated CI normalization cycles. Pin public dependencies to resolvable revisions, commit standalone adapter checksums, and preserve PR #1999's tidy/sync ordering. Retain the external consumer proof once after dependency setup.

Co-authored-by: Mecatl <[email protected]>
JAORMX added a commit that referenced this pull request Sep 30, 2026
Replace race shards, workflow-shape assertions, and timing experiments with one CI job using Task's parallel module dependencies. Remove redundant release wrappers and repeated CI normalization cycles. Pin public dependencies to resolvable revisions, commit standalone adapter checksums, and preserve PR #1999's tidy/sync ordering. Retain the external consumer proof once after dependency setup.

Co-authored-by: Mecatl <[email protected]>
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 30, 2026
2 tasks
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