Skip to content

DAOS-19789 test: report unrunnable cmocka tests as skipped - #19467

Open
kccain wants to merge 5 commits into
masterfrom
kccain/daos_19789
Open

kccain wants to merge 5 commits into
masterfrom
kccain/daos_19789

Conversation

@kccain

@kccain kccain commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Replace silent prerequisite returns with cmocka skip() calls. Add test_runable_or_skip() as a macro to preserve the calling file and line, and convert existing simple skip guards to use it.

Preserve compound conditions, diagnostic messages, and boolean checks selecting optional subcases. Increase REBUILD21's service replica count from three to five so its test body can execute.

Skip-nlt: true
Skip-fault-injection-test: true
Test-tag: pr test_rebuild_31 test_rebuild_32 test_rebuild_33 test_rebuild_34 test_rebuild_35 test_rebuild_36 test_rebuild_37

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

@daosbuild3

daosbuild3 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Test stage Build on EL 9 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19467/1/execution/node/548/log

typo in daos_aggregate_ec.c copyright comments - fixed with force-push

@daosbuild3

daosbuild3 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Test stage Build on Leap 15 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19467/1/execution/node/547/log

typo in daos_aggregate_ec.c copyright comments - fixed with force-push

Replace silent prerequisite returns with cmocka skip() calls.
Add test_runable_or_skip() as a macro to preserve the calling
file and line, and convert existing simple skip guards to use it.

Preserve compound conditions, diagnostic messages, and boolean
checks selecting optional subcases. Increase REBUILD21's service
replica count from three to five so its test body can execute.

Skip-nlt: true
Skip-fault-injection-test: true
Test-tag: pr test_rebuild_31 test_rebuild_32 test_rebuild_33 test_rebuild_34 test_rebuild_35 test_rebuild_36 test_rebuild_37

Signed-off-by: Kenneth Cain <kenneth.cain@hpe.com>
@kccain
kccain force-pushed the kccain/daos_19789 branch from 3657292 to c647d45 Compare November 5, 2026 22:25
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Ticket title is 'some daos_test cases silently run and do nothing when not meeting runtime criteria for number of engines / PS replicas'
Status is 'In Review'
Labels: 'triaged'
https://daosio.atlassian.net/browse/DAOS-19789

@kccain kccain added the forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed. label Nov 9, 2026
@kccain
kccain marked this pull request as ready for review November 9, 2026 17:08
@kccain
kccain requested review from a team as code owners November 9, 2026 17:08
@kccain
kccain requested review from liuxuezhao and phender November 9, 2026 17:10
daltonbohning
daltonbohning previously approved these changes Nov 9, 2026

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

It does look like there are 13 tests skipped, but I didn't check whether those are existing or surfaced due to this PR. Will there be a followup ticket/PR to address the "new" skips?

test_arg_t *arg = *statep;
struct ec_agg_test_ctx ctx = { 0 };

if (!test_runable(arg, 5))

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.

The misspelling is existing, but runable -> runnable

@kccain

kccain commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

It does look like there are 13 tests skipped, but I didn't check whether those are existing or surfaced due to this PR. Will there be a followup ticket/PR to address the "new" skips?

Proposal: remove these tests (I can do that in this PR - @liuxuezhao and @NiuYawei what do you think0?

  • REBUILD 14 rebuild_nospace - I'm not sure if this test would do anything interesting even if it were enabled. Upcoming rebuild work on out of space improvements will surely develop more specific tests. This test was "skipped" intentionally (skip() changed to return) 6 years ago.
    • IO17, IO18, IO33 - all have code that is entirely compiled out by #if 0 and only has the print_message to say that the obsolete test cases are being skipped. OK to remove, or do we need to keep them in the code as a reminder to subsequently revive them?

Proposal: keep these as-is (let them keep calling skip())

  • DEDUP01 - DEDUP05 tests are skipping: proposal: no change needed. Just let them call skip().
  • DTX38 - looks like it is skipping because the client environment does not have DAOS_TX_VERIFY_RDG set (not in suite.yaml). And that may be intentional to avoid some overheads for many other client operations (e.g., in other tests in daos_test)? Looking at commit 4264a93 We could just put a code comment in dtx_38() explaining that this test is meant to be run manually while setting the variable in the client environment. And continue to have the test case invoke skip().

liuxuezhao
liuxuezhao previously approved these changes Nov 10, 2026
@kccain

kccain commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

@liuxuezhao suggests keeping REBUILD14 in the code base "“REBUILD14 rebuild_nospace" probably can keep as now, if with better support that will be able to enable it later."

@Nasf-Fan and @NiuYawei - can you comment on the question of whether to remove IO17, IO18, and IO33 from the code?

@NiuYawei

Copy link
Copy Markdown
Contributor

@liuxuezhao suggests keeping REBUILD14 in the code base "“REBUILD14 rebuild_nospace" probably can keep as now, if with better support that will be able to enable it later."

@Nasf-Fan and @NiuYawei - can you comment on the question of whether to remove IO17, IO18, and IO33 from the code?

@kccain , yes. IO17, IO18 and IO33 are not relevant anymore, they could be removed.

kccain and others added 3 commits November 20, 2026 19:21
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename the test_runable helper and its skip macro to use runnable spelling.

Skip-nlt: true
Skip-fault-injection-test: true
Test-tag: pr test_rebuild_31 test_rebuild_32 test_rebuild_33 test_rebuild_34 test_rebuild_35 test_rebuild_36 test_rebuild_37
Signed-off-by: Kenneth Cain <kenneth.cain@hpe.com>
Remove IO17, IO18, and IO33 while preserving historical subtest index
selectors. To not cause confusion in (historical vs new) test naming
and pass/fail/skip history, these subtest indexes will not be reused.
i.e., new tests shall be added at the end, with new indexes.
Print warnings when a retired test is selected via --subtests.

Skip-nlt: true
Skip-fault-injection-test: true
Test-tag: pr test_rebuild_31 test_rebuild_32 test_rebuild_33 test_rebuild_34 test_rebuild_35 test_rebuild_36 test_rebuild_37
Signed-off-by: Kenneth Cain <kenneth.cain@hpe.com>
@kccain
kccain dismissed stale reviews from liuxuezhao and daltonbohning via f875c39 November 21, 2026 00:29
@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Functional Hardware Medium Provider MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19467/3/execution/node/1441/log

@daosbuild3

daosbuild3 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Test stage Functional Hardware Large MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19467/4/execution/node/609/log

erasurecode/online_rebuild_mdtest.py failure is due to an unrelated issue seen on one specific host in the hw cluster.

Preserve retired I/O selectors alongside IO58 and retain the upstream
EC fault-injection check with the renamed runnable helper.

Skip-nlt: true
Skip-fault-injection-test: true
Test-tag: pr test_rebuild_31 test_rebuild_32 test_rebuild_33 test_rebuild_34 test_rebuild_35 test_rebuild_36 test_rebuild_37
Signed-off-by: Kenneth Cain <kenneth.cain@hpe.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

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

Labels

forced-landing The PR has known failures or has intentionally reduced testing, but should still be landed.

Development

Successfully merging this pull request may close these issues.

5 participants