-
Notifications
You must be signed in to change notification settings - Fork 187
Add auto script for BZ1980679 #2446
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
Conversation
| "config": { | ||
| "merge": [ | ||
| { | ||
| "source": "https://raw.githubusercontent.com/HuijingHei/coreos-assembler/hhei-dev/mantle/kola/tests/rhcos/kargsfile.ign", |
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.
We probably want to move this config under the coreos-assembler repo.
| m := c.Machines()[0] | ||
|
|
||
| // Verify kernel arguments and /etc/testfile | ||
| c.RunCmdSync(m, "grep -q foobar /proc/cmdline") |
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.
This might be a good use for AssertCmdOutputContains; see #2418
|
question for broader team: Do we have an opinion on where we prefer to put tests in the future? This seems like something that would be good to put in our ext tests in the configs repo instead because it's very simple (all bash) etc.. We could also store the remote ignition config alongside the test in the same directory. |
I agree that putting this test in as an external test might be better since this test is simpler (maybe in openshift/os since it is an RHCOS test?). The ignition config used in the test can be added to a file named Addressing the broader question: I recall reading in the docs that if a test could be run as an external test (for ex. it didnt need multiple nodes), then that approach is preferred. Not sure if that philosophy still stands. |
Yeah, this makes sense. I had forgotten (or just didn't realize) that the ext tests supported custom Ignition configs and selectable arches/platforms. In defense of @HuijingHei, I told her to create the test here.
I think it would be useful to ensure we have the philosophy documented somewhere; it seems like it makes sense. |
|
Yup, this is documented in https://coreos.github.io/coreos-assembler/kola/adding-tests/#relationship-to-external-tests, but we can probably emphasize it more. For background, the reason for this is that tests are more closely bound to the manifests describing the artifacts they're testing rather than the test harness. Then they're e.g. promoted together, and can be added/modified atomically with the feature implementation being tested. This isn't very different from, say, rpm-ostree tests living in the rpm-ostree repo for example. |
|
@HuijingHei - would you be willing to convert this to an |
Thanks @miabbott ! Actually sometimes it is confused about where to add the tests. But I am still appreciated for your |
|
Thanks all for the review!
Hi, @dustymabe, if ignore rhcos-afterburn-checkin.service dependencies check (azure only), this is just general case for cloud. I think it is OK to me to add test to https://github.com/coreos/fedora-coreos-config.git |
|
Move PR to coreos/fedora-coreos-config#1227 |
This is to verify (https://bugzilla.redhat.com/show_bug.cgi?id=1980679) for RHCOS
Notes: