Repository navigation
refactor(scripts): unify render-*.cjs behind shared compose + manifest - #421
Conversation
Extract render-compose.cjs (exactly-one ordered block splice, indent, --check/write loop) and a data-driven render.cjs manifest for the three remaining render targets. Thin wrappers keep stable CLI paths and byte-identical generated workflow output. Lands issue #200 item 1c only; 1a is obsolete and 1b (gh-bounded-read / composition-vs-duplication) stays deferred — no new issues. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 3m 45s —— View job Review: refactor(scripts): unify render-*.cjs behind shared compose + manifest
This repo's Summary: clean extraction. Two minor, non-blocking suggestions posted inline:
One thing I considered under REVIEW.md's atomicity check and am not flagging as a finding: Scope check: wrapper stability, manifest completeness (all three targets + all their workflow consumers, including |
|
Claude finished @kyle-sexton's task in 1m 7s —— View job Security Review
No security issues found. This PR is a pure refactor of local, offline codegen tooling (
Confidence: high — the diff is small, self-contained, and I traced both the compose/manifest mechanics and all three call sites end-to-end. |
|
Last security-reviewed head: |
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Remove unused prepareFindTrackingLines/bundleSelectRunner re-exports and
cover writeOrCheck({ check: false }) so the shared write branch is unit-tested.
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Biome was previously applied with a mis-resolved config path that rewrote indents to tabs; reformat with the fixture space policy. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Summary
Lands #200 item 1c only: reconcile and unify the remaining
render-*.cjsfamily behind a shared compose engine + data-driven manifest. No composition/include of shared bash primitives (1a/1b deferred). Generated workflow output is byte-identical..github/scripts/render-compose.cjs— exactly-one ordered block splice, indent,--check/write loop (pulumi-era contract)..github/scripts/render.cjs— manifest of{source, workflows, markers, bundle}forosv-scan-guard,find-tracking-issue,select-runner-workflow.selector-conformance.yml.render-compose.test.cjspin wrapper↔manifest coverage and--checkgreen.Not in this PR (deferred, no new issues):
gh-bounded-read dedup: still real; needs the composition-vs-standalone-duplication decision before extraction / flippingnetwork-timeout-policy.test.cjsoccurrence-count freezes.Reusable workflows remain standalone-shippable (inline generated blocks only; no repo-relative
sourceat runtime).Test plan
node .github/scripts/render.cjs --check(and each thin wrapper--check)render.cjsrewritenode --test .github/scripts/*.test.cjs(589 pass)Related
Addresses #200 (1c). Does not close #200 — 1b remains the open architecture gap; 1a obsolete.