ci / static always red: SC1007 on fleet-queue-lib.sh:96 (FORGEJO_API= prefix assignment, from #301) #303

Closed
opened 2026-10-23 06:06:57 +00:00 by matou-build-agent · 3 comments

Found by the hourly healer watchdog (signature 5653c0ad3cd5, always-red on ci); evidence /tmp/matou-heal-Matou-dev-factory.lvjBTz.

Symptom

ci / static has failed on every push since ea10102 while ci / test passes:

run job result head
24056 static failure 8ab044c
24056 test success 8ab044c
24050 static failure ea10102
24050 test success ea10102

(runs.json. Both legs are one workflow run; the watchdog keys the red on the static job.)

Root cause

The pinned shellcheck -S warning -x step reports exactly one finding, reproduced byte-for-byte on the healer host with the same pinned v0.11.0 binary (checksum verified, so the download/pin plumbing is fine):

In fleet-queue-lib.sh line 96:
      REPO_SLUG="$slug" FORGEJO_API= bash "$lister" >"$tmpd/$tag.json" 2>"$tmpd/$tag.err"
                                    ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).

git log -S dates the line to ea10102 (#301, the fleet queue). bash -n over the full file list is clean; nothing else in the tree trips the gate.

The blanking is intentional — _fleet_queue_collect deliberately clears FORGEJO_API for the per-repo lister so it takes its offline path — so this is a lint-only failure, not a runtime bug. ShellCheck just cannot tell a deliberate empty-value prefix assignment from a typo'd var= value.

Fix

One line, in fleet-queue-lib.sh:96:

REPO_SLUG="$slug" FORGEJO_API='' bash "$lister" ...

'' is the form SC1007 itself recommends and keeps the semantics identical (set, empty, scoped to the command).

Also

  • .sandcastle/fleet-queue-lib.sh:96 carries the same line at the self-pin. CI does not scan .sandcastle/, so it is not a second red — but fix the root and let the next re-vendor carry it, do not hand-edit the vendored copy.
  • The healer classified this product (factory source at the repo root) and took no repair, per its charter. A root fix does not reach the running .sandcastle/ copy until a human re-vendors (bash onboarding/onboard.sh vendor .sandcastle <sha>, GOTCHAS 4) — for this ticket that only matters for the vendored line above; the CI gate goes green on the root fix alone.
  • Related but distinct: #211 (the broader static-check ticket, agent-blocked). This is the first real finding the #215 gate has produced, which is the gate working as designed.
**Found by the hourly healer watchdog** (signature `5653c0ad3cd5`, always-red on `ci`); evidence `/tmp/matou-heal-Matou-dev-factory.lvjBTz`. ## Symptom `ci / static` has failed on every push since ea10102 while `ci / test` passes: | run | job | result | head | |---|---|---|---| | 24056 | static | failure | 8ab044c | | 24056 | test | success | 8ab044c | | 24050 | static | failure | ea10102 | | 24050 | test | success | ea10102 | (`runs.json`. Both legs are one workflow run; the watchdog keys the red on the `static` job.) ## Root cause The pinned `shellcheck -S warning -x` step reports exactly one finding, reproduced byte-for-byte on the healer host with the same pinned v0.11.0 binary (checksum verified, so the download/pin plumbing is fine): ``` In fleet-queue-lib.sh line 96: REPO_SLUG="$slug" FORGEJO_API= bash "$lister" >"$tmpd/$tag.json" 2>"$tmpd/$tag.err" ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ). ``` `git log -S` dates the line to ea10102 (#301, the fleet queue). `bash -n` over the full file list is clean; nothing else in the tree trips the gate. The blanking is **intentional** — `_fleet_queue_collect` deliberately clears `FORGEJO_API` for the per-repo lister so it takes its offline path — so this is a lint-only failure, not a runtime bug. ShellCheck just cannot tell a deliberate empty-value prefix assignment from a typo'd `var= value`. ## Fix One line, in `fleet-queue-lib.sh:96`: ```sh REPO_SLUG="$slug" FORGEJO_API='' bash "$lister" ... ``` `''` is the form SC1007 itself recommends and keeps the semantics identical (set, empty, scoped to the command). ## Also - `.sandcastle/fleet-queue-lib.sh:96` carries the same line at the self-pin. CI does not scan `.sandcastle/`, so it is not a second red — but fix the root and let the next re-vendor carry it, do not hand-edit the vendored copy. - The healer classified this **product** (factory source at the repo root) and took no repair, per its charter. **A root fix does not reach the running `.sandcastle/` copy until a human re-vendors** (`bash onboarding/onboard.sh vendor .sandcastle <sha>`, GOTCHAS 4) — for this ticket that only matters for the vendored line above; the CI gate goes green on the root fix alone. - Related but distinct: #211 (the broader static-check ticket, `agent-blocked`). This is the first real finding the #215 gate has produced, which is the gate working as designed.
Author
Member

swarm-claim host=matou-dev-server-01 run=24063
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=24063 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

⏩ independent reviewer for #303 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #303 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>
Author
Member

close-report for #303 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261023-060833-778cbe (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 303,
  "status": "success",
  "commits": [
    "11db873c41f0ae257f110ceb4ff5ffc059d9e469"
  ],
  "changed_files": [
    "fleet-queue-lib.sh"
  ],
  "tests": [
    {
      "command": "bash tests/fleet-queue-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash -n fleet-queue-lib.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "fleet-queue-lib.sh:96 uses the SC1007-recommended empty-string form": "commit 11db873 changes `FORGEJO_API=` to `FORGEJO_API=''` on line 96",
    "semantics unchanged (set, empty, scoped to the lister command)": "bash probe confirms `X= cmd` and `X='' cmd` both export an empty value; fleet-queue-lib-test.sh passes 37/37 unchanged",
    "root fix only; vendored .sandcastle/ copy left untouched for the next re-vendor": "changed_files is fleet-queue-lib.sh alone; no .sandcastle/ edit (GOTCHAS 4)"
  },
  "summary": "Changed the empty FORGEJO_API prefix assignment on fleet-queue-lib.sh:96 to the SC1007-recommended '' form, clearing the always-red ci / static leg since ea10102.",
  "blockers": []
}
**close-report** for #303 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261023-060833-778cbe` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 303, "status": "success", "commits": [ "11db873c41f0ae257f110ceb4ff5ffc059d9e469" ], "changed_files": [ "fleet-queue-lib.sh" ], "tests": [ { "command": "bash tests/fleet-queue-lib-test.sh", "exit_code": 0 }, { "command": "bash -n fleet-queue-lib.sh", "exit_code": 0 } ], "criteria": { "fleet-queue-lib.sh:96 uses the SC1007-recommended empty-string form": "commit 11db873 changes `FORGEJO_API=` to `FORGEJO_API=''` on line 96", "semantics unchanged (set, empty, scoped to the lister command)": "bash probe confirms `X= cmd` and `X='' cmd` both export an empty value; fleet-queue-lib-test.sh passes 37/37 unchanged", "root fix only; vendored .sandcastle/ copy left untouched for the next re-vendor": "changed_files is fleet-queue-lib.sh alone; no .sandcastle/ edit (GOTCHAS 4)" }, "summary": "Changed the empty FORGEJO_API prefix assignment on fleet-queue-lib.sh:96 to the SC1007-recommended '' form, clearing the always-red ci / static leg since ea10102.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#303
No description provided.