fix(#927): remove the SPIKE flag that made CI report pass without running

`SPIKE_FORCE_DOCS_ONLY: "true"` reached dev in 88ea3d19. Its own comment
said it "must never reach dev" and would be removed in a follow-up commit
that never landed.

Every run since then has short-circuited: classify reports docs_only=true
without ever looking at the diff, so analyze, the test suite and all seven
platform builds report **pass** in three to six seconds having built and
tested nothing. #903 merged on top of it. #925 and #926 are both showing a
green that means nothing, noted on both.

The env is gone and so is the `if` block that read it. Leaving the guard
would keep a "skip every merge gate and report success" switch one
environment variable away, which is exactly how this happened.

This PR's own CI is the proof: with the flag gone, classify has to reach the
diff, see .github/workflows/*.yml, classify it as code, and run the real
jobs. A fast green on this PR means the fix did not work.

Closes #927

Citadel: meshcore-open-9b1

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
chore/904-docs-proof
diffwireauto 1 month ago committed by Benjamin Wiechel
parent bce0f5d4a4
commit 5e528f3c18

@ -18,12 +18,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
docs_only: ${{ steps.diff.outputs.docs_only }}
env:
# #904 SPIKE ONLY: forces the docs-only path so the short-circuit
# semantics can be proven on the machinery PR itself (whose .yml diff
# would otherwise classify as code). REMOVED in the follow-up commit;
# it must never reach dev.
SPIKE_FORCE_DOCS_ONLY: "true"
steps:
- uses: actions/checkout@v4
with:
@ -32,11 +26,12 @@ jobs:
id: diff
run: |
set -eu
if [ "${SPIKE_FORCE_DOCS_ONLY:-}" = "true" ]; then
echo "SPIKE: forcing docs_only=true (#904 verification)"
echo "docs_only=true" >> "$GITHUB_OUTPUT"
exit 0
fi
# No override, by design (#927). The #904 spike added an env flag
# that forced docs_only=true, it reached dev, and for every PR after
# it the build and test jobs reported pass in a few seconds having
# built nothing. A switch that turns every merge gate in the repo
# into a no-op, silently, is not worth the convenience of testing
# this job against itself.
if [ "${{ github.event_name }}" = "pull_request" ]; then
# checkout hands us the PR merge commit; parent 1 is the current
# base tip, so this is exactly the PR's effective diff.

@ -16,12 +16,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
docs_only: ${{ steps.diff.outputs.docs_only }}
env:
# #904 SPIKE ONLY: forces the docs-only path so the short-circuit
# semantics can be proven on the machinery PR itself (whose .yml diff
# would otherwise classify as code). REMOVED in the follow-up commit;
# it must never reach dev.
SPIKE_FORCE_DOCS_ONLY: "true"
steps:
- uses: actions/checkout@v4
with:
@ -30,11 +24,12 @@ jobs:
id: diff
run: |
set -eu
if [ "${SPIKE_FORCE_DOCS_ONLY:-}" = "true" ]; then
echo "SPIKE: forcing docs_only=true (#904 verification)"
echo "docs_only=true" >> "$GITHUB_OUTPUT"
exit 0
fi
# No override, by design (#927). The #904 spike added an env flag
# that forced docs_only=true, it reached dev, and for every PR after
# it the build and test jobs reported pass in a few seconds having
# built nothing. A switch that turns every merge gate in the repo
# into a no-op, silently, is not worth the convenience of testing
# this job against itself.
if [ "${{ github.event_name }}" = "pull_request" ]; then
# checkout hands us the PR merge commit; parent 1 is the current
# base tip, so this is exactly the PR's effective diff.

Loading…
Cancel
Save

Powered by TurnKey Linux.