Skip to content

DAOS-19836 dlck: add faults unit tests - #19393

Merged
janekmi merged 6 commits into
feature/dlck_for_daos3.0from
janekmi/DAOS-19836-dlck-formatting-check
Dec 1, 2026
Merged

janekmi merged 6 commits into
feature/dlck_for_daos3.0from
janekmi/DAOS-19836-dlck-formatting-check

Conversation

@janekmi

@janekmi janekmi commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Test procedure:

  • create a pool and populate it with standard data with dlck_test_helper

  • read faults from fault_injection_dlck.yaml

  • for each fault:

    • generate a YAML fault injection file
    • run DLCK against the pre-prepared pool with the fault injected
    • collect stdout and DLCK logs
    • compare collected data with templates e.g.
      • fault_templates/DAOS_FAULT_CONT_INV_PAD/output.txt and
      • fault_templates/DAOS_FAULT_CONT_INV_PAD/logs/{{UUID}}_vos-0
  • add DLCK_NO_NVME env variable to disable unnecessary NVMe-submodules initialization - the UT environment does not allow to allocate necessary DMA buffers.

Note: Please do not pay too much attention to quirks in the templates. Most of them are planned to be fixed in a separate pull request. e.g. DAOS-19846

Waits for:

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).

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Ticket title is 'dlck: easy way to test locally'
Status is 'Blocked'
https://daosio.atlassian.net/browse/DAOS-19836

@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from d23f4ab to cd2078c Compare October 30, 2026 16:17
@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from cd2078c to 64e7374 Compare November 2, 2026 15:33
@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from 64e7374 to e8065d2 Compare November 2, 2026 15:58
@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from 7918ce1 to f6430c9 Compare November 4, 2026 18:07
@janekmi janekmi changed the title Janekmi/daos 19836 dlck formatting check DAOS-19836 dlck: add faults unit tests Nov 4, 2026
@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch 2 times, most recently from efc7b21 to 8501187 Compare November 4, 2026 18:31
@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi requested a review from grom72 November 4, 2026 18:38
@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from 3edde6e to 7313cb2 Compare November 5, 2026 18:47
@daosbuild3

Copy link
Copy Markdown
Collaborator

@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from 48aed30 to eaf8fdd Compare November 16, 2026 11:34
Test procedure:
- create a pool and populate it with standard data with dlck_test_helper
- read faults from fault_injection_dlck.yaml
- for each fault:
  - generate a YAML fault injection file
  - run DLCK against the pre-prepared pool with the fault injected
  - collect stdout and DLCK logs
  - compare collected data with templates e.g.
    - fault_templates/DAOS_FAULT_CONT_INV_PAD/output.txt and
    - fault_templates/DAOS_FAULT_CONT_INV_PAD/{{UUID}}_vos-0

- add DLCK_NO_NVME env variable to disable unnecessary NVMe-submodules
  initialization - the UT environment does not allow to allocate necessary
  DMA buffers.

Note: Please do not pay too much attention to quirks in the templates.
Most of them are planned to be fixed in a separate pull request. e.g.
DAOS-19846

skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
@janekmi
janekmi force-pushed the janekmi/DAOS-19836-dlck-formatting-check branch from eaf8fdd to 2da0d5b Compare November 16, 2026 11:57
@janekmi
janekmi requested a review from Nasf-Fan November 16, 2026 12:23
@janekmi
janekmi marked this pull request as ready for review November 16, 2026 12:23
skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true
Skip-NLT: true

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
@daosbuild3

Copy link
Copy Markdown
Collaborator

Comment thread src/utils/dlck/dlck_args_engine.c Resolved
skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true
Skip-NLT: true

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true
Skip-NLT: true

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
@Nasf-Fan
Nasf-Fan self-requested a review November 19, 2026 03:30
@janekmi
janekmi requested a review from grom72 November 19, 2026 13:56
skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true
Skip-NLT: true

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
skip-unit-test-with-memcheck: true
skip-test-rpms: true
Skip-func-vm: true
Skip-fault-injection-test: true
Skip-test-el-9.6-rpms: true
Skip-test-leap-15-rpms: true
Skip-func-hw-test: true
Skip-NLT: true

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
@janekmi
janekmi requested a review from grom72 November 23, 2026 16:40
@daosbuild3

Copy link
Copy Markdown
Collaborator

DEFAULT_POOL_UUID = "00000000-1111-2222-3333-444444444444"
TESTS_DIR = Path(__file__).resolve().parent
TEMPLATE_CONFIG = TESTS_DIR / "fault_injection_dlck.yaml"
TEMPLATE_DIR = TESTS_DIR / "fault_templates"

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.

Occasionally, I found that DLCK_FAULT_CONT_DOES_NOT_EXIST and DLCK_FAULT_POOL_OPEN_VERSION are both described as 131344 in fault_injection_dlck.yaml. It seems typo. Please double check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are right. This is planned to be fixed here #19377.

@janekmi

janekmi commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Testing - complete ✅

  • failed test in "Functional on EL9" could not be possibly caused by this change. This stage has got run by mistake.

@janekmi
janekmi requested a review from a team November 24, 2026 12:51
@janekmi janekmi mentioned this pull request Nov 27, 2026
1 of 8 tasks
@janekmi
janekmi changed the base branch from master to feature/dlck_for_daos3.0 December 1, 2026 17:22
@janekmi
janekmi removed the request for review from a team December 1, 2026 17:23
@janekmi
janekmi merged commit c036ddf into feature/dlck_for_daos3.0 Dec 1, 2026
63 of 70 checks passed
@janekmi
janekmi deleted the janekmi/DAOS-19836-dlck-formatting-check branch December 1, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants