Skip to content

Commit 22ef8a1

Browse files
flotwigmjhenkes
authored andcommitted
chore: use circleci timings split for e2e tests (#18367)
1 parent 2c99daa commit 22ef8a1

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
@@ -427,7 +427,20 @@ commands:
427427
steps:
428428
- restore_cached_workspace
429429
- run:
430-
command: yarn workspace @packages/server test ./test/e2e/$(( $CIRCLE_NODE_INDEX ))_*spec* --browser <<parameters.browser>>
430+
command: |
431+
ALL_SPECS=`circleci tests glob "/root/cypress/packages/server/test/e2e/*spec*"`
432+
SPECS=
433+
for file in $ALL_SPECS; do
434+
# filter out non_root tests, they have their own stage
435+
if [[ "$file" == *"non_root"* ]]; then
436+
echo "Skipping $file"
437+
continue
438+
fi
439+
SPECS="$SPECS $file"
440+
done
441+
SPECS=`echo $SPECS | xargs -n 1 | circleci tests split --split-by=timings`
442+
echo SPECS=$SPECS
443+
yarn workspace @packages/server test $SPECS --browser <<parameters.browser>>
431444
- verify-mocha-results
432445
- store_test_results:
433446
path: /tmp/cypress

packages/server/README.md

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)