Skip to content

fix: cache test and lint build artifacts - #197

Merged
austinletson merged 1 commit into
leanprover:mainfrom
SamuelSchlesinger:samschles/cache-after-checks
Oct 12, 2026
Merged

austinletson merged 1 commit into
leanprover:mainfrom
SamuelSchlesinger:samschles/cache-after-checks

Conversation

@SamuelSchlesinger

Copy link
Copy Markdown
Contributor

This PR saves the GitHub cache after testing and linting so their build artifacts can be reused, while preserving separate build, test, and lint reporting. It retains caching after test or lint failures and skips saves on exact cache hits.

Based on Chris's suggestion.

Codex assisted with implementation and validation.

@SamuelSchlesinger
SamuelSchlesinger marked this pull request as ready for review October 1, 2026 17:46
@kim-em

kim-em commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

LGTM. @austinletson?

This PR saves the GitHub cache after testing and linting so their build artifacts can be reused, while preserving separate build, test, and lint reporting. It retains caching after test or lint failures and skips saves on exact cache hits.

Based on [Chris's suggestion](leanprover/cslib#1015 (comment)).

Codex assisted with implementation and validation.
@SamuelSchlesinger
SamuelSchlesinger force-pushed the samschles/cache-after-checks branch from 20b96a1 to dd82de1 Compare October 2, 2026 13:42
@SamuelSchlesinger

SamuelSchlesinger commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

I'd love to have this merge so I can stop doing hacks to avoid this problem.

@austinletson

Copy link
Copy Markdown
Collaborator

Looks good. Merged.

@austinletson
austinletson merged commit 24581d7 into leanprover:main Oct 12, 2026
26 checks passed
@austinletson

Copy link
Copy Markdown
Collaborator

@SamuelSchlesinger I am cutting a bug fix release now, so you should be able to use this shortly. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants