Skip to content

Commit f4d0f7b

Browse files
committed
debug
1 parent 99c0cab commit f4d0f7b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,20 @@ jobs:
6464
print("Success")
6565
with open(github_output, 'a') as output_file:
6666
print(f'{output_name}=success', file=output_file)
67+
# This is used by the `required` job to determine if the test-go-pg job
68+
# failed or not on the given OS. Matrix jobs don't support `outputs`
69+
# well - the last job to run overwrites them. Instead, we write to
70+
# artifacts.
6771
- if: always()
68-
run: echo "0" > "pg_result_${{ matrix.os }}"
72+
run: echo "0" > "test-go-pg_result_${{ matrix.os }}"
6973
- if: failure()
70-
run: echo "1" > "pg_result_${{ matrix.os }}"
74+
run: echo "1" > "test-go-pg_result_${{ matrix.os }}"
7175
- name: Upload result artifact
7276
if: always()
7377
uses: actions/upload-artifact@v4
7478
with:
75-
name: "pg_result_${{ matrix.os }}"
76-
path: "pg_result_${{ matrix.os }}"
79+
name: "test-go-pg_result_${{ matrix.os }}"
80+
path: "test-go-pg_result_${{ matrix.os }}"
7781

7882

7983
required:
@@ -97,11 +101,11 @@ jobs:
97101
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
98102
with:
99103
egress-policy: audit
100-
- name: Download PG Failed Artifacts
104+
- name: Download test-go-pg Artifacts
101105
uses: actions/download-artifact@v4
102106
with:
103-
path: pg_result
104-
pattern: pg_result_*
107+
path: test-go-pg_result
108+
pattern: test-go-pg_result_*
105109
merge-multiple: true
106110
- name: Ensure required checks
107111
shell: python
@@ -122,20 +126,18 @@ jobs:
122126
print()
123127
124128
failed = False
125-
print("all files")
126-
print(list(Path(".").glob("*")))
127129
for job_name in job_names:
128130
result = jobs[job_name]["result"]
129131
130132
# Skip test-go-pg failures on windows
131133
if job_name == "test-go-pg" and result == "failure":
132-
result_artifacts = list(Path("pg_result").glob("pg_result_*"))
133-
print("result_artifacts")
134-
print(result_artifacts)
134+
result_artifacts = list(Path("test-go-pg_result").glob("test-go-pg_result_*"))
135135
results = {f.name: int(f.read_text()) for f in result_artifacts}
136-
del results["pg_result_windows-2022"]
136+
del results["test-go-pg_result_windows-2022"]
137137
if sum(results.values()) == 0:
138+
print("test-go-pg on windows-2022 failed, but we are skipping it")
138139
continue
140+
139141
if result in ["failure", "cancelled"]:
140142
failed = True
141143
break

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy