-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce action runtime #74
Comments
Thanks for raising this problem. A quick look at the e2e integration tests (https://github.com/slsa-framework/example-package/actions/runs/2357668677) show that building the builder takes 2mn, while other VMs finish in a few seconds. Numbers from the link above:
I added some logging and re-ran the re-usable workflow:
There's a bit of a chicken-and-egg problem to solve for each option. But there's probably a way to solve that. Also note that verifying provenance requires the slsa-verifier, which will take the same amount of time to build, so we'll also need to pull the binary from a release Thoughts? |
I'm working on this. TL;DR:
Note: for the verifier, we need a hash since the verifier cannot verify itself, i.e. it's untrusted upon download. So we will keep a list of good hashes in the verifier's repo. After a release, I will create a PR with a mapping between a release binary and a release tag. Other maintainers will verify the hash of this binary is correct by:
We can build a little utility later to simplify this. |
See #86 and slsa-framework/slsa-verifier#63 Once they are merged:
From there we can update the hash/tag of the verifier when we need to. |
going to cut a v0.0.1 release to test the entire flow. The verifier will only accept reusable workflows pinned by tag (not by |
@joshuagl can you check the new builder |
I think we can close this for the Go builder? |
This is done. Closing |
I have projects which take about ~30s to build where adding the provenance only workflow to those projects significantly increases build time because building
slsa-github-generator
takes >2min.It would be good to reduce build time, or otherwise decrease the runtime of the action, before encouraging wider adoption.
The text was updated successfully, but these errors were encountered: