Skip to content

fix(ci): revive four startup-dead workflows — codeql-action v4.38.0 + actions.lock repair - #842

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/837-codeql-v4380-revert
Sep 22, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
fix/837-codeql-v4380-revert

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What this fixes

Four hypatia workflows have been startup_failure since 2026-09-22 14:22Z:
CI, Tests (E2E / Integration / Stress / Bench), CodeQL Security Analysis
and Security. This restores all four.

They are not four faults. They are two, both introduced by the same
commit, and each is fixed here on its own merits.

How it was localized

actionlint reports zero errors on all four files and yq parses all
four, so nothing in the workflow YAML is wrong — the fault is in what the
files reference.

All four flipped at exactly one commit. On 0e121c94 (14:20Z) CodeQL was
success and the other three were running (failure, jobs > 0). On
0aa89724 (14:22Z) all four were startup_failure, and have been on every
run since. 0aa89724 is the merge of #830, chore(deps): bump the actions group across 1 directory with 4 updates.

Cause 1 — codeql-action was bumped to the version its own comment forbids

#830 moved github/codeql-action from b96794f to 1c5b675 and left every
trailing comment reading:

# v4.38.0 (4.38.1 blocked estate-wide; nexia-list#100)

But the tags resolve the other way round:

tag commit
v4.38.0 b96794f015dfd88f77b49b1c93e0fa7110f94c63
v4.38.1 1c5b675653bb5c22dbe9b12b556ec555138e09fd

So the files asserted v4.38.0 while pinning v4.38.1 — the exact version the
comment forbids. nexia-list#100 records that GitHub refuses codeql-action
v4.38.1 at workflow startup in both tag and SHA form, and lists hypatia
@1c5b675 among the repos it kills, with v4.38.0 green elsewhere.

Reverted at all 8 sites, which makes the existing comments true.

Cause 2 — a tag bump with no lockfile pin, under sha_pinning_required

This is why ci.yml and tests.yml also died: neither uses codeql-action at
all.

hypatia's Actions permissions carry sha_pinning_required: true. Under
that setting a tag-form uses: is admissible only if
.github/workflows/actions.lock pins it to an immutable commit. #830 bumped
taiki-e/install-action v2.87.15 → v2.87.16 in four workflows and updated
no lockfile entry, leaving the tag unpinned.

Repinned to v2.87.16 (9114bf4d…) rather than reverting — it is a real tag
and there is no reason to lose the upgrade.

Cause 2b — the lockfile had become unparseable

#830 also left behind a self-contradictory dependencies entry: a full-SHA
key whose commit digest names a different commit
.

'github/codeql-action@1c5b675653bb5c22dbe9b12b556ec555138e09fd':
    ref: 'v4.38.1'
    commit: 'sha1-b96794f015dfd88f77b49b1c93e0fa7110f94c63'

A 40-hex key must resolve to itself. It did not, and that one entry made the
whole file refuse to parse:

$ gh actions-lock --no-fix
lockfile is unreadable: .github/workflows/actions.lock: line 262, column 17:
  pin key ref is a full SHA (1c5b675653bb) but commit digest
  "sha1-b96794f015…" does not match for dependency
  "github/codeql-action@1c5b675653bb…"

Nothing references that ref after Cause 1 is fixed, so the entry is dead as
well as wrong. Removed.

After this branch:

$ gh actions-lock --no-fix
Scanning 32 workflows

— no findings, where before it would not read the file at all.

Why it matters beyond four red squares

Verification

  • actionlint clean on all four files; yq parses all four.
  • gh actions-lock --no-fix goes from "lockfile is unreadable" to a clean
    scan of 32 workflows. ⚠ it exits 0 in both states — the message is the
    signal, not the exit code.
  • The lockfile was verified against origin/main content, not the working
    tree (the local clone's main was 1 ahead / 35 behind).
  • Both commits are signed.
  • The four workflows are push: [main, master] + pull_request, so they
    produce no run on a branch push — this PR is what exercises them. Their
    conclusions on this PR are the acceptance evidence; each must report
    jobs > 0, since a 0-job/0s run is a startup death, not a verdict.

Refs #837

🤖 Generated with Claude Code

https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV

hyperpolymath and others added 2 commits September 22, 2026 19:51
PR #830 (grouped dependabot actions bump) moved github/codeql-action from
b96794f (v4.38.0) to 1c5b675 (v4.38.1) across codeql.yml and
security-policy.yml, and left every trailing comment reading

    # v4.38.0 (4.38.1 blocked estate-wide; nexia-list#100)

untouched. So the files asserted v4.38.0 while actually pinning the exact
version that comment forbids. nexia-list#100 records that GitHub refuses
codeql-action v4.38.1 at workflow startup in both tag and SHA form, with
v4.38.0 green estate-wide.

Measured on hypatia: all four affected workflows flipped to startup_failure
at precisely 0aa8972 (the #830 merge, 14:22Z). On the preceding commit
0e121c9 CodeQL was success and CI/Tests/Security were running (failure with
jobs > 0).

Also removes the actions.lock dependencies entry for 1c5b675. It was
self-contradictory -- a full-SHA key whose commit digest named a *different*
commit:

    'github/codeql-action@1c5b675...':
        ref: 'v4.38.1'
        commit: 'sha1-b96794f015...'

which made the whole lockfile unparseable:

    $ gh actions-lock --no-fix
    lockfile is unreadable: .github/workflows/actions.lock: line 262 ...

Nothing references that ref after this change, so the entry is dead as well
as wrong. With it gone the lockfile parses again.

Refs #837

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV
hypatia has `sha_pinning_required: true` on its Actions permissions. Under
that setting a tag-form `uses:` is admissible only if the lockfile pins it to
an immutable commit, which is what .github/workflows/actions.lock exists to
do. PR #830 bumped taiki-e/install-action from v2.87.15 to v2.87.16 in four
workflows but updated no lockfile entry, so the tag resolved to nothing
pinned and ci.yml / tests.yml / security-policy.yml died at startup -- none
of which reference codeql-action, which is why the previous commit alone
could not revive them.

Repins the entry rather than reverting the bump: v2.87.16 is a real tag
(9114bf4d891761788c546334fd37538eae1bf8b3) and there is no reason to give up
the upgrade. The four workflow lists and the dependencies entry now name the
same version, and the stale v2.87.15 entry is dropped as unused.

`gh actions-lock --no-fix` now reports "Scanning 32 workflows" with no
findings, where before this branch it refused to parse the file at all.

Refs #837

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 26 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: 9d3538c9-f102-4cac-b71c-66437456c514

📥 Commits

Reviewing files that changed from the base of the PR and between 4fa2e39 and dccb065.

⛔ Files ignored due to path filters (1)
  • .github/workflows/actions.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • .github/workflows/codeql.yml
  • .github/workflows/security-policy.yml

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 450734e into main Sep 22, 2026
93 of 96 checks passed
@hyperpolymath
hyperpolymath deleted the fix/837-codeql-v4380-revert branch September 22, 2026 19:10
hyperpolymath added a commit that referenced this pull request Sep 22, 2026
…us E2E pass (#852)

## 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.com/claude-code)

https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV

Co-authored-by: Claude Opus 5 <[email protected]>
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.

1 participant