Skip to content

Commit 8300778

Browse files
bryangingechenstaroperator
authored andcommitted
chore: upload artifact for debugging no-build failures (leanprover-community#28062)
Since the `lake build --no-build` failures in the "Post-Build Step" job are still occurring (cf. [#mathlib4 > Failing CI @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Failing.20CI/near/533022248)), we upload the contents of the `pr-branch` directory as a workflow artifact, to help with figuring out what's going on.
1 parent 3c2d4b9 commit 8300778

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/build.in.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,13 @@ jobs:
313313
cd pr-branch
314314
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
315315
316+
- name: upload artifact containing contents of pr-branch
317+
# temporary measure for debugging no-build failures
318+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
319+
with:
320+
name: mathlib4_artifact
321+
path: pr-branch/
322+
316323
# The cache secrets are available here, so we must not run any untrusted code.
317324
- name: upload cache
318325
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)

.github/workflows/bors.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ jobs:
323323
cd pr-branch
324324
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
325325
326+
- name: upload artifact containing contents of pr-branch
327+
# temporary measure for debugging no-build failures
328+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
329+
with:
330+
name: mathlib4_artifact
331+
path: pr-branch/
332+
326333
# The cache secrets are available here, so we must not run any untrusted code.
327334
- name: upload cache
328335
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,13 @@ jobs:
330330
cd pr-branch
331331
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
332332
333+
- name: upload artifact containing contents of pr-branch
334+
# temporary measure for debugging no-build failures
335+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
336+
with:
337+
name: mathlib4_artifact
338+
path: pr-branch/
339+
333340
# The cache secrets are available here, so we must not run any untrusted code.
334341
- name: upload cache
335342
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)

.github/workflows/build_fork.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,13 @@ jobs:
327327
cd pr-branch
328328
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
329329
330+
- name: upload artifact containing contents of pr-branch
331+
# temporary measure for debugging no-build failures
332+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
333+
with:
334+
name: mathlib4_artifact
335+
path: pr-branch/
336+
330337
# The cache secrets are available here, so we must not run any untrusted code.
331338
- name: upload cache
332339
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)

0 commit comments

Comments
 (0)