Skip to content

qa: Skip error inject tests when external error inject is happening - #70157

Merged
MattyWilliams22 merged 3 commits into
ceph:mainfrom
MattyWilliams22:wip-skip-error-inject-tests
Aug 5, 2026
Merged

MattyWilliams22 merged 3 commits into
ceph:mainfrom
MattyWilliams22:wip-skip-error-inject-tests

Conversation

@MattyWilliams22

@MattyWilliams22 MattyWilliams22 commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/77808

The recovery tests in omap_cxx.cc change the upmap of a PG, in an attempt to trigger recovery. This does not work correctly when a test suite (such as smoke/basic) is applying error inject at the same time.

This PR uses the string "DoesErrorInject" to specify which rados API tests should be skipped when a test suite is applying external error inject.

This PR also relaxes the AssertOperatesWithSplitOp macro when external error inject is happening, as this may cause split ops to fail (expected behaviour).

Some split ops tests require a pool size >2, so this PR increases the pool size to 3 for this test suite.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

jenkins test api

@ljflores ljflores left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Draft looks good so far. I can review this again when it's fully ready.

@MattyWilliams22
MattyWilliams22 force-pushed the wip-skip-error-inject-tests branch from 07c87a6 to a089945 Compare July 16, 2026 09:32
@MattyWilliams22
MattyWilliams22 marked this pull request as ready for review July 16, 2026 13:12
@MattyWilliams22
MattyWilliams22 requested a review from a team as a code owner July 16, 2026 13:12

@aainscow aainscow 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.

LGTM

Comment thread qa/workunits/rados/test.sh Resolved
… is flagged

Add string "DoesErrorInject" to tests that are doing their own error inject.
Add flag "--external-error-inject" to rados/test.sh. When flag is provided, skip all tests containing the string "DoesErrorInject".

Fixes: https://tracker.ceph.com/issues/77808
Signed-off-by: Matty Williams <[email protected]>
Assisted-by: IBM-Bob:Claude/GPT
Add split_op tests to rados/test.sh.
Relax AssertOperateWithSplitOp if --external-error-inject flag is provided.

Fixes: https://tracker.ceph.com/issues/77808
Signed-off-by: Matty Williams <[email protected]>
Assisted-by: IBM-Bob:Claude/GPT
Signed-off-by: Matty Williams <[email protected]>
Assisted-by: IBM-Bob:Claude/GPT
@MattyWilliams22
MattyWilliams22 force-pushed the wip-skip-error-inject-tests branch from a089945 to 877cb51 Compare July 16, 2026 14:49

@CJamesIBM CJamesIBM 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.

LGTM

@bill-scales bill-scales 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.

LGTM

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath7-testing-20260724.101654-main.

@JonBailey1993

Copy link
Copy Markdown
Contributor

@MattyWilliams22
MattyWilliams22 merged commit 47f638f into ceph:main Aug 5, 2026
6 checks passed
@MattyWilliams22
MattyWilliams22 deleted the wip-skip-error-inject-tests branch August 5, 2026 12:37
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

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
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/31006425779

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.

7 participants