-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
run BATS tests in Cirrus #2947
run BATS tests in Cirrus #2947
Conversation
This PR is, at this moment, expected to fail CI due to #2899. I will need to rebase and re-test once that bug is fixed, but am submitting now to make sure that my addition works and causes Cirrus to fail. |
Guess this needs a lot more work: 'jq' is not installed on the test systems; Ubuntu has a too-ancient version of |
b16c908
to
e1f78de
Compare
cabd24c
to
506a9ff
Compare
☔ The latest upstream changes (presumably #2991) made this pull request unmergeable. Please resolve the merge conflicts. |
506a9ff
to
8b4a58f
Compare
8b4a58f
to
1810994
Compare
CI failure is in ginkgo, in code I never touched. I can't figure out how to troubleshoot it. |
Your tests are green |
@cevich could you PTAL at your convenience, and make sure this fits in with the CI framework? TIA. |
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.
My preference would be to have make localsystem
run in a separate (for example) systemtest_script
(in .cirrus.yml
). The main reason being, it keeps the output separated in the WebUI, making it easier to debug problems. It also results in separate files being created in the log-storage bucket, should we ever get around to doing any secondary processing of those.
The only other thing I'd ask is if you'd consider nuking the optional_testing_task
. It's purpose was originally to optionally run the system tests. But if you'd prefer they always run, also having an "optional" bit might confuse someone. Do you agree, or want me to remove it separately, or would keeping it be useful in some other way?
☔ The latest upstream changes (presumably #3236) made this pull request unmergeable. Please resolve the merge conflicts. |
...with the goal of (very soon) reusing this code, in containers#2947, to run system tests in CI. This is the cleanest way I can think of to do so without duplication or a large maintenance burden. Changes are: - replace references to 'ginkgo' with 'integration'. That target is already in Makefile, and is not only more readable, it's also more abstract. There is no reason for this level of code to know about ginkgo. - allow rootless_test.sh to accept an argument, that being the name of the test suite to run (default: integration). containers#2947 will enable 'system'. - allow integration_test.sh to serve multiple purposes, by checking its filename. containers#2947 will add a symlink, system_test.sh, which will then cascade down to invoke system tests. Signed-off-by: Ed Santiago <[email protected]>
/approve |
Don't bother. It's a mess. Basicalluy, two PRs snuck in that broke my tests. Trying to fix them now. |
(Those don't explain the integration_test failures, but I have to force a new push anyway, so IO'm just going to ignore those) |
...but there are compile warnings now...is something changing the code between system and integration tests? Like a 'git reset' or somesuch? Okay maybe not, those warnings are on master too. I'm still struck by how different the integration tests "look", maybe it's the missing I'll give it a try once you rebase and push. |
The Unfortunately master is currently broken (#3325 and one more that I'm filing) so there's no point in proceeding with this PR until those get fixed. |
d6f74e0
to
9490b6d
Compare
This makes no sense. System test should be failing: one failure as root, three as nonroot. (They're running. I checked the logs.) This has been a very surreal week. |
Welp, tests look green and changes LGTM. Plus tomorrow's Friday, which is traditionally when everything goes FUBAR anyway, so 🍷 and deal with things Monday? |
Looks like the tests passed? |
@rhatdan yes, and I think it's because we have no f30 testing hosts. As soon as we do, #3325 and #3326 will bite us on nonroot. But... those are getting good attention, and it's possible they may get fixed soon, so I'm tentatively OK with merging this one in now; but not without @cevich's and @mheon's blessings. |
@edsantiago now you see why some of my PRs tend to grow so large and take so long 😄 I'm conflicted on merging this. On one hand a functional What if "activating" the system-tests in CI was commented out temporarily, then the comment-removed when the issues are fixed? Would that help get this merged or just make the overall situation more complicated? |
9490b6d
to
48355a2
Compare
Rebased against master, which includes #3328. CI passing (other than an iptables flake which passed on rerun) and I expect them to pass once we get f30 images in CI. I'd love to get this merged! |
LGTM |
/lgtm |
/hold cancel |
☔ The latest upstream changes (presumably #3308) made this pull request unmergeable. Please resolve the merge conflicts. |
I'm running the BATS tests manually once in a while, and catching several problems each week that make it past the rest of CI. Since the BATS tests run at RPM gating time, we need to catch problems earlier. Try running the tests from Cirrus. Tests will be skipped on Ubuntu due to a too-ancient version of coreutils (8.28; the 'timeout -v' we use requires 8.29). Tests are run *after* integration tests, even though these take three minutes and would be nice to have fail quickly, because running before causes bizarre CI failures. Shrug. UPDATE: also fix run test, broken by containers#3311. Signed-off-by: Ed Santiago <[email protected]>
48355a2
to
d6f4362
Compare
Rebased against master, fixed (simple) conflicts. Tests green again. Could I ask for one more lgtm please? |
/lgtm |
I'm running the BATS tests manually once in a while, and
catching several problems each week that make it past
the rest of CI. Since the BATS tests run at RPM gating
time, we need to catch problems earlier. Try running
the tests from Cirrus.
Signed-off-by: Ed Santiago [email protected]