From 5e528f3c1856acae279d5b0206575a785fbeb461 Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:22:36 -0400 Subject: [PATCH] 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 --- .github/workflows/build.yml | 17 ++++++----------- .github/workflows/flutter_dart.yml | 17 ++++++----------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1788da7d..295a500e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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. diff --git a/.github/workflows/flutter_dart.yml b/.github/workflows/flutter_dart.yml index 33449ac0..9f7f4a53 100644 --- a/.github/workflows/flutter_dart.yml +++ b/.github/workflows/flutter_dart.yml @@ -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.