Test Sharding - Definição do Glossário de CI/CD
O test sharding divide uma suíte em subconjuntos que rodam em runners separados em paralelo para reduzir o tempo total.
O test sharding divide uma suíte de testes em subconjuntos independentes (shards) que rodam em runners separados em paralelo, e depois combina os resultados. Ele reduz o tempo de relógio para suítes grandes.
O GitHub Actions suporta sharding por meio de uma matrix que passa a cada job um índice de shard. Balancear os shards pelo tempo de execução histórico evita que um shard lento domine.
Em CI
Uma strategy.matrix com um índice de shard e a contagem total é o padrão comum; cada job roda sua fatia e envia os resultados como artifacts para posterior mesclagem.
Guias relacionados
Parallel Test Execution - CI/CD Glossary DefinitionParallel Test Execution: Parallel test execution runs multiple tests or test files at the same time, within o…
Test Selection - CI/CD Glossary DefinitionTest Selection: Test selection runs only the tests affected by a change instead of the whole suite, using a d…
Matrix Build - CI/CD Glossary DefinitionMatrix Build: A **matrix build** expands one job into many parallel jobs across combinations of variables (ve…