ci / static is red on main: three SC1007 warnings in tests/fleet-dispatch-receiver-test.sh #371

Closed
opened 2026-11-19 19:16:57 +00:00 by ben · 4 comments
Owner

What happens

ci / static fails on every push to main. The test job passes on the same commits, so the lint gate gives no usable signal.

Evidence (2026-11-19, UTC)

  • static failed on bbe7256 (17:57), 6c712ed (18:13), c1baa88 (18:28) and 660f39d (18:40).
  • The pinned shellcheck (v0.11.0, -S warning -x) run file by file over the tree at 660f39d fails on exactly one file: tests/fleet-dispatch-receiver-test.sh, three SC1007 findings.
  • Two of them are lines 68 and 70, the empty prefix assignment FLEET_DISPATCH_LIVE_HOSTS= rx --ack .... The third was not located by line.

Cause

SC1007 reads VAR= cmd as a likely mistaken VAR=cmd. Here the empty value is meant. #360 fixed the same warning in two other fleet test files; this file came in afterwards.

Fix

Write the empty assignment as FLEET_DISPATCH_LIVE_HOSTS="" (or ='') on each of the three lines. Unlike #360's case, the empty value is the point of these cases, so keep it rather than removing the prefix.

Checks

  • shellcheck -S warning -x (v0.11.0) is clean over the whole set ci.yml lints.
  • bash tests/fleet-dispatch-receiver-test.sh still passes.
  • ci / static is green on the commit that lands this.

Found by an interactive session (Claude, with Ben) while checking the fix for #366. tests/ is not vendored, so no pin bump is needed.

## What happens `ci / static` fails on every push to `main`. The test job passes on the same commits, so the lint gate gives no usable signal. ## Evidence (2026-11-19, UTC) - `static` failed on `bbe7256` (17:57), `6c712ed` (18:13), `c1baa88` (18:28) and `660f39d` (18:40). - The pinned shellcheck (v0.11.0, `-S warning -x`) run file by file over the tree at `660f39d` fails on exactly one file: `tests/fleet-dispatch-receiver-test.sh`, three SC1007 findings. - Two of them are lines 68 and 70, the empty prefix assignment `FLEET_DISPATCH_LIVE_HOSTS= rx --ack ...`. The third was not located by line. ## Cause SC1007 reads `VAR= cmd` as a likely mistaken `VAR=cmd`. Here the empty value is meant. #360 fixed the same warning in two other fleet test files; this file came in afterwards. ## Fix Write the empty assignment as `FLEET_DISPATCH_LIVE_HOSTS=""` (or `=''`) on each of the three lines. Unlike #360's case, the empty value is the point of these cases, so keep it rather than removing the prefix. ## Checks - `shellcheck -S warning -x` (v0.11.0) is clean over the whole set `ci.yml` lints. - `bash tests/fleet-dispatch-receiver-test.sh` still passes. - `ci / static` is green on the commit that lands this. Found by an interactive session (Claude, with Ben) while checking the fix for #366. `tests/` is not vendored, so no pin bump is needed.

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: ci / static is red on every push to main — three SC1007 shellcheck warnings in the fleet-dispatch-receiver test file.

Verified during triage:

  • The empty-prefix env assignment FLEET_DISPATCH_LIVE_HOSTS= rx ... exists (two occurrences confirmed by eye; shellcheck reports a third in the same file — find it with the lint command below).
  • The test itself passes clean (bash tests/fleet-dispatch-receiver-test.sh → 17 passed, 0 failed), so this is a lint-only defect: the behaviour is correct, only the SC1007 pattern reddens static.
  • This is the same warning class already fixed under #360, #349 and #303. #349 is the direct precedent for the fix shape: quote the empty env prefix (VAR=""). This file landed after #360, so it was missed.

Current behavior: ci / static fails on main; the test job passes the same commits, so the lint gate gives no usable signal — and crucially, masks any future shellcheck regression.

Desired behavior: ci / static runs clean (pinned shellcheck v0.11.0, -S warning -x) over the whole set ci.yml lints, including the fleet-dispatch-receiver test file.

Fix: In each flagged empty-prefix assignment, write the empty value explicitly — FLEET_DISPATCH_LIVE_HOSTS="" rx ... (or =''). Keep the empty value: unlike #360's removals, an empty allowlist is the behaviour under test here, so the assignment must stay, only quoted.

Acceptance criteria:

  • shellcheck -S warning -x (v0.11.0) is clean over the full set ci.yml's static job lints (no SC1007, no other new finding).
  • bash tests/fleet-dispatch-receiver-test.sh still reports 17 passed, 0 failed.
  • ci / static is green on the landing commit.

Scope: The three SC1007 sites in tests/fleet-dispatch-receiver-test.sh only. tests/ is not vendored, so no FACTORY_REF pin bump is needed. Do not touch behaviour or other files.

Model note: This is a ~3-line mechanical quoting edit — a fair candidate for model-haiku. Left as a suggestion, not applied (per the triage-labels policy that a model override stays a deliberate decision).


Ruled by agent under ADR 0174 — veto anytime (added priority): a persistently red ci / static on main is a lost safety signal — every subsequent push's lint result is masked, so a future shellcheck regression lands unnoticed. Surfacing this at the head of the swarm queue restores that gate fastest. This is a two-way door: priority is a purely additive, removable label, and the ruling is proven simply — once the ticket lands, ci / static goes green and the label can be lifted.

