Repository navigation
ci(starchart): publish chart refreshes through reviewed PRs - #1178
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe workflow now prepares a run-scoped chart branch, renders charts from that branch, and publishes a validated chart pull request. The new script validates branches, SHAs, comparisons, chart file changes, and pull request state. It supports reruns, unchanged charts, and CLI execution through Suggested labels: Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to The workflow intentionally prepares from the current target-branch head, and later base movement does not establish invalid chart publication. It is ready for normal merge checks. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
@greptileai Review exact head |
|
@greptileai Review exact head |
|
| Filename | Overview |
|---|---|
| .github/workflows/starchart.yml | Introduces isolated branch preparation and App-authenticated PR publication without exposing the App credential to the renderer. |
| scripts/starchart-pr.mjs | Implements strict branch, SHA, history, generated-path, retry, PR-verification, and unchanged-chart cleanup contracts. |
| scripts/starchart-pr.test.mjs | Covers successful publication and relevant failure, retry, validation, deduplication, and cleanup paths. |
| .github/tests/release-cut-starchart-dispatch.test.ts | Verifies dispatch-derived targeting, renderer isolation, and least-privilege App publication wiring. |
| .github/tests/harden-runner-workflow.test.ts | Adds the preparation and publication jobs to the blocked-egress policy contract. |
| CHANGELOG.md | Documents reviewed Starchart PR publication while retaining adjacent changelog entries from the integrated base. |
Reviews (2): Last reviewed commit: "chore(starchart): reconcile landed v1.8 ..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@greptileai Review exact head |
|
Merged as 6e75b37 after all required checks passed. The fetched dev/v1.8 tree exactly matches the tested PR head. Hosted verification passed: https://github.com/CodesWhat/drydock/actions/runs/34767348694. Preparation, the pinned renderer and App-authenticated publication all succeeded. The existing codeswhat-crowdin-sync App opened #1183 against dev/v1.8 with only the two expected SVGs. Both light and dark charts render correctly in the browser. Main and release tags were untouched. |
Change
Fix Starchart run 34543970454, where generation succeeded but the shared workflow's direct dev-branch push correctly failed with GH013 because all 11 required checks were missing.
Keep the renderer pinned at 11004e42d7d19e86eb3b7777c467ec9522b784e1. Create a unique branch from the current dispatched dev head, render there with the existing Actions identity, then use the existing Crowdin GitHub App to open a normal chart-update PR. Scott explicitly approved that App reuse. Its credential is minted only in the publication job, restricted to this repository and Contents/PR write. No App secrets are passed to the renderer. The new preparation/publication checkouts do not persist credentials; the unchanged shared renderer retains its existing Actions checkout credential for the temporary-branch push. Publication executes the trusted dispatch revision rather than generated-branch code.
The publisher compares immutable source/head SHAs, accepts only modifications to the two existing chart SVGs, verifies the created PR, reuses it on a publication retry, and deletes only this run's branch when the charts are unchanged. It rejects main, tags, malformed refs and unexpected generated paths. Failed-job retries retain the original preparation attempt. Failed rendering/publication keeps its branch for diagnosis; it never pushes to dev/main or auto-merges.
No repository settings, branch protection, production website deployment, release metadata, dependency pins or shared upstream workflow changes. This PR targets dev/v1.8; it does not change the workflows already present on the soaking 1.6/1.7 lines.
Verification
1b38c7a4480fe185bafd7f877c6fcfc0316508d4: app/UI configured coverage 100%, both builds, typecheck, script/workflow/website tests, static checks and Zizmor. Optional Docker skipped normally. No bypasses or weakened checks.Hosted workflow execution with the App remains to be verified after reviewed integration. Existing release dispatches target dev refs, so don't run this feature branch as a substitute for that verification or promote unrelated product changes to main.
Threat model: trusted maintainers and release automation dispatching trusted repository revisions, a pinned renderer consuming external stargazer data, protected dev/main branches, and least-privilege reuse of an existing repository App. No hostile-maintainer bypass or new chart generator is in scope.
Changelog
prepareandpublishjobs for isolated chart branches and reviewed chart PRs.scripts/starchart-pr.mjsfor branch preparation, chart-only diff validation, PR reuse/creation, verification, retries, and cleanup.Concerns
Greptile's completed first review covers exact head 1b38c7a, reports no concrete correctness/security regressions and rates it 5/5. CodeRabbit's completed first source review also found no actionable comments on that head.
Current integration checkpoint
Current head
ab87260dbc1339e16cbb81294cb0496c260d4797normally incorporates landed dev356e3984121eaf01e3bd17b8883bd961ad2ecfd3. The only conflict was adjacent changelog bullets; both are retained. All five Starchart implementation/test files are byte-identical to the reviewed first head. A bounded independent integration review found no issues.The normal full push on this head passed in 356.03 seconds: configured app/UI coverage 100%, both builds, typecheck and applicable static/script/workflow/96 website tests. No gate bypass. Greptile's second review covers this exact head and reports 5/5 with no findings. CodeRabbit skipped the incremental changelog-only delta under the repository's existing path filter; its completed first review covers all five unchanged source/test files. Required hosted CI is pending. Actual App workflow execution remains unverified until reviewed integration and dispatch.