]> git.ipfire.org Git - thirdparty/qemu.git/commit
ci: Fix build-previous-qemu when the version tag is absent
authorFabiano Rosas <farosas@suse.de>
Tue, 13 May 2025 13:33:52 +0000 (10:33 -0300)
committerPeter Xu <peterx@redhat.com>
Tue, 20 May 2025 15:26:32 +0000 (11:26 -0400)
commitd5845228b41dbf44f85744e64c3c1744f76a368d
tree85ad8e98e1e7ed32068e103a6d55b7cde10c0090
parente74598a981afe39d6f4951cd5d23101f537957bb
ci: Fix build-previous-qemu when the version tag is absent

Stefan reports that during QEMU release, pushing a series with the
VERSION bump commit, but not pushing the new git tag in the same
command will cause a failure of the build-previous-qemu job at the git
fetch step.

Since the job is intended to produce a build of the previous QEMU
version for consumption by the migration-compat-* jobs, there's no
reason to produce a build of the release commit because the migration
job would end up testing the release against itself.

Skip the job when VERSION contains the newly release version number.

I'm opting for 'exit 0' for both the build and the test jobs because
allow_failure would mask any real error in the jobs. It also avoids
having an orange ! on every release pipeline.

Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20250513133353.23022-3-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
.gitlab-ci.d/buildtest.yml