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

Run lint in parallel with runtests-parallel #52945

Merged
merged 5 commits into from Feb 27, 2023

Conversation

jakebailey
Copy link
Member

This effectively reverts #50597, except that instead of running the linter after tests have finished, we'll instead run them in parallel. This works because hereby won't exit early when a task fails but a sibling task has not yet finished.

I still prefer getting these in my editor where possible, but, I've heard from multiple people ambiently that they keep committing code that fails the lint task. At least we can do it in parallel in the new build.

@jakebailey
Copy link
Member Author

I've added a test to hereby that should encode that this trick still works.

jakebailey and others added 2 commits February 23, 2023 17:23
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
@jakebailey
Copy link
Member Author

I've modified this to only do it at parallel; @andrewbranch pointed out that we probably don't want to lint on filtered tests, which I think most people only run in runtests not runtests-parallel.

But, I can also make it not lint if the tests are filtered, if that sounds good too.

@jakebailey jakebailey changed the title Run lint in parallel with runtests and runtests-parallel Run lint in parallel with runtests-parallel Feb 24, 2023
@jakebailey jakebailey merged commit c97ddac into microsoft:main Feb 27, 2023
@jakebailey jakebailey deleted the bring-back-lint branch February 27, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants