Closed mscherer closed 1 month ago
Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable. If you want to request a review or rebuild a package in copr, you can use following commands as a comment:
review please @oamg/developers
to notify leapp developers of the review request/packit copr-build
to submit a public copr build using packitPackit will automatically schedule regression tests for this PR's build and latest upstream leapp build. However, here are additional useful commands for packit:
/packit test
to re-run manually the default tests/packit retest-failed
to re-run failed tests manually/packit test oamg/leapp#42
to run tests with leapp builds for the leapp PR#42 (default is latest upstream - master - build)Note that first time contributors cannot run tests automatically - they need to be started by a reviewer.
It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported, beaker-minimal
and kernel-rt
, both can be used to be run on all upgrade paths or just a couple of specific ones.
To launch on-demand tests with packit:
/packit test --labels kernel-rt
to schedule kernel-rt
tests set for all upgrade paths/packit test --labels beaker-minimal-8.10to9.4,kernel-rt-8.10to9.4
to schedule kernel-rt
and beaker-minimal
test sets for 8.10->9.4 upgrade pathSee other labels for particular jobs defined in the .packit.yaml
file.
Please open ticket in case you experience technical problem with the CI. (RH internal only)
Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra.
Could you please add a unit test?
I modified the existing one to deal with that case, so do you prefer a separate test just for that ?
I found a not too ugly way to write the test (eg, not cut and paste), hope that work.
@mscherer unit test is now reproducing original issue. so it seems it's not fixed :) btw, in case you would like to test locally, you can try (in the main dir) TEST_CONTAINER=rhel7 make test_container
or you can use test_container_no_lint
skip linters. so you do not need to wait for us to retrigger unit-tests execution every time. see make help
for more if interested.
I am trying to find a VM to run the test without bothering you too much (it is just full of small papercuts)
And now I managed to get a VM, it seems to run fine.
/packit copr-build
Thanks for the unit test!
Is there something waiting for me ? From a quick look at the CI, the 3 tests fail for different reasons and they do not look like related to the patch itself (unless I am mistaken)
Hi @mscherer , actually it's now problem on our side. Most likely we will ping you during the next week, asking for rebase when tests are fixed, so we can see that there is not introduced another regression. the code looks good to me, just want to be sure that it will be final solution and we will not need to investigate similar issue again soon. And we are also little bit busy last week.
Downstream ticket with basically same issue has been reported today:
Thank you for the contribution!!
Hi @mscherer, the test execution in master branch should be fixed now. Can you please rebase your branch?
@pirat89 done
/packit copr-build
On my server, leapp preupgrade fail with the following error:
This is caused by the following line:
I have my server on EL7 with / using a Linux RAID so
len(part_info) != len(part_all_attrs)
, hence why it try to convert '*' to int.