Skip to content

qa/workunits/rbd: merge journal and snapshot test scripts - #48508

Merged
idryomov merged 1 commit into
ceph:mainfrom
pkalever:rbd-tests
Nov 3, 2023
Merged

idryomov merged 1 commit into
ceph:mainfrom
pkalever:rbd-tests

Conversation

@pkalever

@pkalever pkalever commented Oct 17, 2022 •

Copy link
Copy Markdown

The idea is to avoid the maintenance of duplicate code in both the journal and snapshot test scripts.
Usage:
rbd_mirror.sh [<mode>]

Available modes: snapshot or journal

You can also use environment variable RBD_MIRRIR_MODE to set the mode

Fixes: https://tracker.ceph.com/issues/54312
Signed-off-by: Prasanna Kumar Kalever [email protected]

Checklist

  • Tracker (select at least one)
    • References tracker ticket
  • Component impact
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • No doc update is appropriate
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

@pkalever
pkalever requested a review from a team as a code owner October 17, 2022 12:38
@pkalever

Copy link
Copy Markdown
Author

@idryomov will it be possible for you to schedule the lab tests for this PR, please? Thanks!

@chrisphoffman chrisphoffman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall great job, there was a bunch to get right and it looks like you did.

I have two additional improvements:
-As this change deletes rbd_mirror_snapshot.sh and rbd_mirror_journal.sh and combines into rbd_mirror.sh can you change the yaml files for integration testing to use this new script? For example: ./ceph/qa/suites/rbd/mirror/workloads/rbd-mirror-workunit-config-key.yaml

-rbd_mirror_helpers.sh comments reference one of the old scripts, I'd recommend changing it to reference the new one.

Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
@pkalever

Copy link
Copy Markdown
Author

@idryomov @chrisphoffman thanks for the review, addressed your review comments now.

@pkalever

Copy link
Copy Markdown
Author

jenkins test windows

@trociny trociny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM (if it passes qa).

Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
@pkalever
pkalever force-pushed the rbd-tests branch 2 times, most recently from 23e6966 to 2f46ec2 Compare October 21, 2022 12:43
@pkalever

pkalever commented Dec 7, 2022

Copy link
Copy Markdown
Author

@idryomov isn't this ready for a merge?

@idryomov idryomov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash everything into the first commit as that is where rbd_mirror_journal.sh and rbd_mirror_snapshot.sh cease to exist.

Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jun 26, 2023
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Jul 26, 2023
@pkalever pkalever reopened this Aug 10, 2023
@pkalever

Copy link
Copy Markdown
Author

@idryomov anything pending on this?

@github-actions github-actions Bot removed the stale label Aug 10, 2023
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved

@trociny trociny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no issues noticed

Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
@pkalever

pkalever commented Oct 3, 2023

Copy link
Copy Markdown
Author

Latest version test run results:
test_journal.txt
test_snapshot.txt

Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror_helpers.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
@idryomov

idryomov commented Nov 1, 2023

Copy link
Copy Markdown
Contributor

Please squash everything into the first commit: the other two commits don't stand on their own because rbd_mirror_journal.sh and rbd_mirror_snapshot.sh are renamed/removed in the first commit.

@pkalever

pkalever commented Nov 2, 2023

Copy link
Copy Markdown
Author

Latest version test run results:
test_snapshot.txt
test_journal.txt

Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
Comment thread qa/workunits/rbd/rbd_mirror.sh Resolved
The idea is to avoid the maintenance of duplicate code in both the journal
and snapshot test scripts.

Usage:
   RBD_MIRROR_MODE=journal rbd_mirror.sh

Use environment variable RBD_MIRROR_MODE to set the mode
Available modes: snapshot | journal

Fixes: https://tracker.ceph.com/issues/54312
Signed-off-by: Prasanna Kumar Kalever <[email protected]>
@pkalever

pkalever commented Nov 2, 2023

Copy link
Copy Markdown
Author

Latest version test run results:
test_snapshot2.txt
test_journal2.txt

@idryomov

idryomov commented Nov 3, 2023

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants