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
Protocols: e2e_tests check can never fail — '|| echo skipped' swallows real e2e failures (AIR, SPIR, ASPIR) #1488
The || echo exists to tolerate repos with no test:e2e script, but it swallows every non-zero exit — including a real, red e2e suite in a repo that has one. The check reports green in ~0.1s having run nothing (no root test:e2e script exists in this repo), or having ignored genuine failures elsewhere.
Discovered during AIR #1478: the builder noticed its porch e2e_tests check passed instantly without executing anything, and ran the relevant e2e suite (send-integration.e2e.test.ts) manually instead.
Why it matters
A check that cannot fail is worse than no check: it stamps a green e2e_tests line into every porch run, which reads as verified coverage. Spec 550 already shipped the sanctioned mechanism for repos without e2e — porch.checks overrides in .codev/config.json ("e2e_tests": { "skip": true }), which prints an explicit skip rather than a counterfeit pass.
Fix shape
Distinguish "script missing" from "script failed": run test:e2e if it exists and propagate its exit code; emit an explicit skip only when the script is absent (e.g. probe npm run --if-present's semantics or check the script's existence first). Apply to all three protocol.json files and their codev-skeleton twins.
Found while working #1483's program; not part of that program's scope.
Activity
[Air #1478] docs: close out the builder thread (PR parked for the mai…