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

Enable selective test execution in Mill's own CI #4118

Merged
merged 60 commits into from
Dec 13, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Dec 12, 2024

No description provided.

@lihaoyi lihaoyi mentioned this pull request Dec 12, 2024
lihaoyi added a commit that referenced this pull request Dec 12, 2024
Some cleanup in preparation for
#4118

Set default `--jobs=0.5C` in `.mill-opts` so we don't need to specify it
explicitly in CI, and it also works on laptops and other environments
with different core counts correctly. TBH could probably go with even
less parallelism due to how heavy our integration tests are - with all
the compilation and JVM subprocess spawning they can probably easily
take up all 4 cores on a Github Actions worker - but I'm leaving it at
0.5C X 4 cores = 2x parallelism in CI for now

Also simplified the windows CI setup: now that we have `./mill.bat` in
the project root, we can just call `./mill` in the windows terminal. I
had to delete the `.ps1` version because it was taking priority over
`.bat` and failing with the following error:

```
Run ./mill -i -k __.compile
  
mill.ps1: D:\a\_temp\93d23[8](https://github.com/com-lihaoyi/mill/actions/runs/12292451871/job/34303135448#step:11:8)[8](https://github.com/com-lihaoyi/mill/actions/runs/12292451871/job/34303135448#step:11:9)4-066d-433e-bb26-8539b01a4aee.ps1:2
Line |
   2 |  ./mill -i -k __.compile
     |         ~~
     | Parameter cannot be processed because the parameter name 'i' is ambiguous. Possible matches include:
     | -InformationAction -InformationVariable.
Error: Process completed with exit code 1.
```
lihaoyi added a commit that referenced this pull request Dec 13, 2024
Needs to happen separately from
#4118 since I need it on both
the PR branch and on the main target branch for the selective testing to
be effective
@lihaoyi lihaoyi marked this pull request as ready for review December 13, 2024 12:39
@lihaoyi
Copy link
Member Author

lihaoyi commented Dec 13, 2024

Selective execution seems to work in Mill's CI now for pre-merge PR validation, will merge it and work on post-merge master validation

@lihaoyi lihaoyi merged commit 1a81a68 into com-lihaoyi:main Dec 13, 2024
26 checks passed
@lefou lefou added this to the 0.12.4 milestone Dec 13, 2024
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.

2 participants