GeezerVison is showing github.com — ci(opencode-config-normalize): normalize_test.sh (590 lines, #2364 fixtures incl. data-loss mirror) run by no workflow — the service inlines normalize.sh into the live config path · Issue #6065 · developing-today/code
ci(opencode-config-normalize): normalize_test.sh (590 lines, #2364 fixtures incl. data-loss mirror) run by no workflow — the service inlines normalize.sh into the live config path #6065Descriptionci(opencode-config-normalize): normalize_test.sh (590 lines, #2364 fixtures incl. the data-loss regression mirror) is run by no workflow, flake check, or recipe
Evidence (verified this run, laptop primary @ ec2ac0e)
pkgs/opencode-config-normalize/normalize.sh (703 lines) is production
code: the opencode-config-normalize systemd user service inlines it
verbatim via builtins.readFile at home/common/default.nix:453-455
(systemd.user.services.opencode-config-normalize, defined at
home/common/default.nix:445). It rewrites the live OpenCode config,
normalising v1 spellings to v2, and is documented as refusing to write
anything it cannot re-parse.
- Its regression suite,
pkgs/opencode-config-normalize/normalize_test.sh
(590 lines), runs the real script against fixture configs and asserts the
full parsed document, the exit code, and idempotence for each case
(opencode-config-normalize: agents-only config silently loses every agent — the agents block is dropped even when the merge splice never lands #2364). One case is the data-loss regression mirror: folding the v1 map
must never drop a definition.
- Nothing runs it: a repo-wide grep for
normalize_test across workflows,
nix files, scripts, and docs finds only the test file's own summary lines.
opencode-config-guard.yml runs the metered-provider guard fixtures and
the canonical-config check — not this suite.
- Run by hand this run on the laptop: all cases passed (exit 0;
normalize_test: all cases passed, 27 PASS lines). So this is a wiring
gap, not a red suite.
- Distinct from closed opencode-config-normalize: normalize_test.sh checks the failure counter before the final regression case, so comment-before-agent-last can fail and the suite still exits 0 (normalize_test.sh:503) #4771, which fixed a bug inside the suite (the
failure counter was checked before the final regression case, so a
failing case could still exit 0) — that fix is exactly the kind of pin
that decays if the suite itself never runs automatically.
Why it matters
The normaliser rewrites the user's live OpenCode configuration unattended.
Its failure modes are data-loss-shaped (dropping an agent/provider
definition while folding v1→v2 spellings) and silent (a config that parses
but lost a definition). The suite that pins those behaviors — including
the explicit data-loss mirror case — currently executes only when a human
remembers to run it by hand.
Acceptance criteria
- An automated check (a step in
opencode-config-guard.yml, a root flake
check, or an equivalent route) runs
pkgs/opencode-config-normalize/normalize_test.sh on changes to
pkgs/opencode-config-normalize/ and to the service definition in
home/common/default.nix, failing when the suite fails.
- The suite passes under the new wiring on a Linux runner.
- No behaviour change to
normalize.sh itself.
Filed by the new-issue-creator (lane B) after verifying the suite passes by
hand at ec2ac0e; deduped against open and recently closed issues (#4771
is the closed in-suite counter bug, not this wiring gap). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 14, 2026 Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15201 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet. dezren39 commented on Nov 14, 2026 🤖 Agent note · done — fixed and merged
- Agent: queue worker (repo-worker-code), lane code-b
- Session / ID: task 15201 (triage of ci(opencode-config-normalize): normalize_test.sh (590 lines, #2364 fixtures incl. data-loss mirror) run by no workflow — the service inlines normalize.sh into the live config path #6065, fix in scope)
- Result: PR ci(opencode-config-normalize): run normalize_test.sh in CI (#6065) #9944 MERGED 2026-11-14T11:32:03Z at 52dcc1e. It adds
.github/workflows/opencode-config-normalize-test.yml — runs bash pkgs/opencode-config-normalize/normalize_test.sh on pushes to main touching pkgs/opencode-config-normalize/**, home/common/default.nix, or the workflow itself, plus workflow_dispatch — and maps the suite's entry in .github/test-suite-registry.json from uncovered to the new venue.
- Verification: suite run in the worktree pre-commit:
normalize_test: all cases passed; workflow YAML validated; PR was CLEAN/MERGEABLE. Codex review failed on Codex usage limits and posted no findings (disposition recorded on PR ci(opencode-config-normalize): run normalize_test.sh in CI (#6065) #9944). Post-merge, the new workflow fired on the merge commit itself (run 43590474494) — at note time it is still queued in the repo's saturated runner queue (CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic #2605); the suite result on a Linux runner is expected green per the local run, and any failure will surface through normal CI monitoring.
- No behavior change to
normalize.sh. Closing ci(opencode-config-normalize): normalize_test.sh (590 lines, #2364 fixtures incl. data-loss mirror) run by no workflow — the service inlines normalize.sh into the live config path #6065.
- Links: queue task 15201; PR ci(opencode-config-normalize): run normalize_test.sh in CI (#6065) #9944; Actions run 43590474494
dezren39 commented on Nov 14, 2026 🤖 Agent note · duplicate packet — work already done by task 15201
- Agent: repo queue worker, lane any-c (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-any-c run 2026-11-14; task 16734
Task 16734 duplicates task 15201 (lane code-b), which fixed this issue today: PR #9944 "ci(opencode-config-normalize): run normalize_test.sh in [CI]" merged 2026-11-14T11:32:03Z at 52dcc1e, and this issue is CLOSED with status:done. Task 16734 completes as already_done with PR #9944 as the evidence reference; no changes made.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|