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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stress runs #6419

Closed
mjesun opened this issue Jun 8, 2018 · 9 comments
Closed

Stress runs #6419

mjesun opened this issue Jun 8, 2018 · 9 comments

Comments

@mjesun
Copy link
Contributor

mjesun commented Jun 8, 2018

馃殌 Feature Proposal

In order to ensure test quality in a repository, this feature will make sure we provide a way of stress running a test.

Stress running means to run in parallel a test, and report all the results separately, so that they can be later analized. A successful test is the one that is all green, a flaky one it's a mix of them, and a broken test will fail in all runs.

It is important to return results separately, as people might want to later compute the flakiness percentage and decide on it (life's not black or white! 馃槈).

Motivation

Ensuring that a test passes correctly before releasing it to the world helps getting higher signal when running tests, and less annoyance for other users who might be running the test later.

Example

jest --stressRuns=24 to perform 24 runs of the same test in parallel.

Pitch

Being able to run the same test at the same time requires heavy integration with the runner and the reporter. Currently you can do that by (ab)using the MPR and reporting over and over the same configuration, but that's just a hack 馃槃.

@aaronabramov
Copy link
Contributor

we should be able to specify parallelism as well (jest --stressRuns=24 -w 1)
i'm currently working with a lot of e2e jest tests that spawn buck and buck takes over the entire system and loads all threads. if we run 24 bucks in parallel i'm pretty sure it'll stall the machine :)

@lukeapage
Copy link
Contributor

Related problem and solution: #6194 (comment)

@rogeliog
Copy link
Contributor

I would love this also!

@palmerj3
Copy link
Contributor

Oh man how have I not seen this! I could totally build this. We already have systems like this at Spotify for jest and other test runners.

@SimenB
Copy link
Member

SimenB commented Oct 21, 2018

Go for it @palmerj3! 馃榾

@JacobMGEvans
Copy link

This still a thing? I was looking for ways to do this with the CLI and found this issue 馃ぃ

@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 25, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants