migration, ci: Tweaks to migration-compat jobs
v2 cover migration, ci: Tweaks to migration-compat jobs
- changed migration-compat job to also check VERSION [peterx]
v1:
https://lore.kernel.org/r/[email protected]
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(-)
Signature · 1 line
2.35.3
PATCH v2 1/3 ci: Re-enable python subtests in qtest migration suite
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.
--- .gitlab-ci.d/buildtest.yml | 8 -------- 1 file changed, 8 deletions(-)
.gitlab-ci.d/buildtest.yml +0 -8
@@ -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
Signature · 1 line
2.35.3
PATCH v2 2/3 ci: Fix build-previous-qemu when the version tag is absent
In reply to Fabiano RosasStefan 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.
--- .gitlab-ci.d/buildtest.yml | 8 ++++++++ 1 file changed, 8 insertions(+)
.gitlab-ci.d/buildtest.yml +8 -0
@@ -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.
Signature · 1 line
2.35.3
PATCH v2 3/3 ci: Reduce the size of artifacts for build-previous-qemu
In reply to Fabiano RosasThe 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.
--- .gitlab-ci.d/buildtest.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
.gitlab-ci.d/buildtest.yml +5 -6
@@ -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:
Signature · 1 line
2.35.3
Peter Xu
AppliedQuoted 8 lines · Fabiano Rosas
- changed migration-compat job to also check VERSION [peterx]
v1:
https://lore.kernel.org/r/[email protected]A couple of cleanups to the migration jobs, plus a fix for an issue that may happen during the QEMU release.
Quoted 7 lines
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!
Signature · 1 line
Peter Xu