Replies: 1 comment
-
|
Nice solution! The flock + hash-based approach is exactly right for this problem. A few observations: Your approach is solid: Serializing Alternative approaches we've seen:
For Gas Town specifically: The setup hook approach you're using is the most robust. It integrates with the polecat lifecycle naturally. If you want to upstream this as a recipe, it would be a great addition to the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I kept running out of memory with several polecats working in parallel. A large aspect of this was executing
npm ciin each polecat git worktree simultaneously. I added a setup hook:This grabs a lock to serialize the polecats checks, runs
npm ciin mayor/rig only if needed (using a hash check on package-lock.json), then copies it to the polecat's worktree. Claude kept wanting to use a link instead, but I was concerned the polecats might update or add packages while doing their work and that seemed like it might cause issues.I'm hoping someone has a better solution. It's a bad time to be upgrading ram!
Beta Was this translation helpful? Give feedback.
All reactions