Skip to content

fix(ci): delete the fictional E2E job, gate the rollup, end the vacuous E2E pass - #852

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/843-e2e-compose
Sep 22, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/843-e2e-compose

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What this fixes

End-to-End Tests (e2e-tests) has never executed a test. Curing the #842
startup failure gave it its first real measurement in this repo's history, and it
died in 19s at docker compose with "no configuration file provided". Before
that it read skipped on every run.

The missing -f was the symptom. Measured, the job was fiction in four
independent ways, each fatal on its own:

# What it did What is actually there
1 docker compose with working-directory: deploy deploy/ holds exactly two files: Containerfile, README.adoc. No compose file. The repo's only one, integration/compose.test.yaml, is not among the four names compose auto-discovers, so -f is mandatory wherever it runs
2 docker compose up -d hypatia No compose file in this repo defines a hypatia service
3 curl -sf http://localhost:8080/health — the entire "E2E suite" deploy/Containerfile ends ENTRYPOINT ["hyper"] / CMD ["--help"]. It is a CLI. Nothing in it listens on any port, so this could not have passed under any compose file. 8080 is separately barred by estate network doctrine
4 arangosh --server.password="$ARANGO_ROOT_PASSWORD" The variable is never set in the job — it authenticated with an empty string

The real end-to-end suite already exists and already passes. tests/e2e.sh,
run by the e2e-elixir job, carries the header "Tests the neurosymbolic scanner
pipeline without docker-compose"
and scored PASS=9 FAIL=0 SKIP=0 on main
@ e5220d8. e2e-rust separately builds the Rust CLI and runs hyper scan
against a fixture repo. The deleted job duplicated their name and none of their
coverage. Its only consumer anywhere was integration-status.

build-images is not orphaned by the deletion — integration-tests
downloads and loads the same docker-images artifact.

Re-framing the acceptance criteria

#843's ACs were written before the CLI-not-server fact was measured, and AC1
presupposes a stack that does not exist. Restating rather than silently
reinterpreting them:

  • AC1 (docker compose resolves its config) — withdrawn. There is no
    service to stand up. Naming the file with -f would have produced a stack
    with no subject under test.
  • AC2 (the E2E step executes, conclusion success not skipped) — met
    by e2e-elixir / e2e-rust, which execute today.
  • AC3 (print the denominator, non-zero) — met, and it was not before.
  • AC4 (planted mutant reddens on a test failure) — met, below.

Two honesty defects fixed alongside

Both sit on lines this change already had to rewrite.

integration-status could not fail on a missing verdict. It failed correctly
on an explicit failure, but skipped, cancelled and an empty result all took
the warning branch and let the tier report green. Under if: always() a skip is
the normal shape of an upstream failure, so that was the likeliest path. It now
checks all three dependencies, fails on anything that is not success, prints
ok=N failed=N total=N, and fails on a zero denominator. Results reach the shell
through env: instead of ${{ }} interpolation, per .claude/CLAUDE.md.

tests/e2e.sh could report a clean pass having tested nothing. It ended
exit "$FAIL", so a run in which every scenario skipped — no Elixir, no Rust
CLI, a renamed fixture — exited 0. Proven empirically, not asserted: the
origin/main tail exits 0 with PASS=0 FAIL=0 SKIP=5. It now prints
Scenarios run: N and fails when N is 0. SKIP deliberately does not count
toward N, because a skipped scenario produced no evidence either way.

Verification

15 assertions across two harnesses, driving the shipped text verbatim. The
rollup's run: block contains zero ${{ }}, so yq extracts it
byte-identically to what CI executes; the e2e.sh tail is sourced directly.

Harness Patched origin/main control
tests/e2e.sh summary + guard 6/6 green killed by 6
integration-status rollup 9/9 green killed by 6 (it passes 3 — it does fail on an explicit failure)

⚠ The first control run reported main killed by 9. That was a harness artefact —
my substitution injected literal quote characters into declare -A, so every
result missed the success branch. Corrected; the table above is the honest
measurement.

AC4 mutant, on the real suite. Broke the rule-module assertion
(-gt 0 → -gt 99999):

CONTROL   rc=2  PASS=7  Scenarios run: 9
MUTANT    rc=3  PASS=6  Scenarios run: 9   FAIL: No rule modules found
REVERTED  rc=2  PASS=7

