qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Richard Henderson" <richard.henderson@linaro.org>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Yonggang Luo" <luoyonggang@gmail.com>,
	"Peter Maydell" <peter.maydell@linaro.org>
Subject: [PULL 03/10] gitlab: purge msys pacman cache
Date: Thu, 16 Oct 2025 18:25:54 +0200	[thread overview]
Message-ID: <20251016162601.442557-4-thuth@redhat.com> (raw)
In-Reply-To: <20251016162601.442557-1-thuth@redhat.com>

From: Daniel P. Berrangé <berrange@redhat.com>

For the Windows msys2 CI job we install many packages using pacman
and use the GitLab cache to preserve the pacman cache across CI
runs. While metadata still needs downloading, this avoids pacman
re-downloading packages from msys2 if they have not changed.

The problem is that pacman never automatically purges anything
from its package cache. Thus the GitLab cache is growing without
bound and packing/unpacking the cache is consuming an increasing
amount of time in the CI job.

If we run 'pacman -Sc' /after/ installing our desired package set,
it will purge any cached downloaded packages that are not matching
any installed package.

This will (currently) cap the pacman download cache at approx
256 MB.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20251010160545.144760-1-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 .gitlab-ci.d/windows.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml
index 1e6a01bd9ac..6e1135d8b86 100644
--- a/.gitlab-ci.d/windows.yml
+++ b/.gitlab-ci.d/windows.yml
@@ -87,6 +87,7 @@ msys2-64bit:
       mingw-w64-x86_64-pkgconf
       mingw-w64-x86_64-python
       mingw-w64-x86_64-zstd"
+  - .\msys64\usr\bin\bash -lc "pacman -Sc --noconfirm"
   - Write-Output "Running build at $(Get-Date -Format u)"
   - $env:JOBS = $(.\msys64\usr\bin\bash -lc nproc)
   - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-- 
2.51.0



  parent reply	other threads:[~2025-10-16 16:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-16 16:25 [PULL 00/10] Various testing and s390x patches Thomas Huth
2025-10-16 16:25 ` [PULL 01/10] python/qemu: Replace some remaining "avocados" with "functional tests" Thomas Huth
2025-10-16 16:25 ` [PULL 02/10] tests/functional/aarch64: Drop some sbsaref_alpine tests Thomas Huth
2025-10-16 16:25 ` Thomas Huth [this message]
2025-10-16 16:25 ` [PULL 04/10] tests/functional: Set current time stamp of assets when using them Thomas Huth
2025-10-16 16:25 ` [PULL 05/10] tests: Evict stale files in the functional download cache after a while Thomas Huth
2025-10-16 16:25 ` [PULL 06/10] tests/functional/alpha: Remove superfluous fetch() line from the clipper test Thomas Huth
2025-10-16 16:25 ` [PULL 07/10] tests/functional: remove use of getLogger in reverse debuging Thomas Huth
2025-10-16 16:25 ` [PULL 08/10] tests/functional: ensure GDB client is stopped on error Thomas Huth
2025-10-16 16:26 ` [PULL 09/10] target/s390x/mmu_helper: Simplify s390_cpu_virt_mem_rw() logic Thomas Huth
2025-10-16 16:26 ` [PULL 10/10] target/s390x/mmu_helper: Do not ignore address_space_rw() errors Thomas Huth
2025-10-17 15:12 ` [PULL 00/10] Various testing and s390x patches Richard Henderson

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=20251016162601.442557-4-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=berrange@redhat.com \
    --cc=luoyonggang@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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).