Repository navigation
test: Improve efficiency of omap tests - #69303
Conversation
2c2ecfd to
f2d97a2
Compare
|
jenkins test api |
6c0daa6 to
41c60d9
Compare
66e7ba8 to
54c8d93
Compare
|
jenkins test api |
aainscow
left a comment
There was a problem hiding this comment.
I have only reviewed the last commit, but LGTM
54c8d93 to
57ee1a9
Compare
|
jenkins test api |
Use a single pool of each type for all tests instead of creating a new pool for each test. Fixes: https://tracker.ceph.com/issues/77330 Assisted-by: Bob Signed-off-by: Matty Williams <[email protected]>
57ee1a9 to
658c17f
Compare
|
This PR has been added to wip-bharath7-testing-20260724.101654-main. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
| .time_since_epoch().count()); | ||
| ioctx.set_namespace(nspace); | ||
|
|
||
| cleanup_namespace(rados, ioctx, nspace); |
There was a problem hiding this comment.
What is the purpose of this cleanup_namespace() call? The names of both the pool and the namespace are supposed to be unique, can the namespace really be polluted at this point?
There was a problem hiding this comment.
I agree that this call is unnecessary as 'nspace' is unique
| } | ||
|
|
||
| void PoolTypeTestFixture::TearDown() { | ||
| cleanup_namespace(rados, ioctx, ""); |
There was a problem hiding this comment.
Do any of the tests that use PoolTypeTestFixture/ClsTestFixture pollute the default namespace in addition to the namespace that they are handed out by the fixture?
There was a problem hiding this comment.
As far as I know, no tests currently pollute the default namespace (as I wrote most of them).
However, it is possible that a test could be written in the future that does.
When I wrote this I was following the pattern used in testcase_cxx.cc which does the same.
There was a problem hiding this comment.
However, it is possible that a test could be written in the future that does.
Well, this argument can be extended to a custom namespace with an arbitrary name chosen by the test (e.g. ns1) as well. If the test pollutes some namespace, default or any other, previously it didn't matter because the pool would get re-created for the next test. Now it potentially matters (i.e. may present a problem if one of the next tests wants to operate on the same namespace), but the default namespace is the only one that gets treated specially. Nothing particularly wrong with that, it's just not obvious why.
When I wrote this I was following the pattern used in testcase_cxx.cc which does the same.
I see, thanks for the pointer.
Before, every test was creating and destroying a pool, adding a lot of overhead.
Now, a single pool of each type (Replicated + Fast EC) are used for all of the omap tests.
Also, introduced helper functions to reduce code duplication between tests.
This test fixture will also be used to run all the cls method tests in Replicated and Fast EC pools in this PR: 67448
Fixes: https://tracker.ceph.com/issues/77330
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.