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

cmd-build: add --versionary switch #3735

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Feb 16, 2024

I'd like to move out the versionary script from this repo and into the
FCOS source config repo. This is prep for adding a versionary script to
openshift/os also and unlabeling the versionary knob in the pipeline as
a hack.

It's not cosa that decides what the version string will be, so it can't
know that it'll be time-based. Refer instead to the manifest field,
since that's the source of truth.
I'd like to move out the versionary script from this repo and into the
FCOS source config repo. This is prep for adding a versionary script to
openshift/os also and unlabeling the versionary knob in the pipeline as
a hack.
@jlebon
Copy link
Member Author

jlebon commented Feb 16, 2024

One might wonder why not have cosa just always check if there's a versionary script in the source config and run it if present. The reason is that I do like that the default versioning scheme in FCOS is clearly identifiable as dev and it's a pattern I'd like to replicate in openshift/os too ideally as part of my work on openshift/os#799 (but I don't think it's worth trying to change the existing streams already in production).

@@ -143,6 +148,12 @@ if [ $# -eq 0 ]; then
set -- qemu
fi

if [ -z "${VERSION}" ] && [ -n "${VERSIONARY}" ]; then
# let error out if file does not exist
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# let error out if file does not exist
# let's error out if file does not exist

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more like, "let it error out if the file does not exist". I won't fix it to not ruin CI, but I'll queue it up for a future cosa PR.

@jlebon jlebon merged commit f0828c3 into coreos:main Feb 20, 2024
5 checks passed
@jlebon jlebon deleted the pr/cmd-build-versioning branch February 20, 2024 16:59
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.

2 participants