Isolate synthetic module downloads in workflow tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# PromptKit Bug Report: v0.2.0 Module Checksum Mismatch
|
||||
|
||||
**Status:** Stale local module metadata confirmed; cache recovery and test
|
||||
isolation follow-up remain pending.
|
||||
**Status:** Stale local module metadata confirmed; test isolation fixed.
|
||||
Shared-cache recovery and PromptKit's adoption retry remain pending.
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -95,22 +95,32 @@ Recovery was verified in a copied cache; PromptKit's adoption retry remains pend
|
||||
### Related Test-Isolation Defect
|
||||
|
||||
The workflow tests' [environment helper](../../cmd/releasekit/woodpecker_test.go)
|
||||
disables checksum verification for synthetic fixtures and inherits the caller's
|
||||
disabled checksum verification for synthetic fixtures and inherited the caller's
|
||||
module cache. The version-selection test serves synthetic ReleaseKit versions
|
||||
from a local module proxy.
|
||||
|
||||
Running `TestWoodpeckerTagDeliveryUsesTaggedModuleVersion` with a disposable
|
||||
inherited `GOMODCACHE` passed and left synthetic `v0.2.197` and `v0.2.198`
|
||||
metadata in that cache. This confirms that the tests can contaminate a
|
||||
developer's module cache. It establishes a related defect; attribution of the
|
||||
metadata in that cache. This confirmed that the tests could contaminate a
|
||||
developer's module cache. It established a related defect; attribution of the
|
||||
stale `v0.2.0` entry to a particular test or command remains unconfirmed.
|
||||
|
||||
### Test-Isolation Resolution
|
||||
|
||||
Both synthetic-proxy test families now use a shared environment helper that
|
||||
assigns a fresh test-owned `GOMODCACHE` and scopes proxy/checksum settings to
|
||||
their Go subprocesses. Source-bootstrap preparation and execution retain
|
||||
separate caches. Tests that build real ReleaseKit source continue to use their
|
||||
prepared dependencies.
|
||||
|
||||
The existing tagged-version test now supplies a disposable caller cache and
|
||||
asserts that it remains empty after fixture execution. This regression failed
|
||||
before the fix and passed afterward. All Woodpecker workflow tests passed.
|
||||
|
||||
## Recommended Follow-Up
|
||||
|
||||
1. Quarantine the affected local `v0.2.0.mod` entry and retry PromptKit's adoption
|
||||
with normal checksum verification. Retain the quarantined bytes as evidence.
|
||||
2. Give synthetic module-proxy tests a temporary `GOMODCACHE` owned by the test
|
||||
fixture, with focused regression coverage for cache isolation.
|
||||
3. Record the actual cache recovery and consumer retry outcomes here. Preserve
|
||||
2. Record the actual cache recovery and consumer retry outcomes here. Preserve
|
||||
the published v0.2.0 tag and checksums; this incident requires no replacement
|
||||
release.
|
||||
|
||||
Reference in New Issue
Block a user