Skip to content

fix(scaffold): stop shipping unusable fixture and queue test to applications - #308

Merged
devantler merged 2 commits into
mainfrom
claude/scaffold-drop-own-publisher-fixture
Nov 22, 2026
Merged

devantler merged 2 commits into
mainfrom
claude/scaffold-drop-own-publisher-fixture

Conversation

@devantler

@devantler devantler commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Two files under scripts/ reach applications that can never use them.

  1. scripts/fixtures/own-publisher.yaml (tenant-only). Without --tenancy, scripts/scaffold.sh removes the tenant pin tests (publish-pin-approved.test.sh, workflow-caller-pin-contract.test.sh), which are the fixture's only readers in an application. The fixture itself stays behind. It was also missing from both .templatesyncignore and the "Not a platform tenant" block the scaffold appends, so template-sync re-adds it after an application deletes it.
  2. scripts/validate-workflow-queues.test.sh (template-only, from fix(release): retain tenant signing and pending publications #300). It runs only inside ci.yaml's template:begin/end block, and it reads validate-stacks.yaml, which only exists in the template. It is not in .templatesyncignore or the scaffold's always-removed list, so every application gets it, tenant or not. chore: sync changes from the upstream template bookkeeper#21 received it on its first sync.

We found both while moving devantler-tech/khoist#630 and devantler-tech/bookkeeper#20 / devantler-tech/bookkeeper#22 to this template. Those repositories now list the paths in their own .templatesyncignore; this PR fixes applications scaffolded from now on.

Change

  • scripts/scaffold.sh
    • Without --tenancy: remove the fixture with the other tenant plumbing, rmdir the emptied scripts/fixtures/, and add scripts/fixtures/own-publisher.yaml to the appended ignore block. With --tenancy the fixture stays for the tenant pin tests.
    • Always: remove scripts/validate-workflow-queues.test.sh along with the template's other scaffold-time tests.
  • .templatesyncignore: list scripts/validate-workflow-queues.test.sh under scaffolding machinery. The header comment now names the fixture among the tenant's template-owned files. The template's own list still syncs the fixture to tenants, as workflow-caller-contract.test.sh requires.
  • scripts/scaffold.test.sh
    • The fixture joins tenant_only: it must exist with --tenancy and be gone without it. Plain mode must also remove scripts/fixtures/ and list the fixture in the application's .templatesyncignore.
    • The queue test joins template_only: the template must ignore it, and every scaffold must remove it.
  • docs/REFERENCE.md: add the fixture to the "Only without --tenancy" list. Add the queue test to the ignore block and to the scaffold-time table.

scripts/validate-workflow-queues.sh deliberately keeps syncing to every application, plain ones included. The shared lint.yaml runs it unconditionally, and every non-Go application calls that job, so scripts/ correctly remains in a plain non-Go application.

Validation

RED on main with only the test changes:

ok: go/tenancy
FAIL: go/plain: tenant scripts/fixtures/own-publisher.yaml was not removed
FAIL: .templatesyncignore does not list scripts/validate-workflow-queues.test.sh, so template-sync would bring it back
FAIL: go/tenancy: template-only scripts/validate-workflow-queues.test.sh was not removed   # with only the ignore entry added

GREEN with the fix: PASS: scaffold (8 combinations, explicit name and refusals).

I also reverted each part of the fixture fix on its own, and the matching new assertion failed:

  • without the rmdir: FAIL: go/plain: the emptied scripts/fixtures/ was not removed
  • without the ignore line: FAIL: go/plain: .templatesyncignore does not keep the removed scripts/fixtures/own-publisher.yaml out

workflow-caller-contract, tenant-ci-contract, agent-instructions, rename-placeholders, publish-pin-approved and validate-workflow-queues tests pass locally, and so does scripts/validate-workflow-queues.sh. shellcheck is clean.

After a local scaffold.sh none, the only thing left under scripts/ is scripts/validate-workflow-queues.sh.

🤖 Generated with Claude Code

devantler and others added 2 commits November 22, 2026 13:05
Without --tenancy the scaffold removed the tenant pin tests but left
scripts/fixtures/own-publisher.yaml, their only reader, behind. It was
also missing from the appended "Not a platform tenant" ignore block, so
template-sync re-added it to every non-tenant application that deleted
it.

Remove the fixture and the emptied scripts/fixtures/ with the other
tenant plumbing, list it in the ignore block, and keep the reference's
"Only without --tenancy" list in step. With --tenancy the fixture stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scripts/validate-workflow-queues.test.sh runs only inside ci.yaml's
template block and reads the template-only validate-stacks.yaml, yet it
was neither in .templatesyncignore nor removed by the scaffold, so every
application received a test it cannot run, and template-sync re-added it.

List it with the other scaffolding machinery, remove it in the scaffold,
and describe it in the reference. The validator it tests,
scripts/validate-workflow-queues.sh, still syncs: the shared lint.yaml
and the tenant CI run it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@devantler devantler changed the title fix(scaffold): drop the tenant publisher fixture without --tenancy fix(scaffold): stop shipping unusable fixture and queue test to applications Nov 22, 2026
@devantler
devantler marked this pull request as ready for review November 22, 2026 13:55
@devantler
devantler requested a review from a team as a code owner November 22, 2026 13:55
@devantler

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Action performed

Full review finished.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The scaffold now removes the tenant-only publisher fixture and its empty directory when run without --tenancy. It also removes the template-only queue validation test. The ignore lists, reference documentation, and scaffold tests now include these files in their respective ownership and cleanup records.

Possibly related issues

Possibly related PRs

Merge Risk: Minimal · up to 8682f

This change stops the scaffold from shipping two scripts that applications cannot use, and it updates the ignore lists, docs, and tests to match. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the scaffold stops shipping the tenant-only fixture and the template-only queue test to applications. It matches the changeset summary, the description, and the object…
Description check Passed The description explains the problem, the files involved, the changes to scaffold.sh, .templatesyncignore, scaffold.test.sh and docs/REFERENCE.md, and the validation steps. It is directly related to t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the scaffold stops shipping the tenant-only fixture and the template-only queue test to applications. It matches the changeset summary, the description, and the objectives. It uses the conventional fix(scope) form and is one sentence of 10 words.

Full details: Description check

Explanation

The description explains the problem, the files involved, the changes to scaffold.sh, .templatesyncignore, scaffold.test.sh and docs/REFERENCE.md, and the validation steps. It is directly related to the changeset.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 598dcd0 and 8682f6e.

Files selected for processing: 4

  • .templatesyncignore
  • docs/REFERENCE.md
  • scripts/scaffold.sh
  • scripts/scaffold.test.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 1

  • GitHub Check: CodeRabbit

@devantler
devantler merged commit afebab9 into main Nov 22, 2026
39 checks passed
@devantler
devantler deleted the claude/scaffold-drop-own-publisher-fixture branch November 22, 2026 14:18
devantler added a commit to devantler-tech/monorepo that referenced this pull request Nov 22, 2026
Move the gitlink from 95d282c to afebab9, the template's current main. It
picks up the scaffold no longer shipping the tenant publisher fixture or the
queue-validation test to applications (devantler-tech/application-template#308),
tenant signing and pending publications kept through release (#300), and three
dependency bumps (#305, #306, #307).

Co-authored-by: Claude Opus 5.5 <[email protected]>
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