DAOS-19005 test: Fix dfuse daos_build tests#18363
Conversation
Resolve issues installing elftools and hatchling for daos_build tests. Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
| f'{sys.executable} -m pip install pip --upgrade', | ||
| f'{sys.executable} -m pip install -r {build_dir}/requirements-build.txt', |
There was a problem hiding this comment.
I wonder if something got missed somewhere because above is
f'{sys.executable} -m venv {mount_dir}/venv'
And even higher is
remote_env['VIRTUAL_ENV'] = os.path.join(mount_dir, 'venv')
But it doesn't seem that we ever source that virtual env?
Maybe we should remove the venv and VIRTUAL_ENV stuff from this test now and just use sys.executable as you're doing
|
Ticket title is 'dfuse/daos_build_vm.py:DaosBuildVM.test_dfuse_daos_build_* - elftools / hatchling issues' |
|
Test stage Test RPMs on Leap 15.5 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-18363/2/execution/node/591/log |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/3/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional 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-18363/5/execution/node/635/log |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/6/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional 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-18363/9/execution/node/573/log |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/10/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/11/testReport/ |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/12/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/13/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/14/testReport/ |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/15/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/16/testReport/ |
| echo " -p, --python_cmd <val> Python command to use (default: python3)" | ||
| echo " -v, --python_venv <val> Path to Python virtual environment (default: /tmp/daos_build/venv)" | ||
| echo " -b, --build_dir <val> Directory to clone and build DAOS (default: /tmp/daos_build/daos)" | ||
| echo " -g, --git_checkout <val> Git branch or commit to checkout (default: origin/master)" | ||
| echo " -d, --distro <val> Linux distribution for installing dependencies (default: el9)" | ||
| echo " -j, --build_jobs <val> Number of parallel jobs for building DAOS (default: 30)" | ||
| echo " -f, --filesystem_test Whether to run filesystem tests (default: false)" | ||
| echo " -r, --rebuild Whether to skip setup of build and venv directories (default: false)" | ||
| echo " -h, --help Show this help message and exit" |
There was a problem hiding this comment.
IMO it's better to use dashses instead of underscores in argument names because that is much more common practice
|
|
||
| # Create a Python virtual environment and install python build dependencies | ||
| if [ "${rebuild}" = "false" ]; then | ||
| run_cmd 1m "rm -rf ${python_venv}" || exit $? |
There was a problem hiding this comment.
FYI you don't need the $? because that is piped through. So you could simplify to
| run_cmd 1m "rm -rf ${python_venv}" || exit $? | |
| run_cmd 1m "rm -rf ${python_venv}" || exit |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/17/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/19/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on SLES 15 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-18363/20/execution/node/623/log |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/20/testReport/ |
|
Test stage Functional on EL 8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/20/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on EL 8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/21/testReport/ |
|
Test stage Functional on Leap 15 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/21/testReport/ |
|
Test stage Functional on SLES 15 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/21/testReport/ |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/21/testReport/ |
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
Skip-unit-tests: true Skip-fault-injection-test: true Skip-func-test-el8: false Skip-func-test-leap15: false Test-tag: DaosBuild DaosBuildVM Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
|
Test stage Functional on SLES 15 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/23/testReport/ |
|
Test stage Functional on Leap 15 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/23/testReport/ |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/23/testReport/ |
|
Test stage Functional on EL 8 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18363/23/testReport/ |
Resolve issues installing elftools and hatchling for daos_build tests.
Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: DaosBuild DaosBuildVM
Steps for the author:
After all prior steps are complete: