Skip to content

DAOS-20162 dlck: refactor and update the fault list - #19703

Open
janekmi wants to merge 2 commits into
feature/dlck_for_daos3.0from
janekmi/DAOS-20162-dlck-functional-update
Open

janekmi wants to merge 2 commits into
feature/dlck_for_daos3.0from
janekmi/DAOS-20162-dlck-functional-update

Conversation

@janekmi

@janekmi janekmi commented Dec 4, 2026

Copy link
Copy Markdown
Contributor
  • replace fault_list with fault_dict
  • sort UNSUPPORTED_FAULTS chronologically

Skip-unit-test: true
Skip-unit-test-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-NLT: true
Skip-func-test-el9: true
Skip-func-hw-test-medium-verbs-provider: true
Skip-func-hw-test-medium-provider-md-on-ssd: true
Skip-func-hw-test-large: true
Skip-func-hw-test-large-md-on-ssd: true
skip-functional-cluster-box-medium-md-on-ssd: true
skip-functional-cluster-box-medium-provider-md-on-ssd: true

skip-unit-test-bdev: false

Test-tag: DlckBasicTest
Skip-func-hw-test-medium: false
Skip-func-hw-test-medium-md-on-ssd: false

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

- replace fault_list with fault_dict
- sort UNSUPPORTED_FAULTS chronologically

Skip-unit-test: true
Skip-unit-test-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-NLT: true
Skip-func-test-el9: true
Skip-func-hw-test-medium-verbs-provider: true
Skip-func-hw-test-medium-provider-md-on-ssd: true
Skip-func-hw-test-large: true
Skip-func-hw-test-large-md-on-ssd: true
skip-functional-cluster-box-medium-md-on-ssd: true
skip-functional-cluster-box-medium-provider-md-on-ssd: true

skip-unit-test-bdev: false

Test-tag: DlckBasicTest
Skip-func-hw-test-medium: false
Skip-func-hw-test-medium-md-on-ssd: false

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
@janekmi
janekmi requested review from a team as code owners December 4, 2026 13:02
@daosbuild3

Copy link
Copy Markdown
Collaborator

@daosbuild3

Copy link
Copy Markdown
Collaborator

Test stage Functional Hardware Medium 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-19703/1/execution/node/1068/log

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

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

one suggestion would be to put all the dlck fault flags in a common YAML file. This will help sharing the same faults across new dlck test scripts.

... produces a coredump + refine comments.

Skip-unit-test: true
Skip-unit-test-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-NLT: true
Skip-func-test-el9: true
Skip-func-hw-test-medium-verbs-provider: true
Skip-func-hw-test-medium-provider-md-on-ssd: true
Skip-func-hw-test-large: true
Skip-func-hw-test-large-md-on-ssd: true
skip-functional-cluster-box-medium-md-on-ssd: true
skip-functional-cluster-box-medium-provider-md-on-ssd: true

skip-unit-test-bdev: false

Test-tag: DlckBasicTest
Skip-func-hw-test-medium: false
Skip-func-hw-test-medium-md-on-ssd: false

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

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

If we are not planning to share the faults across different test cases, then I think it should also be ok... I am not sure how we develop a common YAML file under avocado framework and share it between test cases. Need to investigate in this area.

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

Need to understand why we are doing this since it seems like we are making it harder to share the faults going forward.

'probability_y': '100',
'interval': '1',
'max_faults': '1'},
'DLCK_MOCK_ROOT': {

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.

Why are we removing these from src/tests/ftest/util/fault_config_utils.py when that is how other tests handle it?
And as @rpadma2 pointed out, this makes it harder to share between tests

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.

TL;DR It is significantly more efficient to maintain these faults in this form with no drawbacks considering our context.

Let me try to explain my thinking:

  1. Updating these faults involves more than adding new ones. I also had to:
  • Find and remove obsolete (unused) faults from fault_config_utils.py.
  • Identify faults whose names or codes have changed in both fault_config_utils.py and dlck_basic.yaml.
  • Check that existing faults have the correct codes.
  • Remove the obsolete 'interval': '2'}, # skip sys_db and 'max_faults': '1'}, entries.
  1. This won’t be a one-off task. It will come up periodically over the next couple of weeks. I can handle some updates myself; others will require @rpadma2 to expand the test code as well. Hopefully, this is the biggest update, since I had to change fault injection quite a bit in the DLCK domain. But it may happen again, as we’re in uncharted waters.
  2. We’re not planning to share these fault definitions across tests. That’s outside the scope of the upcoming release. Given the significant overhead in our case, maintaining the definitions in two files and two languages doesn’t seem to offer any benefits.
  3. If we later decide that these definitions need to be shared, it will be easy to move them back to fault_config_utils.py. I don’t expect that to happen any time soon, but it may make sense once the definitions become less fluid. At that point, the benefits of sharing will become clearer, and some of the maintenance effort will go away.

In summary, maintaining these faults in a single file is significantly easier and less error-prone, with no drawbacks, since they aren’t going to be shared in the foreseeable future. And even then, keeping the list in dlck_basic.yaml isn’t irreversible: once we see the benefits of sharing, we can move the definitions back to fault_config_utils.py.

One more point: AI can’t solve this problem for us. Copilot can’t reliably maintain these definitions. Even if I ask it to do so, I’d still need to read and cross-check every entry. I’d also expect all reviewers to do the same manually. Otherwise, we can’t guarantee that a 1 hasn’t been entered where a 2 should be. Both values may be valid, but if that error goes unnoticed, we could end up testing case 1 twice and case 2 not at all.

@daltonbohning
daltonbohning requested a review from phender December 4, 2026 17:52

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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants