Add new GH Action workflows to build WMCore images - #11377
Conversation
|
Jenkins results:
|
cde2aa5 to
0299136
Compare
|
@amaltaro , I made the following modifications per our discussion:
As I explained I can't test the changes therefore I'll rely on your review. The |
|
Jenkins results:
|
amaltaro
left a comment
There was a problem hiding this comment.
@vkuznet Valentin, I left a few comments along the code.
In addition to those, I think we discussed that we should provide everything in the same workflow, didn't we?
With the current proposal, we would be building and uploading images to PyPi twice, which might actually mark one of the build workflows as failed.
|
@amaltaro , everything is done within one workflow |
|
Jenkins results:
|
|
@vkuznet that's fine with me. However, this workflow duplicates the PyPi build and upload to the PyPi repository and I am not sure whether that will actually cause a terminal failure for one of the workflows (which could be this one). If we have to re-run this workflow manually, and PyPi packages already exist in the target version, it will keep failing. This is just a suspicious though, I never tried to upload the same package and version twice to PyPi. |
|
@amaltaro , ok, I removed existing GH workflow as we are replacing it. And, I changed prefix in existing template name from |
amaltaro
left a comment
There was a problem hiding this comment.
A change has been requested along the code. Thanks
|
Okay, it's time to see how it goes for real now. Thanks |
|
@amaltaro , can you try to run it manually, I seethe menu now appears in GH Action tab |
|
I am going to make a new tag in a couple of minutes. Let's see how it goes. |
|
@vkuznet you might want to have a look at the failure. I just double checked and those secrets are available in the repository settings, so it must be some syntax or something like that that we missed in this GH workflow. |
|
Alan, from yaml file syntax point of view I do not see anything unusual. Said that, I do not have access to Settings area of dmwm repo and can't see which secrets we have over there. I suggest that we convene on a zoom tomorrow or next week to clarify that, e.g. you may check |
|
Just to update this ticket. Relevant commits are: Thanks again Valentin. |
|
And now I have a confirmation about this suspicious: indeed (trying to) uploading the same package to PyPi causes the HTTP request to fail, hence failing the action workflow, as can be seen here: A manual re-run action will fail, unless none of the PyPi images made it to the PyPi repository. This workflow case, docker image build failed with the following message: for now, I'd say we don't try to make improvements to this workflow. But if it comes back again in the coming weeks, then we should investigate it further and make it more robust. |

Fixes #10921 , #11374
Status
In development
Description
Provide new set of GH Action workflows to build WMCore images. So far it is done as independent GH workflow but it re-uses tar ball creation steps from pypi packaging workflow, i.e. in particular it re-uses the following steps https://github.com/dmwm/WMCore/blob/master/.github/workflows/pypy_build_publish_template.yaml#L16-L33 from pypi packaging workflow. This is why my initial suggestion was to create images along with pypi packaging but based on request from @amaltaro I made this PR to have separated GH Action workflows. To avoid re-using the same code within these workflows (if we want to separate pypi from docker images) I suggest to create later an issue to have separate template which we will re-use in both (pypi and image creation) workflows.
Note: so far the upload to registry is commented out since it requires setup of specific CERN credentials. Once we'll enable GH Action and successfully build all images we may enable upload part.
Is it backward compatible (if not, which system it affects?)
YES
Related PRs
#11339
External dependencies / deployment changes
None