-
Notifications
You must be signed in to change notification settings - Fork 169
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
Only check for the manifest.yaml/image.yaml being used #3951
Only check for the manifest.yaml/image.yaml being used #3951
Conversation
… being used. The default manifest.yaml and image.yaml were checked to confirm they exist before it was even known whether they were the right files to use or not. Move the check to occur after we know we're not using a VARIANT that points to different files.
Hi @mtalexan. Thanks for your PR. I'm waiting for a coreos member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
I think the way we've operated so far is that the default will always exist. In a repo with multiple variants those files are just symlinks to whatever current latest development target is.. i.e. take a look at https://github.com/openshift/os.git |
I'm pretty sure you're correct that the current builds always have a The I suspect this bug was just hidden because any use cases that might have once included I've had a fork of the coreos-assembler for a long while with this fix in. I call it from a homegrown wrapper tool that generates custom manifest YAML files and includes I understand your hesistant to accept any PRs for things that aren't actually used by |
BTW, the change is just a cut-paste of the default file-check logic from occurring immediately before we check if we're using a non-default variant (and therefore completely different files) to being an I've been running with this in my private fork for a couple years without issues. Pragmatically, either |
Co-authored-by: Dusty Mabe <[email protected]>
@dustymabe @travier Probably a better message would be to simply state what requirment wasn't met without any assumptions about how it might have occurred. E.g. |
sure - WFM.. though not sure if it's |
The check being performed is for whether either file is missing. It technically is "and/or", because either or both files missing will get to the error message. But "or" is probably clear enough. |
you are correct. |
/ok-to-test |
@mtalexan: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
The default manifest.yaml and image.yaml were checked to confirm they exist before it was even known whether they were the right files to use or not. Move the check to occur after we know we're not using a VARIANT that points to different files.
This is a minor fix, but it allows custom OS users to conditionally generate
manifest{,-$variant}.yaml
and/orimage{,-$variant}.yaml
files. As it is right now, the defaultmanifest.yaml
andimage.yaml
must always exist, even if they're never going to be use by the build (i.e.VARIANT
was set with the--variant
option).