Skip to content

fix(ci): split Cypress specs per runner instead of Cypress Cloud parallelization - #5102

Open
solracsf wants to merge 1 commit into
masterfrom
ci/cypress-split-specs
Open

solracsf wants to merge 1 commit into
masterfrom
ci/cypress-split-specs

Conversation

@solracsf

Copy link
Copy Markdown
Member

ubuntu-latest jobs here land on both GitHub-hosted runners and the self-hosted garm-* runners, and those currently run different Ubuntu point releases (24.04.5 vs 24.04.4). Cypress Cloud refuses to parallelize a run whose machines report different OS versions (parallel-group-params-mismatch), so the mismatched runners stop before running any spec and the job fails with "Could not find Cypress test run results". See runners 1 and 3 in https://github.com/nextcloud/groupfolders/actions/runs/34579398382.

cypress.config.ts already registers cypress-split, so each runner now picks its share of the specs from SPLIT/SPLIT_INDEX, the same way deck and text do. The trade-off is that runs are no longer recorded to Cypress Cloud (no dashboard or Test Replay).

The "Extract NC logs" step also looked for nextcloud-cypress-tests_groupfolders, but @nextcloud/e2e-test-server 0.4.0 names the container nextcloud-e2e-test-server_groupfolders, so logs were never uploaded on failure.

Unrelated to this change: "Correctly moves versions when user moves the containing folder out of the groupfolder" is currently flaky on master and stable34 as well.

…llelization

ubuntu-latest jobs get picked up by both GitHub-hosted and self-hosted
runners, which can run different Ubuntu point releases. Cypress Cloud
refuses to parallelize a run whose machines report different OS
versions, so those runners exit before running a single spec. Let
cypress-split, already set up in cypress.config.ts, hand each runner its
share of the specs instead.

Also read the Nextcloud logs from the container name that
@nextcloud/e2e-test-server actually uses, so they get uploaded when a
run fails.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf solracsf added 3. to review Items that need to be reviewed tests labels Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant