@@ -67,18 +67,6 @@ aliases:
67
67
git checkout -B "$CIRCLE_BRANCH" "$CIRCLE_SHA1"
68
68
fi
69
69
70
- # Check if MMI Optional tests should run
71
- - &check-mmi-optional
72
- name : Check if MMI Optional tests should run
73
- command : |
74
- RUN_MMI_OPTIONAL=$(cat ./RUN_MMI_OPTIONAL)
75
- if [[ "${CIRCLE_BRANCH}" == "develop" || "${RUN_MMI_OPTIONAL}" == "true" ]]; then
76
- echo "Running MMI Optional tests"
77
- else
78
- echo "Skipping MMI Optional tests"
79
- circleci step halt
80
- fi
81
-
82
70
workflows :
83
71
test_and_release :
84
72
jobs :
@@ -89,7 +77,6 @@ workflows:
89
77
- trigger-beta-build :
90
78
requires :
91
79
- prep-deps
92
- - check-pr-tag
93
80
- prep-deps
94
81
- test-deps-audit :
95
82
requires :
@@ -145,7 +132,6 @@ workflows:
145
132
- prep-build-test-mmi-playwright :
146
133
requires :
147
134
- prep-deps
148
- - check-pr-tag
149
135
- prep-build-storybook :
150
136
requires :
151
137
- prep-deps
@@ -387,68 +373,6 @@ jobs:
387
373
name : Create GitHub Pull Request for version
388
374
command : .circleci/scripts/release-create-release-pr.sh
389
375
390
- check-pr-tag :
391
- docker :
392
- - image : cimg/base:stable
393
- steps :
394
- - run :
395
- name : Check for MMI Team Tag
396
- command : |
397
- #!/bin/bash
398
-
399
- # GitHub Personal Access Token for API Authentication
400
- GITHUB_TOKEN="${GITHUB_TOKEN}"
401
- BRANCH="${CIRCLE_BRANCH}"
402
-
403
- # Fetch the PRs associated with the current branch and check the response
404
- PR_RESPONSE=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \
405
- "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?state=open&head=${CIRCLE_PROJECT_USERNAME}:${BRANCH}")
406
- echo "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?state=open&head=${CIRCLE_PROJECT_USERNAME}:${BRANCH}"
407
-
408
- # Check if the response contains valid JSON
409
- if ! echo "$PR_RESPONSE" | jq empty; then
410
- echo "Failed to parse JSON response."
411
- echo "$PR_RESPONSE"
412
- exit 1
413
- fi
414
-
415
- # Check if we received an array of PRs
416
- if ! echo "$PR_RESPONSE" | jq -e '. | type == "array"'; then
417
- echo "$PR_RESPONSE"
418
- echo "Expected an array of PRs, got something else."
419
- exit 1
420
- fi
421
-
422
- # Check if the array of PRs is empty
423
- PR_COUNT=$(echo "$PR_RESPONSE" | jq '. | length')
424
-
425
- # If no PRs are found, exit gracefully
426
- if [ "$PR_COUNT" -eq 0 ]; then
427
- echo "No open PRs found. Exiting."
428
- echo "false" > ./RUN_MMI_OPTIONAL
429
- exit 0
430
- fi
431
-
432
- # Extract label names from the PR_RESPONSE
433
- LABEL_NAMES=$(echo "$PR_RESPONSE" | jq -r '.[0].labels[].name')
434
-
435
- echo "Labels found: $LABEL_NAMES"
436
-
437
- # Check if "team-mmi" label is present
438
- if echo "$LABEL_NAMES" | grep -qw "team-mmi"; then
439
- echo "team-mmi tag found."
440
- # assign the RUN_MMI_OPTIONAL variable to true
441
- echo "true" > ./RUN_MMI_OPTIONAL
442
- else
443
- echo "team-mmi tag not found."
444
- # assign the RUN_MMI_OPTIONAL variable to false
445
- echo "false" > ./RUN_MMI_OPTIONAL
446
- fi
447
- - persist_to_workspace :
448
- root : .
449
- paths :
450
- - RUN_MMI_OPTIONAL
451
-
452
376
prep-deps :
453
377
executor : node-browsers-medium
454
378
steps :
@@ -716,7 +640,6 @@ jobs:
716
640
- run : *shallow-git-clone
717
641
- attach_workspace :
718
642
at : .
719
- - run : *check-mmi-optional
720
643
- run :
721
644
name : Build MMI extension for Playwright e2e
722
645
command : |
@@ -731,7 +654,6 @@ jobs:
731
654
- persist_to_workspace :
732
655
root : .
733
656
paths :
734
- - RUN_MMI_OPTIONAL
735
657
- dist-test-mmi-playwright
736
658
- builds-test-mmi-playwright
737
659
- store_artifacts :
@@ -953,7 +875,7 @@ jobs:
953
875
command : |
954
876
if .circleci/scripts/test-run-e2e.sh
955
877
then
956
- timeout 20m yarn test:e2e:chrome --retries 2
878
+ timeout 20m yarn test:e2e:chrome --retries 2 --debug
957
879
fi
958
880
no_output_timeout : 5m
959
881
- store_artifacts :
@@ -980,7 +902,7 @@ jobs:
980
902
command : |
981
903
if .circleci/scripts/test-run-e2e.sh
982
904
then
983
- timeout 20m yarn test:e2e:chrome --retries 2
905
+ timeout 20m yarn test:e2e:chrome --retries 2 --debug
984
906
fi
985
907
no_output_timeout : 5m
986
908
environment :
@@ -1009,7 +931,7 @@ jobs:
1009
931
command : |
1010
932
if .circleci/scripts/test-run-e2e.sh
1011
933
then
1012
- timeout 20m yarn test:e2e:chrome --retries 2 || echo "Temporarily suppressing MV3 e2e test failures"
934
+ timeout 20m yarn test:e2e:chrome --retries 2 --debug || echo "Temporarily suppressing MV3 e2e test failures"
1013
935
fi
1014
936
no_output_timeout : 5m
1015
937
- store_artifacts :
@@ -1087,7 +1009,7 @@ jobs:
1087
1009
command : |
1088
1010
if .circleci/scripts/test-run-e2e.sh
1089
1011
then
1090
- timeout 20m yarn test:e2e:chrome:rpc --retries 2 --build-type=mmi
1012
+ timeout 20m yarn test:e2e:chrome:rpc --retries 2 --debug -- build-type=mmi
1091
1013
fi
1092
1014
no_output_timeout : 5m
1093
1015
- store_artifacts :
@@ -1107,7 +1029,7 @@ jobs:
1107
1029
command : |
1108
1030
if .circleci/scripts/test-run-e2e.sh
1109
1031
then
1110
- yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.js --browser chrome --retries 2
1032
+ yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.js --browser chrome --retries 2 --debug
1111
1033
fi
1112
1034
no_output_timeout : 5m
1113
1035
@@ -1129,7 +1051,7 @@ jobs:
1129
1051
command : |
1130
1052
if .circleci/scripts/test-run-e2e.sh
1131
1053
then
1132
- timeout 20m yarn test:e2e:firefox:flask --retries 2
1054
+ timeout 20m yarn test:e2e:firefox:flask --retries 2 --debug
1133
1055
fi
1134
1056
no_output_timeout : 5m
1135
1057
- store_artifacts :
@@ -1156,7 +1078,7 @@ jobs:
1156
1078
command : |
1157
1079
if .circleci/scripts/test-run-e2e.sh
1158
1080
then
1159
- timeout 20m yarn test:e2e:chrome:flask --retries 2
1081
+ timeout 20m yarn test:e2e:chrome:flask --retries 2 --debug
1160
1082
fi
1161
1083
no_output_timeout : 5m
1162
1084
- store_artifacts :
@@ -1183,7 +1105,7 @@ jobs:
1183
1105
command : |
1184
1106
if .circleci/scripts/test-run-e2e.sh
1185
1107
then
1186
- timeout 20m yarn test:e2e:chrome:mmi --retries 2 --build-type=mmi
1108
+ timeout 20m yarn test:e2e:chrome:mmi --retries 2 --debug -- build-type=mmi
1187
1109
fi
1188
1110
no_output_timeout : 5m
1189
1111
- store_artifacts :
@@ -1199,7 +1121,6 @@ jobs:
1199
1121
- run : *shallow-git-clone
1200
1122
- attach_workspace :
1201
1123
at : .
1202
- - run : *check-mmi-optional
1203
1124
- run :
1204
1125
name : Move test build to dist
1205
1126
command : mv ./dist-test-mmi-playwright ./dist
@@ -1251,7 +1172,7 @@ jobs:
1251
1172
command : |
1252
1173
if .circleci/scripts/test-run-e2e.sh
1253
1174
then
1254
- timeout 20m yarn test:e2e:firefox --retries 2
1175
+ timeout 20m yarn test:e2e:firefox --retries 2 --debug
1255
1176
fi
1256
1177
no_output_timeout : 5m
1257
1178
- store_artifacts :
@@ -1650,4 +1571,4 @@ jobs:
1650
1571
steps :
1651
1572
- run :
1652
1573
name : All Tests Passed
1653
- command : echo 'whew - everything passed!'
1574
+ command : echo 'weew - everything passed!'
0 commit comments