Clone specific software-layer-commit and implement CI to check merged status#1353
Clone specific software-layer-commit and implement CI to check merged status#1353casparvl wants to merge 22 commits intoEESSI:mainfrom
Conversation
|
Let's do a small test build to see if the new |
|
TODO: I guess in this same PR we should still add a check that verifies that the SHA-checksum of |
…casparvl/software-layer into improve_software_layer_scripts_workflow
|
Perfect. As expected, after changing the
Changing the
|
|
Ok, as expected, both Let's test again by changing the sha checksum... |
|
Ok, on bee1d29 we again have the expected failure:
Let's change the sha checksum back, and now change something in |
…f this causes the associated CI job to fail
|
Again, we get the expected failure:
|
There was a problem hiding this comment.
I would make it clear that this sha belongs to a software-layer-scripts commit, so maybe rename it to software-layer-scripts.commit_sha or something?
|
Discussed in support meeting. One issue came up - though it doesn't affect this specific PR, nor the CI checks in it. The issue is related to how we might use the commit_sha introduced in this PR to make the bot refuse to deploy. The rationale is: if a bot has tarballs with a
I'm not yet sure how to avoid this. It is not possible to retain Note that I don't think we should hold off the current PR: it's a first step that'll provide us with the ability to build in |
This PR is an initial step in creating a workflow where we can use PRs to
software-layer-scriptsdirectly, and then once they are merged, just update the SHA checksum to a (Github-signed) merge commit, rebuild, and be done :)Edit: better description...
This PR contains three changes:
bot/build.shnow clones a particular commit, which is specified inbot/commit_shaVerify software-layer-scripts / check_bot_build_checksumverifies the checksum ofbot/build.shagainst a reference hardcoded in the workflow file. This way, a malicious contributor would have to modify bothbot/build.shand the workflow file, which would (hopefully) stand out to a reviewer.Verify software-layer-scripts / check_software_layer_scripts_commitwhich check thatbot/commit_shais a commit that is part of the upstream https://github.com/EESSI/software-layer-scripts , is on themainbranch (i.e. has been merged), is a merge commit, and is signed with the public Github GPG for the web interface.We might need to update the
commit_shaalready (not sure if there have been more merges to software-layer-scripts since I started this) before we merge this to make sure this PR doesn't actually revert us to using an older version.