Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [next] listing of tests is broken
Date: Mon, 12 Feb 2018 09:07:25 +0100	[thread overview]
Message-ID: <20180212090725.323e5a6c@windsurf.lan> (raw)
In-Reply-To: <5a80f162d1e9e_5e516a461c185b1@ultri3.mail>

Hello,

On Sun, 11 Feb 2018 23:44:02 -0200, Ricardo Martincoski wrote:

> The correct fix IMO is to change the Rust test case.

Agreed.

> With the current code, nose2 will collect 3 test cases from the file:
> TestRustBase, TestRustBin and TestRust. It happens because all three have a
> method called test_something. But TestRustBase is not a test case by itself.
> 
> So we should move the test_* method from the base class to the 2 derived classes
> (yes, duplicating the code), like it is already done by the 'init' test cases.
> 
> An alternative solution is to rename the method in the base class to not start
> with test_ and create a test_run method in each derived class calling it. The
> method is short, so I don't think we need to do this.

Yes, duplicating would be fine for now.

> With the listing of tests broken, also 'make .gitlab-ci.yml' is broken. Based
> only on this I would say we should fix that on master branch. But see below...
> And also the update to .gitlab-ci.yml must be committed. This way we fix
> check-gitlab-ci.yml in GitLab:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/52000035
> 
> But after fixing those, the TestRustBin still fails at GitLab:
> https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/52092045
> from test_rust.py, line 39, like this:
> >SystemError: Cargo init failed  
> The build.log ends in these messages:
> >error: Failed to create project `hello-world` at `/tmp/tmp_US3dA-br2-testing-rust/hello-world`
> >
> >Caused by:
> >  could not determine the current user, please set $USER  
> The same test case does not fail for me when it runs outside the Docker image,
> so I guess we will need to tweak the Docker image.
> 
> 
> I don't have the result yet for TestRust in GitLab. It is still running (105
> minutes and counting) by the time I write this.
> https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/52092044
> But running outside the Docker image it also passes.
> 
> ... Would it be the case to revert only the rust test case only from the master
> branch? If yes, extra care must be taken when merging the branches to not remove
> it from the next branch too.

I'd say, we fix the test enumeration problem, and then let the Rust
test case fail. Hopefully Eric Le Bihan (added in Cc) will chime in and
fix the Rust test failure.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com

  reply	other threads:[~2018-02-12  8:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09  8:44 [Buildroot] [next] listing of tests is broken Yegor Yefremov
2018-02-09  8:54 ` Thomas Petazzoni
2018-02-09  9:04   ` Yegor Yefremov
2018-02-09 10:06     ` Thomas Petazzoni
2018-02-12  1:44       ` Ricardo Martincoski
2018-02-12  8:07         ` Thomas Petazzoni [this message]
2018-02-12 21:02           ` [Buildroot] [PATCH] support/testing: fix job check-gitlab-ci.yml Ricardo Martincoski
2018-02-13  5:02             ` Yegor Yefremov
2018-02-13 22:12             ` Thomas Petazzoni

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=20180212090725.323e5a6c@windsurf.lan \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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