From: "Guillaume Tucker" <guillaume.tucker@collabora.com>
To: miguel.ojeda.sandonis@gmail.com
Cc: Collabora Kernel ML <kernel@collabora.com>,
"kernelci@groups.io" <kernelci@groups.io>
Subject: Re: Build-testing Rust support
Date: Mon, 7 Nov 2022 20:20:58 +0100 [thread overview]
Message-ID: <b40bf5ba-c18c-61b3-a00c-556487d7b5d2@collabora.com> (raw)
In-Reply-To: <CANiq72nh3RrQxnHv-evMQG0PHxv8yzMQufmqqqQ43Nqa-28wgA@mail.gmail.com>
On 15/01/2022 02:35, Miguel Ojeda wrote:
> Hi Guillaume,
>
> On Thu, Jan 13, 2022 at 9:32 PM Guillaume Tucker
> <guillaume.tucker@collabora.com> wrote:
>>
>> Please feel free to reply and Cc kernelci@groups.io if you're OK
>> with this, so we're all on the same page.
>
> Cc'ing :)
>
>> Yes, I don't see any major technical challenge with that. All
>> the KernelCI toolchains are managed in Docker images, so we could
>> easily have some with Rust.
>>
>> We have Kubernetes clusters donated by Google and Microsoft with
>> plenty of build resources, and I'm sure we could extend them if
>> needed for Rust. If we start with just linux-next and a couple
>> of CPU architectures, it shouldn't really have any measurable
>> impact on our current build throughput.
>
> Sounds great! Even if it is only a couple architectures, it will be
> helpful to start testing bigger / more realistic configs (currently we
> only build+boot test a couple of very small, fixed kernel configs on
> pre-merge in a GitHub CI).
>
>> Then hopefully we'll also find a way to have enough people
>> available to make it sustainable. Ideally, I believe someone
>> involved with Rust support in the kernel should be the primary
>> maintainer for this. We're already starting to see kernel
>> maintainers and developers contribute to KernelCI and make
>> it "their own" in a way. We could always start small with just a
>> few builds per kernel revision and then find ways to scale up.
>
> Of course -- please let me know anything I can do to help. By
> maintaining, do you mean e.g. preparing the Docker images, submitting
> needed changes to the KernelCI config like the yml files, ...?
>
>> The Docker images with the toolchains are typically updated once
>> a week, in particular this means we always have the latest
>> LLVM/Clang release from .deb packages. We could do the same with
>> Rust, to have the latest toolchain version updated at the same
>> frequency. Using binary packages would be better than building
>> it from source though, but we could manage either way if needed.
>
> Every week fits perfectly what we would need. While Debian does not
> have the latest Rust compilers available (not even in Sid [2], as far
> as I can see), installing the official Rust binaries should the easy
> (or preparing a .deb out of them if needed, I guess). Compiling from
> source is also fairly easy.
>
> [2] https://packages.debian.org/sid/rustc
>
>> Missing [1] link?
>
> Oops, sorry: [1] https://packages.fedoraproject.org/pkgs/rust/rust/
>
>> You knocked on the right door :) Thanks for getting in touch.
>
> Not at all -- thanks to you!
>
>> This all sounds great, we knew we would have to support Rust at
>> some point and it seems like that time has now come. Having some
>> help with getting the exact commands, compiler flags or any
>> gotchas for each architecture would probably save us a lot of
>> time. Then integrating that in the KernelCI pipeline shouldn't
>> be too difficult (famous last words).
>
> Of course, please let me know anything I can do to help (see above as well).
>
> On commands etc., I am more than happy to help setting everything up
> (if you want to take a look on your own:
> https://github.com/Rust-for-Linux/linux/blob/rust/Documentation/rust/quick-start.rst
> covers the build requirements).
>
> And, indeed, given the very small testing space we cover on our side
> so far (and how experimental things are), I guess it is likely we hit
> something, somewhere. :) But, well, that is part of the exercise -- to
> discover anything that might be broken!
>
>> We have weekly KernelCI meetings on Tuesdays at 17:00 UTC, maybe
>> you could join one day to discuss this a bit further? We can
>> also use the mailing lists of course.
>
> Sure, I would be glad to join!
FYI there's now an open PR on GitHub:
https://github.com/kernelci/kernelci-core/pull/1468
Would you or other maintainers involved with Rust in the kernel
be available to help and keep this working in the long term? I
suspect the build commands and toolchains will occasionally need
to be updated. Also someone needs to look into the results to
make the whole thing worthwhile.
Best wishes,
Guillaume
next prev parent reply other threads:[~2022-11-07 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CANiq72k7zix1TiK0_Zr9nu9sG7SAQRt4GRE5y=_4Um6=djZmJw@mail.gmail.com>
[not found] ` <e702e47e-1fee-2613-1909-194a72d21736@collabora.com>
2022-01-15 1:35 ` Build-testing Rust support Miguel Ojeda
2022-11-07 19:20 ` Guillaume Tucker [this message]
2022-11-08 10:28 ` Miguel Ojeda
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=b40bf5ba-c18c-61b3-a00c-556487d7b5d2@collabora.com \
--to=guillaume.tucker@collabora.com \
--cc=kernel@collabora.com \
--cc=kernelci@groups.io \
--cc=miguel.ojeda.sandonis@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox