Skip to content

chore: tests speed improvements#1636

Open
GrantDLS wants to merge 8 commits into
developfrom
cypress-test-improvements
Open

chore: tests speed improvements#1636
GrantDLS wants to merge 8 commits into
developfrom
cypress-test-improvements

Conversation

@GrantDLS

@GrantDLS GrantDLS commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description

The test shards are currently split alphabetically to take advantage of the ability to run shards in parallel. However, further splitting can be made based on test suite size.

The changes in this PR separate out some long running suites into their own shard, whilst still keeping the generic alphabet based shards so that any new tests are picked up.

Motivation and Context

The tests previously took about 40+ minutes to run. This change typically gets them under 30 minutes.

@GrantDLS GrantDLS changed the title Tests speed improvements chore: tests speed improvements Jul 8, 2026
@zacharyjhankin

Copy link
Copy Markdown
Collaborator

This is a great reduction in time for the tests to run with a minor change, good spotting

@zacharyjhankin

Copy link
Copy Markdown
Collaborator

Though just to point out that the resources to run the tests is the same before. Resources being the number of shards running multiplied by time. So before one pipeline run would take 40 min, but for 25 min you had most of the shards free to run on other things. But now the tests take 24 min, but 99% of that time its consuming all of the shards. Which means it takes the next pipeline longer to start running. Like we aren't getting performance for free. Still a good change but fundamentally we need faster tests or more resources.

@GrantDLS
GrantDLS force-pushed the cypress-test-improvements branch from 356efc4 to bda3587 Compare July 10, 2026 10:03
@GrantDLS
GrantDLS marked this pull request as ready for review July 10, 2026 10:10
@GrantDLS
GrantDLS requested a review from a team as a code owner July 10, 2026 10:10
@GrantDLS
GrantDLS requested review from mutambaraf and removed request for a team July 10, 2026 10:10
@GrantDLS

Copy link
Copy Markdown
Contributor Author

For this PR to complete, the branch protection settings for develop will need to be updated by someone who has access. At the moment, the PR is waiting on shards that no longer exist and so it wont be able to be merged.

@mutambaraf mutambaraf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good just a comment and also we may also need to add (letter q) to match questions.cy.ts

Comment thread .github/workflows/test-build.yml Outdated
@GrantDLS

Copy link
Copy Markdown
Contributor Author

Looks good just a comment and also we may also need to add (letter q) to match questions.cy.ts

Well spotted! Looks like that's always been missing. I've widened the "rs" start to include files beginning with q and I've renamed it to "qs".

@mutambaraf mutambaraf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants