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

Add cmd-test-coreos-installer #1030

Merged
merged 1 commit into from
Jan 10, 2020
Merged

Conversation

cgwalters
Copy link
Member

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.

Copy link
Contributor

@darkmuggle darkmuggle left a 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.

src/cmd-test-coreos-installer Outdated Show resolved Hide resolved
@cgwalters cgwalters force-pushed the test-e2e-installer branch 2 times, most recently from 9bdad93 to 0182f8c Compare January 9, 2020 14:21
@cgwalters
Copy link
Member Author

Updated 🆕

  • Dropped RAM requirement
  • Uses kola http-server
  • Uses the ignition hack-3to2 to support RHCOS too

(I do want to rewrite this in Go in kola sometime soon but I don't think it's worth waiting for that)

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.

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?

src/cmd-test-coreos-installer Outdated Show resolved Hide resolved
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})
Copy link
Member

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!

Copy link
Member Author

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.

src/cmd-test-coreos-installer Show resolved Hide resolved
src/cmd-test-coreos-installer Outdated Show resolved Hide resolved
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.
@cgwalters cgwalters merged commit bd99b46 into coreos:master Jan 10, 2020
@cgwalters cgwalters deleted the test-e2e-installer branch January 10, 2020 00:39
jcajka pushed a commit to jcajka/coreos-assembler that referenced this pull request Mar 24, 2020
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
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.

None yet

3 participants