Skip to content
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

src/test: add testcase file for low level sync io code paths #57576

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dparmar18
Copy link
Contributor

@dparmar18 dparmar18 commented May 20, 2024

and test that providing null or invalid file handle returns an error as expected

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@dparmar18
Copy link
Contributor Author

dparmar18 commented May 20, 2024

backports like https://tracker.ceph.com/issues/64740 or https://tracker.ceph.com/issues/64739 which are intended for async io are not possible because older releases do not have that feature(feature is available only since squid), but that doesn't mean we cannot/shouldn't backport the patch #55457, the code that it fixes also impact the sync code path, we anyways have a tracker for this https://tracker.ceph.com/issues/63712 to add sync io (low level) code path test cases so let us have this test case merged into main and then this test case along with the source code from #55457 can be backported for the backport trackers mentioned above.

@dparmar18 dparmar18 requested a review from a team May 20, 2024 19:11
@dparmar18 dparmar18 added the cephfs Ceph File System label May 20, 2024
@dparmar18
Copy link
Contributor Author

Passes locally

[       OK ] TestClient.LlreadvLlwritevInvalidFileHandleSync (207 ms)
[----------] 27 tests from TestClient (8600 ms total)

[----------] Global test environment tear-down
[==========] 27 tests from 1 test suite ran. (8600 ms total)
[  PASSED  ] 27 tests.

@dparmar18
Copy link
Contributor Author

backports like https://tracker.ceph.com/issues/64740 or https://tracker.ceph.com/issues/64739 which are intended for async io are not possible because older releases do not have that feature(feature is available only since squid), but that doesn't mean we cannot/shouldn't backport the patch #55457, the code that it fixes also impact the sync code path, we anyways have a tracker for this https://tracker.ceph.com/issues/63712 to add sync io (low level) code path test cases so let us have this test case merged into main and then this test case along with the source code from #55457 can be backported for the backport trackers mentioned above.

once i'm done with my ongoing work, i'll push more test cases to this file for better sync io code coverage

@dparmar18 dparmar18 force-pushed the sync-codepath-testcase-invalid-fh branch from 31d05d2 to 7b074f8 Compare May 21, 2024 09:44
and test that providing null or invalid file handle returns an error as expected

Fixes: https://tracker.ceph.com/issues/66156
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
@dparmar18 dparmar18 force-pushed the sync-codepath-testcase-invalid-fh branch from 7b074f8 to bc4bb1e Compare May 21, 2024 09:46
@vshankar
Copy link
Contributor

@dparmar18 As discussed, this needs to be backported along with the async test cases. For releases that don't have the async calls, we can backport the sync test cases.

@vshankar
Copy link
Contributor

once i'm done with my ongoing work, i'll push more test cases to this file for better sync io code coverage

Please tag me on the PR when its ready for review.

@dparmar18
Copy link
Contributor Author

once i'm done with my ongoing work, i'll push more test cases to this file for better sync io code coverage

Please tag me on the PR when its ready for review.

this is ready for review, for now this is the only sync io test case that needs to be merged

@vshankar
Copy link
Contributor

vshankar commented Jun 3, 2024

This PR is under test in https://tracker.ceph.com/issues/66327.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants