devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Reuse process-compose if available

Open diegobernardes opened this issue 1 year ago • 1 comments

What problem are you trying to solve?

I'm installing Devbox on GitHub Actions using the following snippet:

- name: Install devbox
  uses: jetify-com/[email protected]
  with:
    enable-cache: true

It works alright and everything is installed and cached, the run after the cache is quite fast, 40 seconds or so to install everything and restore the cache. But not everything is cached and the issue happens when I try to spin up the dependencies to run my tests. Every time it installs process-compose and that process takes quite some time because there is no cache. I tried to add process-compose to my list of packages on Devbox, but it did not worked, even listed there, Devbox tries to download it every time.

What solution would you like?

If process-compose is at the packages list of Devbox it should be reused.

Alternatives you've considered

No response

diegobernardes avatar Apr 15 '24 07:04 diegobernardes

I just ran into this issue today too, would be fantastic to have an option like this that pre-installed and cached process-compose in CI jobs where it was used.

- name: Install devbox
  uses: jetify-com/[email protected]
  with:
    enable-cache: true
    install-process-compose: true

Note: Installing process-compose is ~25% the run time of this particular github action. Not the end of the world, but feels like it could be an easy win.

jay-aye-see-kay avatar Apr 16 '24 07:04 jay-aye-see-kay

We've moved our process-compose installer to use the version of process-compose in Nixpkgs. This means we can install process-compose from the official Nix cache, which significantly reduces the installation time for process-compose

Lagoja avatar Oct 08 '24 23:10 Lagoja