> *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** `ci / static` is red on every push to `main` — three SC1007 shellcheck warnings in the fleet-dispatch-receiver test file. **Verified during triage:** - The empty-prefix env assignment `FLEET_DISPATCH_LIVE_HOSTS= rx ...` exists (two occurrences confirmed by eye; shellcheck reports a third in the same file — find it with the lint command below). - The test itself passes clean (`bash tests/fleet-dispatch-receiver-test.sh` → 17 passed, 0 failed), so this is a lint-only defect: the behaviour is correct, only the SC1007 pattern reddens `static`. - This is the same warning class already fixed under #360, #349 and #303. #349 is the direct precedent for the fix shape: quote the empty env prefix (`VAR=""`). This file landed after #360, so it was missed. **Current behavior:** `ci / static` fails on `main`; the `test` job passes the same commits, so the lint gate gives no usable signal — and crucially, masks any *future* shellcheck regression. **Desired behavior:** `ci / static` runs clean (pinned shellcheck v0.11.0, `-S warning -x`) over the whole set `ci.yml` lints, including the fleet-dispatch-receiver test file. **Fix:** In each flagged empty-prefix assignment, write the empty value explicitly — `FLEET_DISPATCH_LIVE_HOSTS="" rx ...` (or `=''`). Keep the empty value: unlike #360's removals, an empty allowlist is the behaviour under test here, so the assignment must stay, only quoted. **Acceptance criteria:** - `shellcheck -S warning -x` (v0.11.0) is clean over the full set `ci.yml`'s `static` job lints (no SC1007, no other new finding). - `bash tests/fleet-dispatch-receiver-test.sh` still reports `17 passed, 0 failed`. - `ci / static` is green on the landing commit. **Scope:** The three SC1007 sites in `tests/fleet-dispatch-receiver-test.sh` only. `tests/` is not vendored, so no `FACTORY_REF` pin bump is needed. Do not touch behaviour or other files. **Model note:** This is a ~3-line mechanical quoting edit — a fair candidate for `model-haiku`. Left as a suggestion, not applied (per the triage-labels policy that a model override stays a deliberate decision). --- **Ruled by agent under ADR 0174 — veto anytime** (added `priority`): a persistently red `ci / static` on `main` is a lost safety signal — every subsequent push's lint result is masked, so a future shellcheck regression lands unnoticed. Surfacing this at the head of the swarm queue restores that gate fastest. This is a two-way door: `priority` is a purely additive, removable label, and the ruling is proven simply — once the ticket lands, `ci / static` goes green and the label can be lifted.

swarm-claim host=elitebook-distributed-server-03 run=28922
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=28922 (automated multi-host claim — lowest live claim id works this ticket)

⏩ independent reviewer for #371 — verdict unauthenticated

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

close-report for #371 — status success

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

envelope
{
  "issue": 371,
  "status": "success",
  "commits": [
    "f398bf6"
  ],
  "changed_files": [
    "tests/fleet-dispatch-receiver-test.sh"
  ],
  "tests": [
    {
      "command": "shellcheck -S warning -x *.sh onboarding/*.sh onboarding/tests/*.sh tests/*.sh git-hooks/* git-fence (v0.11.0)",
      "exit_code": 0
    },
    {
      "command": "bash tests/fleet-dispatch-receiver-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "shellcheck -S warning -x (v0.11.0) is clean over the whole set ci.yml lints": "Pinned shellcheck v0.11.0 run over `*.sh onboarding/*.sh onboarding/tests/*.sh tests/*.sh git-hooks/* git-fence` (ci.yml line 117) exits 0 with no findings; the two SC1007 findings on lines 68/70 of tests/fleet-dispatch-receiver-test.sh are gone (commit f398bf6)",
    "bash tests/fleet-dispatch-receiver-test.sh still passes": "Test run reports 17 passed, 0 failed",
    "ci / static is green on the commit that lands this": "The only file ci/static flagged (tests/fleet-dispatch-receiver-test.sh) is now SC1007-clean; the full lint set exits 0 locally with the pinned v0.11.0"
  },
  "summary": "Quoted the two empty FLEET_DISPATCH_LIVE_HOSTS env prefixes (=\"\") in tests/fleet-dispatch-receiver-test.sh so SC1007 stops reddening ci/static on main.",
  "blockers": []
}
**close-report** for #371 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261119192821-2242548` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 371, "status": "success", "commits": [ "f398bf6" ], "changed_files": [ "tests/fleet-dispatch-receiver-test.sh" ], "tests": [ { "command": "shellcheck -S warning -x *.sh onboarding/*.sh onboarding/tests/*.sh tests/*.sh git-hooks/* git-fence (v0.11.0)", "exit_code": 0 }, { "command": "bash tests/fleet-dispatch-receiver-test.sh", "exit_code": 0 } ], "criteria": { "shellcheck -S warning -x (v0.11.0) is clean over the whole set ci.yml lints": "Pinned shellcheck v0.11.0 run over `*.sh onboarding/*.sh onboarding/tests/*.sh tests/*.sh git-hooks/* git-fence` (ci.yml line 117) exits 0 with no findings; the two SC1007 findings on lines 68/70 of tests/fleet-dispatch-receiver-test.sh are gone (commit f398bf6)", "bash tests/fleet-dispatch-receiver-test.sh still passes": "Test run reports 17 passed, 0 failed", "ci / static is green on the commit that lands this": "The only file ci/static flagged (tests/fleet-dispatch-receiver-test.sh) is now SC1007-clean; the full lint set exits 0 locally with the pinned v0.11.0" }, "summary": "Quoted the two empty FLEET_DISPATCH_LIVE_HOSTS env prefixes (=\"\") in tests/fleet-dispatch-receiver-test.sh so SC1007 stops reddening ci/static on main.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#371
No description provided.