Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: "Richard Purdie" <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org,
	Otavio Salvador <otavio@ossystems.com.br>
Subject: Re: [OE-core] [PATCH 2/3] oeqa/sdk: Add basic rust cargo test
Date: Wed, 27 Jul 2022 18:48:26 +0200	[thread overview]
Message-ID: <20220727184826.04eb9d05@booty> (raw)
In-Reply-To: <20220726142413.2262729-2-richard.purdie@linuxfoundation.org>

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

Hello Richard,

On Tue, 26 Jul 2022 15:24:12 +0100
"Richard Purdie" <richard.purdie@linuxfoundation.org> wrote:

> From: Otavio Salvador <otavio@ossystems.com.br>
> 
> Add a QA test to the SDK to test that a basic cargo build works.
> 
> [RP: Tweaked to work for multilibs and updated to match toolchain changes]
> 
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

We have a build failure with this series applied:

https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/5615/steps/26/logs/stdio

Attached is the do_testsdk log.

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: log.do_testsdk.37977 --]
[-- Type: application/octet-stream, Size: 9056 bytes --]

DEBUG: Executing python function do_testsdk
/home/pokybuild/yocto-worker/multilib/build/meta/lib/oeqa/sdk/testsdk.py:88: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/pokybuild/yocto-worker/multilib/build/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-mips64-n32-qemumips64-toolchain-4.1+snapshot.testdata.json' mode='r' encoding='UTF-8'>
  test_data = json.load(open(tdname, "r"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.10/site-packages/testtools/distutilscmd.py:7: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.core import Command
SDK testing environment: mips32r2-pokymllib32-linux
NOTE: test_assimp (assimp.BuildAssimp)
NOTE:  ... ok
NOTE: test_cpio (buildcpio.BuildCpioTest)
NOTE:  ... ok
NOTE: test_epoxy (buildepoxy.EpoxyTest)
NOTE:  ... ok
NOTE: test_galculator (buildgalculator.GalculatorTest)
NOTE:  ... skipped "GalculatorTest class: SDK don't support gtk+3"
GalculatorTest class: SDK don't support gtk+3
NOTE: test_lzip (buildlzip.BuildLzipTest)
NOTE:  ... ok
NOTE: test_gcc_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_gpp2_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_gpp_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_make (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_perl (perl.PerlTest)
NOTE:  ... ok
NOTE: test_python3 (python.Python3Test)
NOTE:  ... ok
NOTE: test_cargo_build (rust.RustCompileTest)
NOTE:  ... skipped "RustCompileTest class: SDK doesn't contain a Rust cross-canadian toolchain"
RustCompileTest class: SDK doesn't contain a Rust cross-canadian toolchain
NOTE: ----------------------------------------------------------------------
NOTE: Ran 12 tests in 206.667s
NOTE: OK
NOTE:  (skipped=2)
RESULTS:
RESULTS - assimp.BuildAssimp.test_assimp: PASSED (112.51s)
RESULTS - buildcpio.BuildCpioTest.test_cpio: PASSED (39.51s)
RESULTS - buildepoxy.EpoxyTest.test_epoxy: PASSED (49.89s)
RESULTS - buildlzip.BuildLzipTest.test_lzip: PASSED (3.72s)
RESULTS - gcc.GccCompileTest.test_gcc_compile: PASSED (0.14s)
RESULTS - gcc.GccCompileTest.test_gpp2_compile: PASSED (0.19s)
RESULTS - gcc.GccCompileTest.test_gpp_compile: PASSED (0.46s)
RESULTS - gcc.GccCompileTest.test_make: PASSED (0.13s)
RESULTS - perl.PerlTest.test_perl: PASSED (0.02s)
RESULTS - python.Python3Test.test_python3: PASSED (0.04s)
RESULTS - buildgalculator.GalculatorTest.test_galculator: SKIPPED (0.00s)
RESULTS - rust.RustCompileTest.test_cargo_build: SKIPPED (0.00s)
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 12 tests in 206.667s
core-image-minimal sdk - OK - All required tests passed (successes=10, skipped=2, failures=0, errors=0)
SDK testing environment: mips64-pokymllib64-linux
NOTE: test_assimp (assimp.BuildAssimp)
NOTE:  ... ok
NOTE: test_cpio (buildcpio.BuildCpioTest)
NOTE:  ... ok
NOTE: test_epoxy (buildepoxy.EpoxyTest)
NOTE:  ... ok
NOTE: test_galculator (buildgalculator.GalculatorTest)
NOTE:  ... skipped "GalculatorTest class: SDK don't support gtk+3"
GalculatorTest class: SDK don't support gtk+3
NOTE: test_lzip (buildlzip.BuildLzipTest)
NOTE:  ... ok
NOTE: test_gcc_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_gpp2_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_gpp_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_make (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_perl (perl.PerlTest)
NOTE:  ... ok
NOTE: test_python3 (python.Python3Test)
NOTE:  ... ok
NOTE: ERROR
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'

NOTE: ----------------------------------------------------------------------
NOTE: Ran 11 tests in 215.552s
NOTE: FAILED
NOTE:  (errors=1, skipped=1)
RESULTS:
RESULTS - assimp.BuildAssimp.test_assimp: PASSED (141.45s)
RESULTS - buildcpio.BuildCpioTest.test_cpio: PASSED (39.05s)
RESULTS - buildepoxy.EpoxyTest.test_epoxy: PASSED (30.50s)
RESULTS - buildlzip.BuildLzipTest.test_lzip: PASSED (3.56s)
RESULTS - gcc.GccCompileTest.test_gcc_compile: PASSED (0.13s)
RESULTS - gcc.GccCompileTest.test_gpp2_compile: PASSED (0.20s)
RESULTS - gcc.GccCompileTest.test_gpp_compile: PASSED (0.50s)
RESULTS - gcc.GccCompileTest.test_make: PASSED (0.12s)
RESULTS - perl.PerlTest.test_perl: PASSED (0.02s)
RESULTS - python.Python3Test.test_python3: PASSED (0.03s)
RESULTS - buildgalculator.GalculatorTest.test_galculator: SKIPPED (0.00s)
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-mips64-pokymllib64-linux) - Ran 11 tests in 215.553s
core-image-minimal sdk - FAIL - Required tests failed (successes=10, skipped=1, failures=0, errors=1)
SDK testing environment: mips64-n32-poky-linux-gnun32
NOTE: test_assimp (assimp.BuildAssimp)
NOTE:  ... ok
NOTE: test_cpio (buildcpio.BuildCpioTest)
NOTE:  ... ok
NOTE: test_epoxy (buildepoxy.EpoxyTest)
NOTE:  ... ok
NOTE: test_galculator (buildgalculator.GalculatorTest)
NOTE:  ... skipped "GalculatorTest class: SDK don't support gtk+3"
GalculatorTest class: SDK don't support gtk+3
NOTE: test_lzip (buildlzip.BuildLzipTest)
NOTE:  ... ok
NOTE: test_gcc_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_gpp2_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_gpp_compile (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_make (gcc.GccCompileTest)
NOTE:  ... ok
NOTE: test_perl (perl.PerlTest)
NOTE:  ... ok
NOTE: test_python3 (python.Python3Test)
NOTE:  ... ok
NOTE: ERROR
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'

NOTE: ----------------------------------------------------------------------
NOTE: Ran 11 tests in 198.460s
NOTE: FAILED
NOTE:  (errors=1, skipped=1)
RESULTS:
RESULTS - assimp.BuildAssimp.test_assimp: PASSED (133.66s)
RESULTS - buildcpio.BuildCpioTest.test_cpio: PASSED (30.98s)
RESULTS - buildepoxy.EpoxyTest.test_epoxy: PASSED (29.42s)
RESULTS - buildlzip.BuildLzipTest.test_lzip: PASSED (3.36s)
RESULTS - gcc.GccCompileTest.test_gcc_compile: PASSED (0.11s)
RESULTS - gcc.GccCompileTest.test_gpp2_compile: PASSED (0.22s)
RESULTS - gcc.GccCompileTest.test_gpp_compile: PASSED (0.51s)
RESULTS - gcc.GccCompileTest.test_make: PASSED (0.15s)
RESULTS - perl.PerlTest.test_perl: PASSED (0.02s)
RESULTS - python.Python3Test.test_python3: PASSED (0.04s)
RESULTS - buildgalculator.GalculatorTest.test_galculator: SKIPPED (0.00s)
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-mips64-n32-poky-linux-gnun32) - Ran 11 tests in 198.461s
core-image-minimal sdk - FAIL - Required tests failed (successes=10, skipped=1, failures=0, errors=1)
ERROR: core-image-minimal - FAILED - check the task log and the commands log
DEBUG: Python function do_testsdk finished

  reply	other threads:[~2022-07-27 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26 14:24 [PATCH 1/3] native: Clear TUNE_FEATURES/ABIEXTENSION Richard Purdie
2022-07-26 14:24 ` [PATCH 2/3] oeqa/sdk: Add basic rust cargo test Richard Purdie
2022-07-27 16:48   ` Luca Ceresoli [this message]
2022-07-27 17:15     ` [OE-core] " Otavio Salvador
2022-07-26 14:24 ` [PATCH 3/3] populate_sdk: Add SDK toolchain language selection support Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220727184826.04eb9d05@booty \
    --to=luca.ceresoli@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=otavio@ossystems.com.br \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox