Bug 14868 - RustCompileTest fails multilib builds during MIPS QA step
Summary: RustCompileTest fails multilib builds during MIPS QA step
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: oeqa/sdk (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-07-29 06:43 UTC by Luca Ceresoli
Modified: 2022-08-04 14:34 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
log.do_testsdk for the latest occurrence (8.83 KB, application/octet-stream)
2022-07-29 06:43 UTC, Luca Ceresoli
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Ceresoli 2022-07-29 06:43:06 UTC
Created attachment 4890 [details]
log.do_testsdk for the latest occurrence

RustCompileTest fails with this error:

RESULTS - rust.RustCompileTest.test_cargo_build: ERROR
SUMMARY:
core-image-minimal sdk (poky-glibc-x86_64-core-image-minimal-mips64-n32-qemumips64-toolchain-4.1+snapshot.sh:environment-setup-mips32r2-pokymllib32-linux) - Ran 11 tests in 124.462s
core-image-minimal sdk - FAIL - Required tests failed (successes=10, skipped=1, failures=0, errors=1)
ERROR: core-image-minimal-1.0-r0 do_testsdk: core-image-minimal - FAILED - check the task log and the commands log
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/multilib/build/build/tmp/work/qemumips64-poky-linux-gnun32/core-image-minimal/1.0-r0/temp/log.do_testsdk.2621326

And fetching the log file from the worker, it shows:

NOTE: ======================================================================
NOTE: ERROR: setUpClass (rust.RustCompileTest)
NOTE: ----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/multilib/build/meta/lib/oeqa/core/case.py", line 39, in _oeSetUpClass
    clss.setUpClassMethod()
  File "/home/pokybuild/yocto-worker/multilib/build/meta/lib/oeqa/sdk/cases/rust.py", line 25, in setUpClass
    shutil.copytree(os.path.join(self.tc.sdk_files_dir, "rust/hello"), targetdir)
  File "/usr/lib64/python3.10/shutil.py", line 558, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "/usr/lib64/python3.10/shutil.py", line 457, in _copytree
    os.makedirs(dst, exist_ok=dirs_exist_ok)
  File "/usr/lib64/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/pokybuild/yocto-worker/multilib/build/build/tmp/work/qemumips64-poky-linux-gnun32/core-image-minimal/1.0-r0/testimage-sdk/hello'


First seen here (2022-07-27, patch not yet on master):
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/5615/steps/26/logs/stdio

Seen it again here today:
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/5625/steps/26/logs/stdio