Repository navigation
Pass -count=1 to every e2e make target - #833
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The e2e harness builds bin/spawn and execs it at runtime. Go's test cache keys on source, build flags and environment — it cannot see a binary read at runtime — so a second invocation reported `ok (cached)` regardless of what bin/spawn had become. Replacing bin/spawn with a shell script whose entire body is `exit 1` still passed the whole Tier 0 surface. This was #792, fixed where it was noticed and left in the Makefile, which is where most people invoke it from. Tiers 2 and 3 are the costly version of the same hole rather than the embarrassing one: they launch real billable instances, so a cached pass let a release be cut on a run that never touched AWS, with output indistinguishable from one that did. TestEveryE2EMakeRecipePassesCountOne discovers the recipes instead of naming the targets, so a future tier inherits the requirement, and fails when discovery finds nothing rather than reporting the Makefile clean. Closes #831
scttfrdmn
force-pushed
the
fix/831-e2e-count1
branch
from
October 11, 2026 18:14
6fd98db to
3cc9b7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #831.
The hole
The e2e harness builds
bin/spawnand execs it at runtime. Go's test cache keys onsource, build flags and environment — it cannot see a binary read at runtime — so a
second invocation reports
ok (cached)whateverbin/spawnnow is.Demonstrated rather than inferred:
The third run is the point: the entire Tier 0 surface reports green against a
spawnthat does nothing but exit 1.
This was #792, fixed where it was noticed and left in the Makefile — which is where most
people invoke it from.
grep -c count=1 Makefilewas 1, and that one was elsewhere.Tiers 2 and 3 are the expensive version, not just the embarrassing one. They launch real
billable instances, so a cached pass lets a release be cut on a run that never touched
AWS, and nothing in the
(cached)line says which happened.After
The second run executes instead of reporting
(cached).Gate
TestEveryE2EMakeRecipePassesCountOnescans the Makefile for every recipe line runninggo testagainst./test/e2e/and requires-count=1. Discovery rather than a list oftarget names (rule 4), so a future Tier 4 inherits the requirement instead of silently
escaping it; it fails on empty discovery, and carries a floor of four recipes so a regex
that stops matching cannot pass as a clean Makefile.
Three compiling reverts, each failing with its own message:
-count=1from tier 0Makefile:161 runs the e2e suite without -count=1 …./test/e2e/→./test/endtoend/found no Makefile recipe … discovery has broken@echofound only 2 e2e recipes; the repo has four tiersVerification
make check,make check-docs, changelog gate, and Tier 0 run twice to confirm thesecond is not cached.