Repository navigation
Conversation
- 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>
|
Test stage Functional Hardware Medium 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/1055/log |
|
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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': { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
- 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.pyanddlck_basic.yaml. - Check that existing faults have the correct codes.
- Remove the obsolete
'interval': '2'}, # skip sys_dband'max_faults': '1'},entries.
- 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.
- 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.
- 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.
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:
After all prior steps are complete: