SRE-999: Remove cache: false from the Petrinaut library builds - #9648
SRE-999: Remove cache: false from the Petrinaut library builds#9648claude[bot] wants to merge 4 commits into
cache: false from the Petrinaut library builds#9648Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
PR SummaryLow Risk Overview The committed Reviewed by Cursor Bugbot for commit 425322f. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d47f7a6. Configure here.

Requested by Tim Diekmann · Slack thread
🌟 What is the purpose of this PR?
@hashintel/petrinaut,@hashintel/petrinaut-coreand@hashintel/petrinaut-clieach set"cache": falseon theirbuildtask, so Turborepo rebuilt them from scratch on every run, locally and in CI. Nothing in the repository records a reason for it: the flag was copy-pasted fromlibs/@hashintel/petrinautwhen the other two packages were split out of it, and it has been carried along since.Each of the three already declares
"outputs": ["dist/**"], which is the complete set of files its build writes. None of them reads anything outside its own package, and none inlines an environment value into the built output. Caching these builds is therefore safe, and this PR turns it back on by deleting the three"cache": falselines.🔗 Related links
cache: falsesections inturbo.json(internal)apps/petrinaut-websiteapps/hash-frontendandapps/petrinaut-docs🔍 What does this change?
"cache": falsefrom thebuildtask in theturbo.jsonof the three packages.docs/task-dependencies.jsonto match. That file records the resolvedcachevalue per task, and theValidate Task Dependenciesstep of theGloballint job fails on any diff between the committed copy and a fresh generation.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
turbo.json's have been updated to reflect this🛡 What tests cover this?
CI.
Validate Task Dependencieschecks that the regenerated task-dependency docs match what is committed here, and the normal build and test jobs run the three builds through the cache.❓ How to test this?
turbo run build --filter @hashintel/petrinaut-core.dist/matches the first run's output.