[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-9.2.4 31/34] gitlab: use --refetch in check-patch/check-dco jobs
From: |
Michael Tokarev |
Subject: |
[Stable-9.2.4 31/34] gitlab: use --refetch in check-patch/check-dco jobs |
Date: |
Wed, 14 May 2025 15:57:53 +0300 |
From: Daniel P. Berrangé <berrange@redhat.com>
When gitlab initializes the repo checkout for a CI job, it will have
done a shallow clone with only partial history. Periodically the objects
that are omitted cause trouble with the check-patch/check-dco jobs. This
is exhibited as reporting strange errors being unable to fetch certain
objects that are known to exist.
Passing the --refetch flag to 'git fetch' causes it to not assume the
local checkout has all common objects and thus re-fetch everything that
is needed. This appears to solve the check-patch/check-dco job failures.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250225110525.2209854-1-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit d5d028eee38d4107821c0d2cfdb0dd04b9ba5ca3)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/.gitlab-ci.d/check-dco.py b/.gitlab-ci.d/check-dco.py
index 70dec7d6ee..2fd56683dc 100755
--- a/.gitlab-ci.d/check-dco.py
+++ b/.gitlab-ci.d/check-dco.py
@@ -21,7 +21,7 @@
print(f"adding upstream git repo @ {repourl}")
subprocess.check_call(["git", "remote", "add", "check-dco", repourl])
-subprocess.check_call(["git", "fetch", "check-dco", "master"])
+subprocess.check_call(["git", "fetch", "--refetch", "check-dco", "master"])
ancestor = subprocess.check_output(["git", "merge-base",
"check-dco/master", "HEAD"],
diff --git a/.gitlab-ci.d/check-patch.py b/.gitlab-ci.d/check-patch.py
index 68c549a146..be13e6f77d 100755
--- a/.gitlab-ci.d/check-patch.py
+++ b/.gitlab-ci.d/check-patch.py
@@ -24,7 +24,7 @@
# base for the user's branch. We thus need to figure out a common
# ancestor between the user's branch and current git master.
subprocess.check_call(["git", "remote", "add", "check-patch", repourl])
-subprocess.check_call(["git", "fetch", "check-patch", "master"])
+subprocess.check_call(["git", "fetch", "--refetch", "check-patch", "master"])
ancestor = subprocess.check_output(["git", "merge-base",
"check-patch/master", "HEAD"],
--
2.39.5
- [Stable-9.2.4 11/34] tcg: Allocate TEMP_VAL_MEM frame in temp_load(), (continued)
- [Stable-9.2.4 11/34] tcg: Allocate TEMP_VAL_MEM frame in temp_load(), Michael Tokarev, 2025/05/14
- [Stable-9.2.4 12/34] target/ppc: Big-core scratch register fix, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 10/34] hw/i386/amd_iommu: Assign pci-id 0x1419 for the AMD IOMMU device, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 13/34] target/ppc: Fix SPRC/SPRD SPRs for P9/10, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 14/34] scsi-disk: Apply error policy for host_status errors again, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 15/34] smbios: Fix buffer overrun when using path= option, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 16/34] plugins/loader: fix deadlock when resetting/uninstalling a plugin, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 17/34] Fix objdump output parser in "nsis.py", Michael Tokarev, 2025/05/14
- [Stable-9.2.4 18/34] Revert "virtio-net: Copy received header to buffer", Michael Tokarev, 2025/05/14
- [Stable-9.2.4 22/34] hw/core/cpu: gdb_arch_name string should not be freed, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 31/34] gitlab: use --refetch in check-patch/check-dco jobs,
Michael Tokarev <=
- [Stable-9.2.4 23/34] target/mips: Fix MIPS16e translation, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 24/34] meson: Use has_header_symbol() to check getcpu(), Michael Tokarev, 2025/05/14
- [Stable-9.2.4 25/34] meson: Remove CONFIG_STATX and CONFIG_STATX_MNT_ID, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 26/34] accel/tcg: Don't use TARGET_LONG_BITS in decode_sleb128, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 19/34] target/i386/hvf: fix lflags_to_rflags, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 30/34] target/i386: do not block singlestep for STI, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 20/34] target/avr: Improve decode of LDS, STS, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 21/34] hw/core: Get default_cpu_type calling machine_class_default_cpu_type(), Michael Tokarev, 2025/05/14
- [Stable-9.2.4 28/34] hw/gpio/imx_gpio: Fix interpretation of GDIR polarity, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 29/34] target/i386: do not trigger IRQ shadow for LSS, Michael Tokarev, 2025/05/14