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

Parallel runtime tests execution #3370

Closed
KvanTTT opened this issue Nov 29, 2021 · 7 comments
Closed

Parallel runtime tests execution #3370

KvanTTT opened this issue Nov 29, 2021 · 7 comments

Comments

@KvanTTT
Copy link
Member

KvanTTT commented Nov 29, 2021

I don't understand why parallel tests execution still is not enabled. It should be quite easy to implement since each test uses a separated directory and operates in an isolated process. Parallel tests can greatly improve performance because they may utilize all processor cores.

@ericvergnaud
Copy link
Contributor

Free CIs usually only provide single core containers so enabling parallel testing ends up being slower. This was definitely the case with Travis CI. Didn't try it on our latest CIs though.

@KvanTTT
Copy link
Member Author

KvanTTT commented Nov 29, 2021

Free CIs usually only provide single core containers so enabling parallel testing ends up being slower.

How slower? It's quite strange.

But parallel tests are also useful on local machines without limitation on the number of cores.

@KvanTTT
Copy link
Member Author

KvanTTT commented Nov 29, 2021

BTW, now I'm still not able to set up tests, I'm not a very experienced with maven.

@KvanTTT
Copy link
Member Author

KvanTTT commented Dec 3, 2021

It seems like at least CircleCI has 2 CPUs: https://app.circleci.com/pipelines/github/antlr/antlr4/678/workflows/005d374e-8b5b-40ae-a720-c04b03a6928b/jobs/7728/resources Not many but better than one.

@KvanTTT
Copy link
Member Author

KvanTTT commented Dec 3, 2021

@ericvergnaud
Copy link
Contributor

ericvergnaud commented Dec 3, 2021 via email

@KvanTTT
Copy link
Member Author

KvanTTT commented Dec 3, 2021

Yes, I'll try to fix them after fixing dotnet and go pipelines on Linux. Also, it seems like parallel execution is already turned on for CircleCI.

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

No branches or pull requests

2 participants