All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alex Kiernan <alex.kiernan@gmail.com>
Cc: openembedded-core@lists.openembedded.org, "Kokkonda,
	Sundeep" <Sundeep.Kokkonda@windriver.com>,
	Randy MacLeod <randy.macleod@windriver.com>
Subject: Re: [OE-Core][PATCH v4 00/11] Add rust runtime tests
Date: Thu, 29 Dec 2022 12:53:32 +0000	[thread overview]
Message-ID: <98901e74ee915574e306c3c0896354d8a4565778.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAO5Uq5S1MvMr1rM36ovf-+_xPmUq8q6BzBiY20=SYsztj6i9VA@mail.gmail.com>

On Wed, 2022-12-28 at 14:51 +0000, Alex Kiernan wrote:
> On Wed, Dec 28, 2022 at 12:01 AM Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > 
> > On Tue, 2022-12-27 at 18:09 +0000, Alex Kiernan wrote:
> > > On Mon, Dec 26, 2022 at 6:33 PM Richard Purdie
> > > <richard.purdie@linuxfoundation.org> wrote:
> > > > 
> > > > On Sun, 2022-12-25 at 21:59 +0000, Alex Kiernan wrote:
> > > > > This series adds runtime tests for rust and cargo, merges (most of) the
> > > > > include files into the base recipes and fixes target cargo builds.
> > > > > 
> > > > > Also add SDK_TOOLCHAIN_LANGS for selection of target toolchains as part
> > > > > of packagegroup-core-sdk.
> > > > > 
> > > > > Changes in v4:
> > > > > - Fixup `__stack_chk_fail_local` in musl-x86
> > > > > - Add crossbeam atomics fixes for ppc/mips
> > > > > 
> > > > > Changes in v3:
> > > > > - Switch to packagegroup-core-sdk driven from TARGET_TOOLCHAIN_LANGS
> > > > >   (which defaults to SDK_TOOLCHAIN_LANGS)
> > > > > 
> > > > > Changes in v2:
> > > > > - Drop rust.inc/rust.bb merge, not actually made use of in the change
> > > > >   set
> > > > > - Reorder so cargo test goes after build fixes
> > > > > 
> > > > > Alex Kiernan (11):
> > > > >   rust-llvm: Merge .inc into .bb
> > > > >   rust-llvm: Update LLVM_VERSION to match embedded version
> > > > >   packagegroup-rust-sdk-target: Add Rust SDK target packagegroup
> > > > >   packagegroup-core-sdk: Add SDK toolchain language selection support
> > > > >   cargo: Merge .inc into .bb
> > > > >   cargo: Extend DEBUG_PREFIX_MAP to cover vendor
> > > > >   rust: Merge .inc into .bb
> > > > >   rust: Move musl-x86 fix for `__stack_chk_fail_local` to rust-source
> > > > >   cargo: Override crossbeam-utils with 0.8.14
> > > > >   packagegroup-rust-sdk-target: Add cargo
> > > > >   oeqa/runtime/rust: Add cargo test
> > > > 
> > > > Looks much better thanks. There was one remaining issue which showed up
> > > > in testing with a reproducibility issue:
> > > > 
> > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/2119/steps/12/logs/stdio
> > > > 
> > > > We did already have an open bug for a rust reproducibility issue and we
> > > > excluded it from the tests until we could get to the bottom of it, I
> > > > suspect cargo may have the same issue. It frustrates me a bit as it is
> > > > the one reproducibility exclusion for core.
> > > > 
> > > > Ideally we would fix it but excluding it from the tests and noting it
> > > > in the bug may be an option if it is the same issue. It may be simpler
> > > > to reproduce and fix the issue with cargo too.
> > > > 
> > > > Cc: Sundeep who as been looking at it.
> > > > 
> > > 
> > > Just reading the ticket and the upstream ones... the upstream ticket
> > > is closed as remap path fixes it (which it looks like it does to me),
> > > there are build paths embedded in the build directory which don't get
> > > caught by that, but they're in thing like bootstrap which isn't
> > > packaged (which may or may not be an issue, but I'm suspecting not);
> > > it kinda feels like we're missing something.
> > > 
> > > Can I get hold of the cargo packages generated here to have a poke at them?
> > 
> > Yes. The key line in the log is:
> > 
> > 022-12-26 11:56:30,555 - oe-selftest - INFO - Non-reproducible packages will be copied to /srv/autobuilder/autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20221226-0vk5efsk
> > 
> > i.e.
> > 
> > https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20221226-0vk5efsk
> > 
> > where you'll find both the package files and diffoscope output:
> > 
> > https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20221226-0vk5efsk/packages/diff-html/
> > 
> > which seems to be saying the symbol table changed size which is
> > unusual. I didn't look very deeply.
> > 
> 
> Upstream has this ticket which, given how I did the patching for
> cargo, feels like the right kind of thing (rust has something similar
> out of the box):
> 
> https://github.com/rust-lang/rust/issues/98185
> 
> I've switched it around so that it uses local patching rather than
> cargo patching, which if it is this, seems like it might resolve it.

It was a different issue, thanks for tracking that down and fixing it!

The tests all passed so I merged the v5 series. Thanks for working
through things, I think this makes our rust situation much more robust
and should help future proof it :)

Cheers,

Richard


  reply	other threads:[~2022-12-29 12:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-25 21:59 [OE-Core][PATCH v4 00/11] Add rust runtime tests Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 01/11] rust-llvm: Merge .inc into .bb Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 02/11] rust-llvm: Update LLVM_VERSION to match embedded version Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 03/11] packagegroup-rust-sdk-target: Add Rust SDK target packagegroup Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 04/11] packagegroup-core-sdk: Add SDK toolchain language selection support Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 05/11] cargo: Merge .inc into .bb Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 06/11] cargo: Extend DEBUG_PREFIX_MAP to cover vendor Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 07/11] rust: Merge .inc into .bb Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 08/11] rust: Move musl-x86 fix for `__stack_chk_fail_local` to rust-source Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 09/11] cargo: Override crossbeam-utils with 0.8.14 Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 10/11] packagegroup-rust-sdk-target: Add cargo Alex Kiernan
2022-12-25 21:59 ` [OE-Core][PATCH v4 11/11] oeqa/runtime/rust: Add cargo test Alex Kiernan
2022-12-26 18:33 ` [OE-Core][PATCH v4 00/11] Add rust runtime tests Richard Purdie
2022-12-27 18:09   ` Alex Kiernan
2022-12-28  0:00     ` Richard Purdie
2022-12-28 14:51       ` Alex Kiernan
2022-12-29 12:53         ` Richard Purdie [this message]
2022-12-29 19:25           ` Alex Kiernan
     [not found] <17342835AC830076.27785@lists.openembedded.org>
2022-12-26  9:41 ` Alex Kiernan
2022-12-26 10:27   ` Richard Purdie
     [not found]   ` <17345100F004118F.27785@lists.openembedded.org>
2022-12-26 11:15     ` 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=98901e74ee915574e306c3c0896354d8a4565778.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=Sundeep.Kokkonda@windriver.com \
    --cc=alex.kiernan@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=randy.macleod@windriver.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.