Skip to content

fix(repository): configure-tests takes the test command as input - #395

Merged
danielhanold merged 16 commits into
mainfrom
fix/repository-init-writes-gate-off-and-configure-tests-then-ref
Oct 5, 2026
Merged

danielhanold merged 16 commits into
mainfrom
fix/repository-init-writes-gate-off-and-configure-tests-then-ref

Conversation

@danielhanold

@danielhanold danielhanold commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

↩ Change 0526 — repository configure-tests takes the test command as input

↩ Change 0526 — repository configure-tests takes the test command as input

Summary

  • docket repository configure-tests --command "<cmd>" sets build.gate/finalize.gate to local with that command (pending, unstaged .docket.yml edit; idempotent; refuses empty/auto/control-char values).
  • Without --command, configure-tests reports what detection actually found (no suite, two candidates, or already configured) instead of a false "nothing to write".
  • init, half-configured, and migrate notes point at --command (migrate: commit finalize.test_command) instead of a hand edit; docs updated.

Review (deep tier)

Finding Severity Disposition
--command splice corrupts folded/literal block test_command or inline {...} build:/finalize: important fixed (8b1a9c1, 7th test uses testsupport.TempDir): the spliced file is re-parsed and the write refused, file untouched, unless it round-trips exactly
init no-suite note says unset gates default off (default is local) minor fixed (9d21a83)

The fixes were first reverted after a fix-pass red run (bare t.TempDir() rejected by repoguard; an unrelated internal/process timing failure), then re-applied on the human-authorized resume. The full suite is green at the head below.

Results: docs/results/2026-10-05-repository-init-writes-gate-off-and-configure-tests-then-ref-results.md

command: go run ./cmd/docket development test
result: green
head_sha: 0b2326d
ran_at: 2026-10-05T14:08:02Z

Docket-Plan-Path: docs/superpowers/plans/2026-10-05-repository-init-writes-gate-off-and-configure-tests-then-ref.md
…verify

Review finding (important): configure-tests --command overwrote existing
leaves via planOwnerBlock, whose line range under-reports block scalars and
shares a line with a flow-style owner, so a folded/literal test_command left
continuation lines behind and build: {gate: "off"} lost its build: key.
renderOwnerPairs now re-parses the edited bytes (verifyOwnerPairs) and refuses,
file untouched, unless build and finalize hold exactly the desired pairs and
every other setting survives.
@danielhanold
danielhanold force-pushed the fix/repository-init-writes-gate-off-and-configure-tests-then-ref branch from 6d2eb10 to 0b2326d Compare October 5, 2026 14:08
@danielhanold
danielhanold merged commit b4c2eba into main Oct 5, 2026
1 check passed
@danielhanold
danielhanold deleted the fix/repository-init-writes-gate-off-and-configure-tests-then-ref branch October 5, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant