Skip to content

Protocols: e2e_tests check can never fail — '|| echo skipped' swallows real e2e failures (AIR, SPIR, ASPIR) #1488

Open

Description

@mohidmakhdoomi

What

The e2e_tests check in three protocol definitions is a no-op that cannot fail:

npm run test:e2e 2>&1 || echo 'e2e tests skipped (not configured)'
  • codev/protocols/air/protocol.json:72 (and skeleton twin)
  • codev/protocols/spir/protocol.json:142 (and skeleton twin)
  • codev/protocols/aspir/protocol.json:139 (and skeleton twin)

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

  1. added
    area/protocols
    on Aug 17, 2026
  2. added a commit that references this issue on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/protocols

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions