diff --git a/docs/examples/cypress.mdx b/docs/examples/cypress.mdx index 10c8cce..50c4041 100644 --- a/docs/examples/cypress.mdx +++ b/docs/examples/cypress.mdx @@ -64,7 +64,7 @@ EXPOSE WEBSITE http://localhost:8888 SECRET ENV CYPRESS_RECORD_KEY # execute the tests against the same machine (?) on N machines -SPLIT 3 +SPLIT UNORDERED 3 RUN npx cypress run --record --parallel --ci-build-id $JOB_ID-$RETRY_INDEX ``` diff --git a/docs/layerfile-reference/split.mdx b/docs/layerfile-reference/split.mdx index 12d47c1..d205be1 100644 --- a/docs/layerfile-reference/split.mdx +++ b/docs/layerfile-reference/split.mdx @@ -9,7 +9,16 @@ of times at a specific point. Each copy of the runner will have `SPLIT` and `SPLIT_NUM` environment variables automatically set. The former will be the index of the runner, and the latter will be the number of copies. +`SPLIT UNORDERED [n]` + +The `SPLIT UNORDERED` instruction behaves the same as the `SPLIT` instruction +without setting the `SPLIT` environment variable allowing all split runners to +have the same environment. + ### Examples - Use `SPLIT 3` and three copies of the runner will have `ENV SPLIT=0 SPLIT_NUM=3` and `ENV SPLIT=1 SPLIT_NUM=3` and so on. + +- Use `SPLIT UNORDERED 3` and three copies of the runner will have + `ENV SPLIT_NUM=3`.