Skip to content

Conversation

@ZoogieZork
Copy link
Collaborator

@ZoogieZork ZoogieZork commented May 7, 2025

Note

This is an experimental branch used for testing this feature; the real implementation will likely be different.

Description

Parallelize the UI unit tests across multiple runners. This uses the sharding feature introduced in Jest v28.

Motivation and Context

Speed up unit tests in CI.

How Has This Been Tested?

TODO

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation change

Checklist

  • My code follows conforms to the coding standards.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

ZoogieZork added 4 commits May 7, 2025 12:48
The tests are bottlenecked by the three big SearchPage tests:

PASS src/pages/__tests__/SearchPage/SearchPageRepos.test.tsx (546.818 s)
PASS src/pages/__tests__/SearchPage/SearchPageVulns.test.tsx (497.394 s)
PASS src/pages/__tests__/SearchPage/SearchPage.test.tsx (344.734 s)

So sharding to 6 saw no improvement.
@ZoogieZork ZoogieZork changed the title Shard UI tests [Experimental] Shard UI tests Aug 7, 2025
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

Successfully merging this pull request may close these issues.

1 participant