All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs
@ 2025-05-13 13:33 Fabiano Rosas
  2025-05-13 13:33 ` [PATCH v2 1/3] ci: Re-enable python subtests in qtest migration suite Fabiano Rosas
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fabiano Rosas @ 2025-05-13 13:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Xu

- changed migration-compat job to also check VERSION [peterx]

v1:
https://lore.kernel.org/r/20250507155835.31074-1-farosas@suse.de

A couple of cleanups to the migration jobs, plus a fix for an issue
that may happen during the QEMU release.

Fabiano Rosas (3):
  ci: Re-enable python subtests in qtest migration suite
  ci: Fix build-previous-qemu when the version tag is absent
  ci: Reduce the size of artifacts for build-previous-qemu

 .gitlab-ci.d/buildtest.yml | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

-- 
2.35.3



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/3] ci: Re-enable python subtests in qtest migration suite
  2025-05-13 13:33 [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Fabiano Rosas
@ 2025-05-13 13:33 ` Fabiano Rosas
  2025-05-13 13:33 ` [PATCH v2 2/3] ci: Fix build-previous-qemu when the version tag is absent Fabiano Rosas
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Fabiano Rosas @ 2025-05-13 13:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Xu

The migration compatibility tests have been running with the PYTHON
variable unset to avoid running a broken test. The faulty test has
since been removed, so we can enable the python tests once again.

Aside from the broken test, only one other test uses python and I have
been running it locally ever since, so this commit should not expose
any new bug.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
 .gitlab-ci.d/buildtest.yml | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index 248aaed137..fbad34138c 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -227,14 +227,6 @@ build-previous-qemu:
     # testing an old QEMU against new features/tests that it is not
     # compatible with.
     - cd build-previous
-    # Don't allow python-based tests to run. The
-    # vmstate-checker-script test has a race that causes it to fail
-    # sometimes. It cannot be fixed it because this job runs the test
-    # from the old QEMU version. The test will be removed on master,
-    # but this job will only see the change in the next release.
-    #
-    # TODO: remove this line after 9.2 release
-    - unset PYTHON
     # old to new
     - QTEST_QEMU_BINARY_SRC=./qemu-system-${TARGET}
           QTEST_QEMU_BINARY=../build/qemu-system-${TARGET} ./tests/qtest/migration-test
-- 
2.35.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/3] ci: Fix build-previous-qemu when the version tag is absent
  2025-05-13 13:33 [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Fabiano Rosas
  2025-05-13 13:33 ` [PATCH v2 1/3] ci: Re-enable python subtests in qtest migration suite Fabiano Rosas
@ 2025-05-13 13:33 ` Fabiano Rosas
  2025-05-13 13:33 ` [PATCH v2 3/3] ci: Reduce the size of artifacts for build-previous-qemu Fabiano Rosas
  2025-05-13 13:37 ` [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Peter Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Fabiano Rosas @ 2025-05-13 13:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Xu, Stefan Hajnoczi

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>
---
 .gitlab-ci.d/buildtest.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index fbad34138c..b4e39fd7c1 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -203,6 +203,11 @@ build-previous-qemu:
     GIT_FETCH_EXTRA_FLAGS: --prune --quiet
   before_script:
     - source scripts/ci/gitlab-ci-section
+    # Skip if this series contains the release bump commit. During the
+    # release process there might be a window of commits when the
+    # version tag is not yet present in the remote and git fetch would
+    # fail.
+    - if grep -q "\.0$" VERSION; then exit 0; fi
     - export QEMU_PREV_VERSION="$(sed 's/\([0-9.]*\)\.[0-9]*/v\1.0/' VERSION)"
     - git remote add upstream https://gitlab.com/qemu-project/qemu
     - git fetch upstream refs/tags/$QEMU_PREV_VERSION:refs/tags/$QEMU_PREV_VERSION
@@ -223,6 +228,9 @@ build-previous-qemu:
     IMAGE: opensuse-leap
     MAKE_CHECK_ARGS: check-build
   script:
+    # Skip for round release numbers, this job is only relevant for
+    # testing a development tree.
+    - if grep -q "\.0$" VERSION; then exit 0; fi
     # Use the migration-tests from the older QEMU tree. This avoids
     # testing an old QEMU against new features/tests that it is not
     # compatible with.
-- 
2.35.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 3/3] ci: Reduce the size of artifacts for build-previous-qemu
  2025-05-13 13:33 [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Fabiano Rosas
  2025-05-13 13:33 ` [PATCH v2 1/3] ci: Re-enable python subtests in qtest migration suite Fabiano Rosas
  2025-05-13 13:33 ` [PATCH v2 2/3] ci: Fix build-previous-qemu when the version tag is absent Fabiano Rosas
@ 2025-05-13 13:33 ` Fabiano Rosas
  2025-05-13 13:37 ` [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Peter Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Fabiano Rosas @ 2025-05-13 13:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Xu

The build-previous-qemu job is intented to produce a build of the
previous QEMU release for consumption by the migration-compat-*
jobs. Keep only the pieces of the build that are necessary.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
 .gitlab-ci.d/buildtest.yml | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index b4e39fd7c1..ca1a9c6f70 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -188,12 +188,11 @@ build-previous-qemu:
     when: on_success
     expire_in: 2 days
     paths:
-      - build-previous
-    exclude:
-      - build-previous/**/*.p
-      - build-previous/**/*.a.p
-      - build-previous/**/*.c.o
-      - build-previous/**/*.c.o.d
+      - build-previous/qemu-bundle
+      - build-previous/qemu-system-aarch64
+      - build-previous/qemu-system-x86_64
+      - build-previous/tests/qtest/migration-test
+      - build-previous/scripts
   needs:
     job: amd64-opensuse-leap-container
   variables:
-- 
2.35.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs
  2025-05-13 13:33 [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Fabiano Rosas
                   ` (2 preceding siblings ...)
  2025-05-13 13:33 ` [PATCH v2 3/3] ci: Reduce the size of artifacts for build-previous-qemu Fabiano Rosas
@ 2025-05-13 13:37 ` Peter Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Xu @ 2025-05-13 13:37 UTC (permalink / raw)
  To: Fabiano Rosas; +Cc: qemu-devel

On Tue, May 13, 2025 at 10:33:50AM -0300, Fabiano Rosas wrote:
> - changed migration-compat job to also check VERSION [peterx]
> 
> v1:
> https://lore.kernel.org/r/20250507155835.31074-1-farosas@suse.de
> 
> A couple of cleanups to the migration jobs, plus a fix for an issue
> that may happen during the QEMU release.
> 
> Fabiano Rosas (3):
>   ci: Re-enable python subtests in qtest migration suite
>   ci: Fix build-previous-qemu when the version tag is absent
>   ci: Reduce the size of artifacts for build-previous-qemu
> 
>  .gitlab-ci.d/buildtest.yml | 27 +++++++++++++--------------
>  1 file changed, 13 insertions(+), 14 deletions(-)

queued, thanks!

-- 
Peter Xu



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-13 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 13:33 [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Fabiano Rosas
2025-05-13 13:33 ` [PATCH v2 1/3] ci: Re-enable python subtests in qtest migration suite Fabiano Rosas
2025-05-13 13:33 ` [PATCH v2 2/3] ci: Fix build-previous-qemu when the version tag is absent Fabiano Rosas
2025-05-13 13:33 ` [PATCH v2 3/3] ci: Reduce the size of artifacts for build-previous-qemu Fabiano Rosas
2025-05-13 13:37 ` [PATCH v2 0/3] migration, ci: Tweaks to migration-compat jobs Peter Xu

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.