-
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
Add cmd-test-coreos-installer #1030
Conversation
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'm a +1 to any amount of testing automation. This looks good.
9bdad93
to
0182f8c
Compare
Updated 🆕
(I do want to rewrite this in Go in kola sometime soon but I don't think it's worth waiting for that) |
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.
Agreed, this is super helpful!
Interesting to think about how we could have this part of kola, since this test needs more than a single artifact. Feels like kola should learn to read cosa metadata?
buildid=$(jq -er .buildid < ${buildmeta}) | ||
metalimg=$(jq -er .images.metal.path < ${buildmeta}) | ||
instkernel=$(jq -er .images.kernel.path < ${buildmeta}) | ||
instinitramfs=$(jq -er .images.initramfs.path < ${buildmeta}) |
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.
In light of coreos/fedora-coreos-tracker#203, we'll want to at least for now make this configurable to use the live versions if possible. The kargs interface should be the same otherwise so we shouldn't have to change anything else.
We can do this in a follow-up though if you prefer!
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.
Yeah I just want to get any coverage of the installer path for RHCOS right now.
We have no coverage of coreos-installer today. This was a quick hacky shell script I wrote a few months ago and posted as a gist: https://gist.github.com/cgwalters/bf6f5b6f788d01211dbe6cd362309a0d This could obviously be cleaned up and de-duped with kola and other cosa bits, but for now, let's just get some coverage. Specifically e.g. one thing I want to do is support running a specific kola suite (maybe just `basic`) against the newly installed image.
0182f8c
to
72a1d4f
Compare
The `createImage` call currently can fail when attempting to tag the AMI Name due to eventual consistency issues. Add a `RetryConditional` to retry up to 6 times when `InvalidAMIID.NotFound` is returned by the SDK. Closes coreos#1030 Closes coreos#1091
We have no coverage of coreos-installer today. This was a quick
hacky shell script I wrote a few months ago and posted as a gist:
https://gist.github.com/cgwalters/bf6f5b6f788d01211dbe6cd362309a0d
This could obviously be cleaned up and de-duped with kola and
other cosa bits, but for now, let's just get some coverage.
Specifically e.g. one thing I want to do is support running
a specific kola suite (maybe just
basic
) against the newly installed image.