From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, berrange@redhat.com
Subject: [RFC PATCH 0/2] ci: allow running Coverity Scan uploads via GitLab
Date: Mon, 4 Mar 2024 17:06:29 -0500 [thread overview]
Message-ID: <20240304220631.943130-1-pbonzini@redhat.com> (raw)
The machine that is used to upload QEMU builds to Coverity is used daily
as a development machine by Emanuele and myself, and as a result sometimes
its podman/docker setup gets messed up. When this happens, Coverity
uploads might stop for extended periods of time.
In the interest of tightening this and of depending less on infrastructure
maintained by specific people, replace the manually-managed crontab
entry with a new job in GitLab's CI; this is also what Libvirt does.
The rules to trigger it are a bit different compared to other jobs:
* on mainline, it only runs for the default (master) branch and only
as part of scheduled pipeline runs. A rule is added to remove all
other jobs when running from a scheduled pipeline.
* on forks, it is always manual (and only appears if QEMU_CI=1 or 2,
like other build jobs)
For now I implemented these rules directly in the buildtest.yml file,
but it is also possible to add a QEMU_JOB_SCHEDULE variable.
Example of a working run: https://gitlab.com/bonzini/qemu/-/jobs/6312777493
Example of a run that is over quota: https://gitlab.com/bonzini/qemu/-/jobs/6315895373
This run shows an attempt to cancel the job if the quota is exceeded, but
it does not work (it worked on GitLab <17.0) so I removed it from the patch.
Paolo
Paolo Bonzini (2):
run-coverity-scan: add --check-upload-only option
gitlab-ci: add manual job to run Coverity
.gitlab-ci.d/base.yml | 4 ++
.gitlab-ci.d/buildtest.yml | 36 +++++++++++++++++
scripts/coverity-scan/run-coverity-scan | 51 ++++++++++++++++++-------
3 files changed, 78 insertions(+), 13 deletions(-)
--
2.39.1
next reply other threads:[~2024-03-04 22:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-04 22:06 Paolo Bonzini [this message]
2024-03-04 22:06 ` [RFC PATCH 1/2] run-coverity-scan: add --check-upload-only option Paolo Bonzini
2024-03-04 22:06 ` [RFC PATCH 2/2] gitlab-ci: add manual job to run Coverity Paolo Bonzini
2024-03-05 8:52 ` Daniel P. Berrangé
2024-03-05 11:50 ` 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=20240304220631.943130-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=berrange@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).