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

chore: CI: in quick mode, only Nix build runs the tests #2998

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

nomeata
Copy link
Contributor

@nomeata nomeata commented Nov 30, 2023

Following up on #2986, stop running the test suite in ci.yml in quick
mode; the test suite is run in the Nix job, and we do not need to run it
twice.

With a cold nix cache, when lean is rebuilt, not much changes, as both
jobs take ~20mins. But when lean is unchanged, the nix build should
be faster, and shaving off the (currently) 4mins in the CI.yaml run
should get us to a green PR sooner.

Another benefit is that we get the PR release sooner and even get it
when the test suite fails, which can be useful if you want to test
mathlib or other things before fixing the lean test suite.

Following up on #2986, stop running the test suite in ci.yml in quick
mode; the test suite is run in the Nix job, and we do not need to run it
twice.

With a cold nix cache, when `lean` is rebuilt, not much changes, as both
jobs take ~20mins. But when `lean` is unchanged, the nix build should
be faster, and shaving off the (currently) 4mins in the CI.yaml run
should get us to a green PR sooner.

Another benefit is that we get the PR release sooner and even get it
when the test suite fails, which can be useful if you want to test
mathlib or other things before fixing the lean test suite.
@Kha Kha changed the title chore: CI: In quick mode, only Nix build runs the tests. chore: CI: In quick mode, only Nix build runs the tests Nov 30, 2023
@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 Nov 30, 2023
@leanprover-community-mathlib4-bot
Copy link
Collaborator

  • ❗ Mathlib CI will not be attempted unless you rebase your PR onto the 'nightly' branch. (2023-11-30 17:19:26)

@nomeata
Copy link
Contributor Author

nomeata commented Nov 30, 2023

I promise I’ll try to write lowercase titles; but it goes very hard against my muscle memory. Maybe I’ll have to extend the commit convention check.

@nomeata nomeata changed the title chore: CI: In quick mode, only Nix build runs the tests chore: CI: in quick mode, only Nix build runs the tests Nov 30, 2023
@nomeata nomeata added this pull request to the merge queue Nov 30, 2023
@Kha
Copy link
Member

Kha commented Nov 30, 2023

Hah, I didn't even notice that this time

Merged via the queue into master with commit f356d88 Nov 30, 2023
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

3 participants