You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
All four e2e make targets omit -count=1, so a cached pass can certify a binary that does nothing #831
make test-e2e-tier0/1/2/3 each build the CLI and then run tests that exec bin/spawn
at runtime. Go's test cache keys on source, build flags and env — it cannot see a binary
read at runtime — so a second invocation reports ok (cached) regardless of what bin/spawn now is. This is #792, which was fixed in the places it was noticed and left
in the Makefile, which is where most people invoke it from.
Demonstrated, not inferred:
$ go test -tags=e2e_tier0 -timeout 30m ./test/e2e/
ok github.com/spore-host/spawn/test/e2e 68.351s
$ go test -tags=e2e_tier0 -timeout 30m ./test/e2e/
ok github.com/spore-host/spawn/test/e2e (cached)
$ printf '#!/bin/sh\nexit 1\n' > bin/spawn && chmod +x bin/spawn
$ go test -tags=e2e_tier0 -timeout 30m ./test/e2e/
ok github.com/spore-host/spawn/test/e2e (cached)
The third run is the point: the whole Tier 0 surface reports green against a spawn that
does nothing but exit 1.
Tiers 2 and 3 are the expensive case, not just the embarrassing one. They launch real
billable instances, and a cached pass means a release can be cut on a run that never
touched AWS — while the output is indistinguishable from one that did. Nothing in the (cached) line says which.
Fix is -count=1 on all four target lines (Makefile:161,166,171,176). grep -c count=1 Makefile is currently 1, and that one is elsewhere.
Worth a gate as well as a fix, since the same omission will read as harmless next time:
a test over the Makefile asserting every recipe that runs go test against ./test/e2e/
carries -count=1. Discovery-based — find the recipes, don't list them — so a Tier 4
inherits it.
Activity
Pass -count=1 to every e2e make target