chore(tasks): Script to clear GH cache#1848
Conversation
✅ Deploy Preview for cedarjs canceled.
|
Greptile SummaryAdds a one-off utility script (
Confidence Score: 4/5Safe to merge — this is an internal utility script with no impact on production code paths. The script is logically sound and the GitHub API calls are well-formed. The two issues found (wrong shebang interpreter and silent failure reporting) would only affect developers running the tool, not the framework or its users. tasks/clear-gh-cache.mts — shebang and failure-reporting in the bulk-delete loop. Important Files Changed
Reviews (1): Last reviewed commit: "chore(tasks): Script to clear GH cache" | Re-trigger Greptile |
| if (ok) { | ||
| deleted++ | ||
| process.stdout.write('.') | ||
| } else { | ||
| process.stdout.write('!') | ||
| } |
There was a problem hiding this comment.
When individual cache deletions fail in the bulk-delete loop, the error is silently summarised as a
! character with no indication of which cache failed or why. Including the cache key (and optionally the HTTP status) makes it much easier to retry failed deletions.
| if (ok) { | |
| deleted++ | |
| process.stdout.write('.') | |
| } else { | |
| process.stdout.write('!') | |
| } | |
| if (ok) { | |
| deleted++ | |
| process.stdout.write('.') | |
| } else { | |
| process.stdout.write(`\n! Failed to delete cache id=${cache.id} key="${cache.key}"`) | |
| } |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 2s | View ↗ |
nx run-many -t build |
✅ Succeeded | 3s | View ↗ |
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 7s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 10s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-05-29 09:53:20 UTC

Saving this as a good-to-have