v1-0001-ci-include-matrix.slice-in-upload-artifact-name.patch
text/x-patch
Filename: v1-0001-ci-include-matrix.slice-in-upload-artifact-name.patch
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v1-0001
Subject: ci: include matrix.slice in upload-artifact name
| File | + | − |
|---|---|---|
| .github/workflows/pg-ci.yml | 3 | 1 |
From 71fd65699a4239dd9e5d8446bdb04434f8629f14 Mon Sep 17 00:00:00 2001
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
Date: Fri, 5 Jun 2026 17:44:40 +0300
Subject: [PATCH v1] ci: include matrix.slice in upload-artifact name
We use matrix in the Windows VS task so that we can use meson --slice
method and assign specific slice to each job. However, when the Windows
VS jobs fail, they upload artifacts with the same name. To fix that,
append matrix.slice when it is set.
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/3ydjipcr7kbss57nvi67noplncqhesl5eyb6wgol4ccjxynspv%40yatlykpribmm
---
.github/workflows/pg-ci.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pg-ci.yml b/.github/workflows/pg-ci.yml
index 8560e9389f6..db9bf1f99fe 100644
--- a/.github/workflows/pg-ci.yml
+++ b/.github/workflows/pg-ci.yml
@@ -373,7 +373,9 @@ jobs:
if: failure() && !cancelled()
uses: actions/upload-artifact@v7
with:
- name: logs-${{ github.job }}-${{ github.run_id }}-${{ github.run_attempt }}
+ # Include matrix.slice when set (e.g. windows-vs) so concurrent
+ # matrix entries don't try to upload artifacts with the same name.
+ name: logs-${{ github.job }}-${{ github.run_id }}-${{ github.run_attempt }}${{ matrix.slice && format('-slice-{0}', matrix.slice) || '' }}
path: |
**/*.log
**/*.diffs
--
2.47.3