feat: the pipeline renders every workflow per event and dry-runs the agent image on PRs #17
Loading…
Reference in a new issue
No description provided.
Delete branch "mc/301fe680-3690-440d-bdfc-bfc07395e47f"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Retro 68b656b8: PR #10 broke every pipeline (unquoted
${CI_COMMIT_TAG##v}is empty outside a tag, so the YAML no longer parsed), and tag pipelines were the first run of the agent image build.scripts/check-pipelines.mjs(task ci:pipelines, now the first step ofci:quality): renders every.woodpecker/*.yamlas pull_request, push, manual, tag and cron with that event'sCI_*values (substitutions${V},$V,${V##p},${V:o:l}, as Woodpecker applies them; other forms fail loudly), then parses the result and requires steps, an image per step, and existingdepends_ontargets. Non-CI_*shell variables are left alone, as Woodpecker does.image-agent.yamlalso runs on pull_request/manual: same executable build, then Kaniko with--no-push. Publish and scan stay tag-only. Nodepends_on: quality(would never resolve on tags), so it runs beside quality.scripts/check-pipelines.test.ts(5 tests, run by the root vitest).yaml(already in the lockfile transitively) as a root devDependency.Evidence
node scripts/check-pipelines.mjs: 45 renderings pass.aad334a(PR #10) it fails:image-agent.yaml as a pull_request event: Nested mappings are not allowed in compact mappings.woodpecker-cli lint .woodpecker/image-agent.yaml: valid. eslint, prettier, vitest on the new files pass.Tests (part 1)
The three tests named in the retro were already fixed on main (
e4cefd2,be6b066,1f0af7b,2b9f552) with condition-basedvi.waitFor/eventually. I looked for others: remaining waits are condition-based. The remaining fixedsetTimeouts (50–500 ms in run.test.ts, slack.*.test.ts) only precede "nothing happened" assertions, so they cannot fail spuriously, only pass late; 5 ms ones only order timestamps. No further changes.Merge danger / rollback
Adds a PR step that builds the agent image (bun executable build plus Kaniko), so PRs take longer. Rollback: revert the PR.
🤖 Generated with Claude Code