qa/cephfs: upgrade xfstests_dev.py to run more tests#45960
qa/cephfs: upgrade xfstests_dev.py to run more tests#45960rishabh-d-dave merged 2 commits intoceph:mainfrom
Conversation
|
DNM because the PR needs to add tests that should be run regularly in nightlies. EDIT - |
|
@gregsfortytwo @jtlayton @vshankar Which tests from xfstests-dev do we wish to run in nightlies? I'll add one more commit to this PR accordingly. |
5cda4c1 to
75c730d
Compare
I think we want to run all of them, unless there are some which fail on FUSE filesystems? But that should all be handled within the xfstests suite. |
generic/* |
qa/tasks/cephfs/xfstests_dev.py
Outdated
| return p.returncode | ||
|
|
||
| def run_testfile(self, testdir, testfile): | ||
| return self.run_tests(f'{testdir}/{testfile}') |
There was a problem hiding this comment.
Why not fix the test_acls.py by using this new helper in this PR?
There was a problem hiding this comment.
I intend to do it but I wanted to figure out first what more tests we want to run.
What about tests/ceph? |
@jtlayton has one doc about the xfsdev test [1], this is what we usually will run. [1] https://jtlayton.wordpress.com/2021/11/29/testing-the-linux-kernel-cephfs-client-with-xfstests/ |
Oh, awesome. Thanks! |
|
@rishabh-d-dave - right now, test_acls uses xfstests_dev, but we would want to run more xfstests not from test_acls by itself. Please do the changes w.r.t. that. |
|
jenkins test make check |
|
make check failure is valid, I'll fix it after these tests finish running - http://pulpito.front.sepia.ceph.com/rishabh-2022-05-06_15:47:39-fs-wip-rishabh-fs-auth-subcmd-distro-basic-smithi/ |
4ab8fa9 to
796ec48
Compare
|
Quoting #45960 (comment).
Fixed now. |
f8f61f5 to
6a083e7
Compare
|
@gregsfortytwo @vshankar @lxbsz @jtlayton Are any of these failures (copied below) already known? I'll start investigating into these failure and try fixing them otherwise. |
|
@rishabh-d-dave This would need a retest once #44240 is merged. |
|
EDIT - New changes are working fine. |
|
@rishabh-d-dave you mentioned about ~40 failures with ceph-fuse. Could you link me the run for that? |
It' in the comment just above. The log had double entries. So the total number of failures is actually 20. Following are tracker tickets created for these failures -
|
|
make check failure looks unrelated - https://jenkins.ceph.com/job/ceph-pull-requests/111838/. Running this Ceph CI job one more time. |
|
jenkins test make check |
1 similar comment
I left a comment in tracker 58937. I might be misinterpreting the whole thing, but I cannot find a failing teuthology job with ceph-fuse. |
This PR doesn't fail it when there have failure tests. So the qa teuthology jobs will always pass. @rishabh-d-dave IMO you can just skip those cases currently, which maybe buggy in |
qa/tasks/cephfs/xfstests_dev.py
Outdated
| else: | ||
| try: | ||
| self.assertEqual(p.returncode, 0) | ||
| line = 'Passed all 0 tests' |
There was a problem hiding this comment.
And then just do:
self.assertIn(line, stdout)
should be enough ??
As I remembered I never seen Passed all 0 tests yet.
There was a problem hiding this comment.
I can't exactly recall when I saw Passed all 0 tests but it does occur sometimes.
There was a problem hiding this comment.
This is a false check anyway.
If there is one test and it fails, the output will be:
...
------------------------------------------------
+---------------------------------------------dd--
fsx.3 : -d -N numops -l filelen -S 0 -x
-----------------------------------------------
Ran: generic/075
Failures: generic/075
Failed 1 of 1 tests
If there have more than one tests, the output will be:
...
------------------------------------------------
+---------------------------------------------dd--
fsx.3 : -d -N numops -l filelen -S 0 -x
-----------------------------------------------
generic/123 3s ... 4s
Ran: generic/075 generic/123
Failures: generic/075
Failed 1 of 2 tests
If both fail it will be:
...
-----------------------------------------------
fsx.3 : -A -d -N numops -l filelen -S 0 -x
------------------------------------------------
+--------------------------------------------dd---
Ran: generic/075 generic/112
Failures: generic/075 generic/112
Failed 2 of 2 tests
For group test it will be:
...
Failures: generic/112
Failed 1 of 568 tests
There was a problem hiding this comment.
This is what happens normally. But in certain cases "" gets printed (I guess I saw it when ceph-fuse wasn't support and tests for acls was triggered.).
Signed-off-by: Rishabh Dave <ridave@redhat.com>
|
Optimizations, nothing more. |
|
jenkins test make check arm64 |
Signed-off-by: Rishabh Dave <ridave@redhat.com>
|
jenkins test make check arm64 |
|
@rishabh-d-dave Please create trackers for the test failures. Otherwise LGTM. |
The tracker for test failurs were created few days ago - fuse: https://tracker.ceph.com/issues/58945 |
Ah, since its assigned, I didn't see those dueing bug scrub. |
|
|
@rishabh-d-dave you can go ahead and merge. |
|
Tests ran fine. The tests from xfstests-dev repo were executed partially so that code from this PR could be test in its entirety in lesser time. Here's the patch that was applied on top of this PR branch to reduce the duration - The failure of the tests above is not due to the patch on this PR. Tickets have been to investigate deeper into this - fuse: https://tracker.ceph.com/issues/58945 |
Fixes: https://tracker.ceph.com/issues/18475
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows