Replace cachix seed workflow with new daemon mode #3208
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To be able to merge #3194, I need to seed cachix first, otherwise the full rebuild of all dependencies makes the jobs time out. This can only happen from the postgrest repo and not from a fork, because otherwise the cachix push secret is not passed to the workflow.
Investigating the best way to do this, I found out that just a few weeks ago the cachix-action we are using has been given a new "daemon mode". This daemon mode keeps pushing new derivations as soon as they are build. It should be enabled by default, already. This should easily be able to replace the "seed cachix" workflow, which was designed to push all derivations in pieces to avoid the "nothing pushed because of timeout problem".
In this MR, I took everything from #3194 and then added a commit to pass the cachix token to all jobs in the CI workflow. Those jobs should now push new derivations continuously - and in case of a timeout, we just run that job again. In theory that job should then pick up where it left off.