daos
daos copied to clipboard
DAOS-11762 test: Match log threshold with log rollover size (#10479)
Updated launch.py to log all activity into an avocado-like job-results directory in a job.log. All actions performed before and after running each test files and also logged in their own sequence numbered log file. Any errors that occur in this log file are tracked in a results.xml file and will now appear in the Jenkins Test Results.
Improvements have been made to the archiving steps performed by launch.py after executing each test file. The use of a remote shell script has been replaced by clush find commands. Copying files back to the job-results directory on the launch node now uses clush --rcopy resulting in job-result sub-directories with node name extensions. The core file processing steps have now been moved to their own python file to allow usage outside of launch.py.
Additional harness tests have been added to verify the new launch.py error reporting as well as the recently introduced cmocka xml file checking. The core file harness test was also updated to wait for the engine to finish writing the core file before finishing. The setup test has been separated out into vm and hw versions to allow usage on smaller clusters.
New user_utils.py and run_utils.py files added to facilitate these changes.
Also including cherry-picks for:
- https://github.com/daos-stack/daos/commit/faa732b0df67cfd339f05c8eb93fc31949448ed0
- https://github.com/daos-stack/daos/commit/0ec06ab43f5ce523b3a8a49c87eb3f383cae87d9
- https://github.com/daos-stack/daos/commit/b86c60a63d5c6ea6750682f4b83c91e731c2cbc4
- https://github.com/daos-stack/daos/commit/bf65cb42d479f40f7b7f60456cc35a0f39082f1a
Skip-unit-tests: true Test-tag: pr daily_regression test_core_files test_daos_server_dump_basic test_no_cmocka_xml Test-tag-hw-large: pr daily_regression test_core_files_hw soak_smoke test_setup_hw criticalintegration Allow-unstable-test: true Skip-func-test-leap15: false
Before requesting gatekeeper:
- [ ] Two review approvals and any prior change requests have been resolved.
- [ ] Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
- [x] Commit messages follows the guidelines outlined here.
- [x] Any tests skipped by the ticket being addressed have been run and passed in the PR.
Gatekeeper:
- [ ] You are the appropriate gatekeeper to be landing the patch.
- [ ] The PR has 2 reviews by people familiar with the code.
- [ ] Any appropriate watchers have had a chance to review the PR.
- [ ] Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
- [ ] Githooks were used. If not, there is a sufficient reason to move forward. Check copyrights if githooks were not used.
- [ ] Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
- [ ] All builds have passed. Check non-required builds to ensure they don't indicate any problem such as a compiler warning on extraneous platforms.
- [ ] No new NLT or valgrind warnings. Check the classic view. This step should only matter if the build requires force landing.
- [ ] Ensure sufficent testing is done. Check feature pragmas and test tags. Check that tests skipped for the ticket are run and now pass with the changes.
- [ ] Quick-build or Quick-functional is not used.
- [ ] Pay attention to PRs that may affect compatibility between versions and ensure it has been addressed.
- [ ] Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
- [ ] Check the commit message when landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.
Bug-tracker data:
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10523/5/execution/node/161/log
Test stage Functional on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10523/5/execution/node/1024/log
Test stage Functional on Leap 15 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-10523/5/testReport/(root)/
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10523/5/execution/node/1602/log
Replaced by https://github.com/daos-stack/daos/pull/10602