Repository navigation
common/io_exerciser: Modify is_locked_by_me call in ceph_test_rados_io_sequence - #60211
Conversation
…o_sequence is_locked_by_me() is a function of ceph::mutex which is only used in debug builds. By using the ceph_mutex_is_locked_by_me macro, we can neatly make sure we only run this function in debug mode, allowing compilation to no longer be affected when running in release mode. Signed-off-by: Jon Bailey <[email protected]>
|
ceph API tests failed
Given that this is a single line fix in a file that does not get included in the OSD compilation, I am going to retrigger the test. |
|
jenkins test api |
|
jenkins test make check |
|
As this blocks CI builds - should be merged, I think, as soon as the gating checks are OK. |
|
i pushed to ceph-ci to verify the builds. 'make check' only builds what's needed for unit tests, so doesn't cover |
|
jenkins test make check |
|
@JonBailey1993 - do you have a thoughts/ideas on how we can improve the CI pipelines so that this would have been caught in the original PR? |
|
@jmundack This issue was only found when a build was done in release mode, so we could have change the CI so it runs its make checks in debug and release - that would be very expensive though. Maybe just sometimes chooses between the two if we want to increase coverage and lower the risk a bit of this happening again without doubling the machine power needed. In addition, cbodley mentioned above that ceph_test_* targets are not built during the make checks CI pipeline, so the above would not be enough to prevent the build break that occurred here. Maybe we need an additional pipeline to just do a release build and ensure it compiles - that's a lot of machine time though just to do a single check. Alternatively, rather than increasing the machine time required for testing CI testing every PR, we could modify functions that only exist in debug mode to make it clear that they will compile in debug only, for example, ceph::Mutex::is_locked_by_me() could be named ceph::Mutex::is_locked_by_me_debug_only() in this case - or maybe a better solution would be to make things like that a private method to the class, so that the interface I used above is a requirement if you want to call the function. That would mean its not possible to call a method that doesn't exist in release mode as the interface (in this case a MACRO) substitutes an appropriate value, preferably at compile time, when used. The other issue I fixed was in #60186. This caused by two PRs going in at the same time where one used a function and the other changed the function parameters, which unless we serialise the PR process, massively slowing it down, cannot be completely fixed I believe. Things like making CI tests and hardware more stable and faster would reduce the window between submitting PRs and merging them which would make this issue less likely to be hit as PRs would be more likely to be closer to the head of main when they are submitted due to not having to wait as long before hitting the merge pull request button, but my thinking is there is no way to eliminate this second issue entirely. It was my first PR for Ceph that caused these issues (sorry), so I'm not sure how feasible any of these thoughts are but hopefully there's some useful nuggets in my response. For myself, for the time being I think I need to make use of Ceph-CI and learn more about it, as it looks like this has better coverage of distros, architectures and build types so should give me a bit more coverage before submitting changes in the future. |
Fixes issue introduced in #59857 (54e0865)
is_locked_by_me() is a function of ceph::mutex which is only used in debug builds. By using the ceph_mutex_is_locked_by_me macro, we can neatly make sure we only run this function in debug mode, allowing compilation to no longer fail due to missing ceph::mutex specific functions when running in release mode.
Signed-off-by: JonBailey1993 [email protected]
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 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 windowsjenkins test rook e2e