fedimint / fedimint

Federated E-Cash Mint
https://fedimint.org/
MIT License
536 stars 209 forks source link

fix(test-ci-all): compile nix binaries of versions outside of test #5144

Closed dpc closed 2 weeks ago

dpc commented 2 weeks ago

nix build can potentially hang for a long time, even if the binary was previous built, e.g. because Nix daemon is busy with other stuff and its database is locked.

This could previous potentially cause the test to spend a large part of it's time trying to build binaries.

Instead, prebuild all binaries once before parallel is started, and store the resulting path into matching env variable. During tests just take the path out of variable.