It reddens on a test failure — the denominator stays 9, which a
stack-startup failure would have collapsed. (The local baseline is rc=2 because
mix deps.get has not run here; CI is rc=0 / PASS=9. The delta is the proof.)

Static: actionlint 15 findings → 6, none of the six in a changed region
(lines 89, 514, 751, 761, 762 — all pre-existing). 9 jobs parse; the only
surviving reference to e2e-tests is the REMOVED — comment, written in the
file's existing house style alongside the haskell-integration removal.

Closes #843

🤖 Generated with Claude Code

https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV

…us E2E pass

`End-to-End Tests` (e2e-tests) has never executed a test. The #842
startup-failure cure gave it its first real measurement in this repo's
history and it died in 19s at `docker compose` with "no configuration
file provided"; before that it read `skipped` on every run. It was
fiction in four independent ways, each fatal on its own:

  1. It ran `docker compose` in `working-directory: deploy`, which holds
     exactly two files — Containerfile and README.adoc. No compose file.
     The repo's only compose file, integration/compose.test.yaml, is not
     one of the four names compose auto-discovers, so it needs an
     explicit `-f` wherever it is run from.
  2. It ran `docker compose up -d hypatia`. No compose file in this repo
     defines a `hypatia` service.
  3. Its entire "E2E test suite" was `curl -sf localhost:8080/health`.
     The image it loads is built from deploy/Containerfile, which ends
     `ENTRYPOINT ["hyper"]` / `CMD ["--help"]` — a CLI. Nothing in it
     listens on any port, so that check could not have passed under any
     compose file. 8080 is separately barred by estate doctrine.
  4. $ARANGO_ROOT_PASSWORD was never set, so the arangosh heredoc
     authenticated with an empty string.

The real end-to-end suite already exists and already passes: tests/e2e.sh,
run by `e2e-elixir`, whose own header reads "Tests the neurosymbolic
scanner pipeline without docker-compose" — it scored PASS=9 FAIL=0 SKIP=0
on main @ e5220d8. `e2e-rust` separately builds the Rust CLI and runs
`hyper scan` against a fixture repo. The deleted job duplicated their name
and none of their coverage. Its only consumer anywhere was
integration-status. build-images is not orphaned: integration-tests
downloads and loads the same artifact.

Two honesty defects fixed alongside, both on lines this change already
had to rewrite:

* integration-status could not fail on a missing verdict. It failed
  correctly on an explicit `failure`, but `skipped`, `cancelled` and an
  empty result all took the warning branch and let the tier report green.
  Under `if: always()` a skip is the normal shape of an upstream failure,
  so that was the path most likely to be taken. It now checks all three
  dependencies, fails on anything that is not `success`, prints its
  denominator, and fails on a zero denominator. Results reach the shell
  through `env:` rather than ${{ }} interpolation, per .claude/CLAUDE.md.

* tests/e2e.sh ended `exit "$FAIL"`, so a run in which every scenario
  skipped — no Elixir, no Rust CLI, a renamed fixture — exited 0 and
  reported a clean end-to-end pass having tested nothing. It now prints
  "Scenarios run: N" and fails when N is 0. Verified empirically: the
  origin/main tail exits 0 with PASS=0 FAIL=0 SKIP=5.

Verification: 15 assertions across two harnesses driving the shipped text
verbatim (6 on the e2e.sh summary tail, 9 on the rollup, whose `run:`
block contains zero ${{ }} and so extracts byte-identically). All green;
the origin/main controls are killed by 6 and 6 respectively.
actionlint 15 findings -> 6, none in the changed regions. 9 jobs parse.

Closes #843

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: af8c6c4d-c908-4670-8ffd-724e55bbae5d

📥 Commits

Reviewing files that changed from the base of the PR and between e5220d8 and e2d7da8.

📒 Files selected for processing (2)
  • .github/workflows/tests.yml
  • tests/e2e.sh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath merged commit 8e8943f into main Sep 22, 2026
94 of 95 checks passed
@hyperpolymath
hyperpolymath deleted the fix/843-e2e-compose branch September 22, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E2E tests have never executed: 'Start full stack' fails with 'no configuration file provided'

1 participant