Skip to content

Commit b3aae8e

Browse files
authored
chore: use circleci timings split for e2e tests (#18367)
1 parent e918866 commit b3aae8e

File tree

157 files changed

+19
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+19
-6
lines changed

circle.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,20 @@ commands:
425425
steps:
426426
- restore_cached_workspace
427427
- run:
428-
command: yarn workspace @packages/server test ./test/e2e/$(( $CIRCLE_NODE_INDEX ))_*spec* --browser <<parameters.browser>>
428+
command: |
429+
ALL_SPECS=`circleci tests glob "/root/cypress/packages/server/test/e2e/*spec*"`
430+
SPECS=
431+
for file in $ALL_SPECS; do
432+
# filter out non_root tests, they have their own stage
433+
if [[ "$file" == *"non_root"* ]]; then
434+
echo "Skipping $file"
435+
continue
436+
fi
437+
SPECS="$SPECS $file"
438+
done
439+
SPECS=`echo $SPECS | xargs -n 1 | circleci tests split --split-by=timings`
440+
echo SPECS=$SPECS
441+
yarn workspace @packages/server test $SPECS --browser <<parameters.browser>>
429442
- verify-mocha-results
430443
- store_test_results:
431444
path: /tmp/cypress

packages/server/README.md

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)