next.js
163a9a32 - fix(CI): Wait for lock when running apt-get (#78979)

Commit
345 days ago
fix(CI): Wait for lock when running apt-get (#78979) Sometimes this step can fail because something else has the lock (I'm not sure what, as I thought these things run in isolated containers), but we can mitigate this by waiting for the lock up to 60 seconds. ![Screenshot 2025-05-08 at 9.33.10 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/HAZVitxRNnZz8QMiPn4a/f12de549-6cf0-48f0-959f-cf7595994e15.png) We also call `apt` instead of `apt-get` in some of our CI scripts, but use of `apt` in scripts is discouraged as the CLI interface is unstable. `apt` does automatically wait for the lock, so those places don't have this problem. More details here: https://blog.sinjakli.co.uk/2021/10/25/waiting-for-apt-locks-without-the-hacky-bash-scripts/
Author
bgw bgw
Parents
Loading