-
Notifications
You must be signed in to change notification settings - Fork 168
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
cosalib: fix azure and required meta-data #1060
Conversation
For RHCOS we are trying to make use of `-` as a version character in order to be semver-compatible. See openshift/oc#209 (comment)
Pending testing, but putting this out here early. |
# RHCOS wants to be semver-compatible, but Koji doesn't | ||
# accept `-`. See | ||
# https://github.com/openshift/oc/pull/209#issuecomment-564876535 | ||
"version": f"{self.build.build_id.replace('-', '.')}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to fold in this PR versus keep in #1053 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to test the code path. It was easier to include this commit in the pipeline for testing.
Okay, ready for review. This uploaded to both Koji and Azure. I'm doing a full test (all clouds, etc). Before merging, I'll have a triple check on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the meta.json
looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one optional comment, LGTM otherwise!
cosalib._Build was born because the need for commitmeta.json, archiving COSA itself, and understanding COSA. However, it is the only _Build derivative the requires that level of understanding. This change adds kwargs of 'require_cosa' and 'require_commit'. cmd-koji-upload: instantiate cosalib._Build with constructor kwargs of with require_{cosa,commit}=True
More refactoring fall out: this adds back in the ability to upload Azure artifacts.
gcp: Add UEFI_COMPATIBLE and SECURE_BOOT
This fixes two problems:
ore
command.coreos-assembler aws-replicate
nows wantscommitmeta.json
#1049: for RHCOS builds the commitmeta.json is present, however, only Koji uploads generally require it. This changes thecosalib.build._Build
to have conditional checks on the required artifacts needed to parse the meta-data.