e2e suite fails a random test now and then under parallel load
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, playwright
- Domain
- testing
Research direction
Start by reading playwright.config.js to confirm the parallel worker and retry settings, then inspect the named waits in app.spec.js and visualization-switching.spec.js. Run the e2e suite against the same backend and next start setup described in the issue. Done when the chosen mitigation is implemented and the suite no longer fails the required CI check from these intermittent timeouts.
Written by the indexing model from the issue text.
Description
The e2e suite sometimes fails one or two tests that have nothing to do with the change being tested. Each time it's a different test, and the test passes when run alone or on a rerun. Right now a flaky run fails the required build-test / ci check, so a good PR looks broken until someone reruns it.
What we saw (Nov 18)
| Where | Failed | Passes alone / on rerun? |
|---|---|---|
| CI, #441 (driver.js bump) | app.spec.js:135 (solver error), app.spec.js:273 (malformed certificate): the Solve/Verify panel stayed hidden for 15 s after clicking ▼ |
Yes. Rerun of the failed job went green with no change |
| Local full run, #441 branch | visualization-switching.spec.js:136 (switching the reduction target) |
Yes |
| Local full run, #443 branch + fix | app.spec.js:198 (3SAT → Clique reduced instance), toBeEnabled timed out |
Yes, 3 of 3 alone |
All local runs used ghcr.io/reduxisu/redux:latest on :27000 and next build + next start, the same pairing as CI.
Likely cause
playwright.config.js has fullyParallel: true and retries: 0, with the default worker count. Every test talks to the same single backend, so when many run at once some requests (reductions, the 7 batch calls on page load) take longer than the 15 s expect timeout. Whichever test is unlucky fails.
Options
- Quick: set
retries: process.env.CI ? 1 : 0. Playwright then reports a test that passes on retry as "flaky" instead of failing the run. This hides the race but stops it from blocking PRs. - Cap workers in CI (for example
workers: process.env.CI ? 2 : undefined) so the backend isn't flooded. The run gets slower. - Real fix: find the waits that assume a fast backend (panel expansion right after load, reduce/solve buttons enabling) and make them wait for the request they depend on, the way #339's 60 s picture-timeout test now waits for Clique's
/reduceto finish.
My suggestion: do 1 now so PRs stop going red at random, then 3 as the tests are touched. Leave the retry on so "flaky" results stay visible in the report.
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 18
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 27
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ReduxISU/Redux_GUI
-
Add GitHub and YouTube icons to the site footerMay be free again @sushantshetty09 claimed this 15 days ago, and no pull request is open. Openenhancement good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
ReduxISU/Redux_GUI#448 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ReduxISU/Redux_GUI#429 · 2 comments ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Make it clear the visualization shows the problem and the selected solverMay be free again @Trosper3 claimed this 38 days ago, and no pull request is open. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ReduxISU/Redux_GUI#391 · 1 assignee ·
Maintainers usually reply within 1 day
-
[Bug]: Main page problem search shows no "Add new problem" button when nothing matchesPossibly taken @ShahadatTest claimed this 32 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in ReduxISU/Redux_GUI
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: tests help wanted size/s
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
DahanItamar/DockNest#368 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100