-
Notifications
You must be signed in to change notification settings - Fork 3k
Cirrus: More tests to verify cache_images #3193
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
|
note to me: The new image-check script should fail until #3192 merges |
056281f to
6c445c5
Compare
|
/hold |
|
Note: Need to resolve mount-options issue first before merging this. @edsantiago mind taking a peek while we wait? I'm not sure if I should unify the original check function you wrote, and the new one here (they're slightly different). Also, I'm sure you'll spot some "better ideas" for some of my bash-chicken-scratch 😄 |
edsantiago
left a comment
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 pretty swamped today so I only took a quick look at the topmost commit. test_okay is a little more complicated than I think it needs to be, but the test suite is comforting, thank you. Mostly lgtm. I did not review the other changes and cannot today.
contrib/cirrus/check_image.sh
Outdated
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 think you mean tail, not head
contrib/cirrus/lib.sh
Outdated
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.
Actually 3 or 4
contrib/cirrus/lib.sh.t
Outdated
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 doesn't work if the test is invoked as ./contrib/etc, or ./lib.sh.t from the same directory, etc. (And, the test name is completely weird).
|
☔ The latest upstream changes (presumably #3236) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Thanks Ed, yeah I know all about being swamped. I'll see about simplifying test_okay (and read your other comments) later in the week. |
|
@cevich Whats the latest on this PR? |
|
Actually, @edsantiago would you mind taking over this PR? I'm going to be out on vacation next week, and having this additional validation merged will come in handy should images need to be updated/changed. The most super-important thing here is the disk-space check, that was a really difficult problem to solve[*] and if it ever sneaks back in, introduces a nasty, non-obvious testing flake. [*]Actual fix is embedded in the base-image, however it can be overridden anytime (by static or dynamic cloud metadata). |
|
@cevich I was only able to get to this today, Thursday of a busy week, and it's taken me a long time to wrap my head around it. I think some of the code (mountopts) is no longer necessary. And, well, I just can't find a way to accept |
Yep I believe that, was hoping you might wield thy +12 sword of complexity-cleavage to achieve the same end-goal. It's okay though, there are other tests that could/should be added anyway. Like confirming |
b4d6f6c to
3453ff9
Compare
|
@edsantiago there, PTAL, I think you'll like this better. |
edsantiago
left a comment
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.
LGTM, and much cleaner, thanks.
For the sake of sanity, could you change line 15 in the .t file?
- echo "ok $testnum $3 = $MSG"
+ echo "ok $testnum $(echo $3) = $(echo $MSG)"
Signed-off-by: Chris Evich <cevich@redhat.com>
|
/lgtm |
|
/hold cancel |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, edsantiago, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Depends on #3078 and #3239
CIRRUS: TEST IMAGES
Signed-off-by: Chris Evich cevich@redhat.com