diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index 412aa36a6f3b..6da25d18a162 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -573,14 +573,15 @@ commands: # To make `circleci tests` work correctly, we need to step into the package folder. cd packages/<> - GLOB="cypress/e2e/**/*cy.*" - if [[ <> == 'ct' ]]; then # component tests are located side by side with the source codes. - GLOB="src/**/*cy.*" + # for the app component tests, ignore specs that are known to cause failures on contributor PRs (see https://discuss.circleci.com/t/how-to-exclude-certain-files-from-circleci-test-globbing/41028) + TESTFILES=$(find src -regextype posix-extended -name '*.cy.*' -not -regex '.*(FileMatch|PromoAction|SelectorPlayground).cy.*' | circleci tests split --total=$CIRCLE_NODE_TOTAL) + else + GLOB="cypress/e2e/**/*cy.*" + TESTFILES=$(circleci tests glob "$GLOB" | circleci tests split --total=$CIRCLE_NODE_TOTAL) fi - TESTFILES=$(circleci tests glob "$GLOB" | circleci tests split --total=$CIRCLE_NODE_TOTAL) echo "Test files for this machine are $TESTFILES" # To run the `yarn` command, we need to walk out of the package folder.