Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: lake: ensure job actions can be lifted to FetchM #4273

Merged
merged 4 commits into from
May 25, 2024

Conversation

tydeu
Copy link
Member

@tydeu tydeu commented May 25, 2024

In v4.8.0-rc2, due to additional build refactor changes, JobM no longer cleanly lifts in FetchM. Generally, a JobM action should not be run FetchM directly but spawned asynchronously as job (e.g., via Job.async). However, there may be some edge cases were this is necessary and it is a backwards compatibility break, so this change adds back the lift. This change also includes an example definition to ensure the lift works in order to prevent similar accidental breakages in the future.

This breakage was first reported by Mario on Zulip.

@tydeu tydeu marked this pull request as ready for review May 25, 2024 00:49
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 25, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 25, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 25, 2024
@tydeu tydeu force-pushed the lake/logio-build-actions branch from 96ed09c to ef09829 Compare May 25, 2024 01:08
@tydeu tydeu force-pushed the lake/logio-build-actions branch from ef09829 to aba091d Compare May 25, 2024 01:14
@tydeu tydeu changed the title chore: lake: use LogIO for basic build actions refactor: lake: ensure job actions can be lifted to FetchM May 25, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 25, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 25, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented May 25, 2024

Mathlib CI status (docs):

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 25, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 25, 2024
@tydeu tydeu added this pull request to the merge queue May 25, 2024
Merged via the queue into leanprover:master with commit fe17b82 May 25, 2024
12 checks passed
@tydeu tydeu deleted the lake/logio-build-actions branch May 25, 2024 02:43
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan full-ci labels May 25, 2024
tydeu added a commit to tydeu/lean4 that referenced this pull request Jun 4, 2024
…ver#4273)

In `v4.8.0-rc2`, due to additional build refactor changes, `JobM` no
longer cleanly lifts in `FetchM`. Generally, a `JobM` action should not
be run `FetchM` directly but spawned asynchronously as job (e.g., via
`Job.async`). However, there may be some edge cases were this is
necessary and it is a backwards compatibility break, so this change adds
back the lift. This change also includes an `example` definition to
ensure the lift works in order to prevent similar accidental breakages
in the future.

This breakage was first reported by Mario on
[Zulip](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/v4.2E8.2E0-rc2.20discussion/near/440407037).
tydeu added a commit that referenced this pull request Jun 5, 2024
In `v4.8.0-rc2`, due to additional build refactor changes, `JobM` no
longer cleanly lifts in `FetchM`. Generally, a `JobM` action should not
be run `FetchM` directly but spawned asynchronously as job (e.g., via
`Job.async`). However, there may be some edge cases were this is
necessary and it is a backwards compatibility break, so this change adds
back the lift. This change also includes an `example` definition to
ensure the lift works in order to prevent similar accidental breakages
in the future.

This breakage was first reported by Mario on
[Zulip](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/v4.2E8.2E0-rc2.20discussion/near/440407037).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants