From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, manos.pitsidianakis@linaro.org,
kwolf@redhat.com, junjie.mao@hotmail.com, zhao1.liu@intel.com,
qemu-rust@nongnu.org
Subject: Re: [RFC PATCH 11/11] rust: ci: add job that runs Rust tools
Date: Fri, 8 Nov 2024 18:12:58 +0000 [thread overview]
Message-ID: <Zy5UjQDWjYa9WtR6@redhat.com> (raw)
In-Reply-To: <20241108180139.117112-12-pbonzini@redhat.com>
On Fri, Nov 08, 2024 at 07:01:39PM +0100, Paolo Bonzini wrote:
> Code checks, as well as documentation generation, are not yet tied
> to "make check" because they need new version of the Rust toolchain
> (even nightly in the case of "rustfmt"). Run them in CI using the
> existing nightly-Rust container.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> .gitlab-ci.d/buildtest-template.yml | 14 ++++++++++++++
> .gitlab-ci.d/buildtest.yml | 14 ++++++++++++++
> .../docker/dockerfiles/fedora-rust-nightly.docker | 4 ++++
> tests/lcitool/refresh | 4 ++++
> 4 files changed, 36 insertions(+)
>
> diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml
> index 39da7698b09..612e968ff19 100644
> --- a/.gitlab-ci.d/buildtest-template.yml
> +++ b/.gitlab-ci.d/buildtest-template.yml
> @@ -79,6 +79,20 @@
> - $MAKE NINJA=":" $MAKE_CHECK_ARGS
> - section_end test
>
> +.rust_test_job_template:
> + extends: .base_job_template
> + stage: test
> + image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
> + script:
> + - source scripts/ci/gitlab-ci-section
> + - section_start test "Running Rust code checks"
> + - cd build
> + - pyvenv/bin/meson devenv -w ../rust ${CARGO-cargo} fmt --check
> + - make clippy
> + - pyvenv/bin/meson devenv -w ../rust ${CARGO-cargo} doc --no-deps
> + - pyvenv/bin/meson devenv -w ../rust ${CARGO-cargo} test --doc
> + - section_end test
> +
I'd suggest that the static checks "fmt" and "doc" should be separated
from the dynamic (unit test) check in "tests", and that the former
should be in a job defined in the static-checks.yml file.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next parent reply other threads:[~2024-11-08 18:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241108180139.117112-1-pbonzini@redhat.com>
[not found] ` <20241108180139.117112-12-pbonzini@redhat.com>
2024-11-08 18:12 ` Daniel P. Berrangé [this message]
[not found] ` <20241108180139.117112-3-pbonzini@redhat.com>
2024-11-12 3:02 ` [RFC PATCH 02/11] rust: build: move rustc_args.py invocation to individual crates Junjie Mao
[not found] ` <20241108180139.117112-6-pbonzini@redhat.com>
[not found] ` <SY0P300MB1026324D1571BBD2E001536695592@SY0P300MB1026.AUSP300.PROD.OUTLOOK.COM>
[not found] ` <CABgObfZUURf_QpdtqzmGF567Uk8obxdQ1P_WeVN1Ag=uG+J46A@mail.gmail.com>
2024-11-12 5:40 ` [RFC PATCH 05/11] rust: cargo: store desired warning levels in workspace Cargo.toml Junjie Mao
[not found] ` <20241108180139.117112-2-pbonzini@redhat.com>
[not found] ` <SY0P300MB102699E99096F482F06296EF95592@SY0P300MB1026.AUSP300.PROD.OUTLOOK.COM>
[not found] ` <CABgObfb9ujpoRrNUUqyiAefSfTOWSV-SGmo2YrSoMdfxBeAD9A@mail.gmail.com>
2024-11-12 10:10 ` [RFC PATCH 01/11] rust: qemu_api: do not disable lints outside bindgen-generated code Junjie Mao
2024-11-12 18:47 ` Paolo Bonzini
2024-11-13 6:46 ` Junjie Mao
2024-11-13 10:41 ` Paolo Bonzini
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=Zy5UjQDWjYa9WtR6@redhat.com \
--to=berrange@redhat.com \
--cc=junjie.mao@hotmail.com \
--cc=kwolf@redhat.com \
--cc=manos.pitsidianakis@linaro.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-rust@nongnu.org \
--cc=zhao1.liu@intel.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;
as well as URLs for NNTP newsgroup(s).