Skip to content
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

Merged
merged 5 commits into from
Jan 16, 2020
Merged

cosalib: fix azure and required meta-data #1060

merged 5 commits into from
Jan 16, 2020

Conversation

darkmuggle
Copy link
Contributor

@darkmuggle darkmuggle commented Jan 16, 2020

This fixes two problems:

  • Azure was missing the ore command.
  • coreos-assembler aws-replicate nows wants commitmeta.json #1049: for RHCOS builds the commitmeta.json is present, however, only Koji uploads generally require it. This changes the cosalib.build._Build to have conditional checks on the required artifacts needed to parse the meta-data.

For RHCOS we are trying to make use of `-` as a version character in order to be semver-compatible.
See openshift/oc#209 (comment)
@darkmuggle
Copy link
Contributor Author

Pending testing, but putting this out here early.

src/cosalib/build.py Outdated Show resolved Hide resolved
# 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('-', '.')}"
Copy link
Member

@cgwalters cgwalters Jan 16, 2020

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 ?

Copy link
Contributor Author

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.

@darkmuggle darkmuggle marked this pull request as ready for review January 16, 2020 02:09
@darkmuggle
Copy link
Contributor Author

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 meta.json.

Copy link
Member

@ashcrow ashcrow left a 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 👍

Copy link
Member

@jlebon jlebon left a 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!

src/cosalib/build.py Show resolved Hide resolved
Ben Howard added 4 commits January 16, 2020 11:09
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.
@darkmuggle darkmuggle merged commit 32c4b31 into coreos:master Jan 16, 2020
@darkmuggle darkmuggle deleted the pr/artifact-fixes branch January 16, 2020 18:57
jcajka pushed a commit to jcajka/coreos-assembler that referenced this pull request Mar 24, 2020
gcp: Add UEFI_COMPATIBLE and SECURE_BOOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants