Skip to content

Commit b99ac3d

Browse files
authored
Migrate remaining tests to combined workflow (facebook#20577)
1 parent 9a6a41d commit b99ac3d

File tree

1 file changed

+39
-173
lines changed

1 file changed

+39
-173
lines changed

.circleci/config.yml

Lines changed: 39 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -104,139 +104,6 @@ jobs:
104104
- *restore_node_modules
105105
- run: node ./scripts/tasks/flow-ci
106106

107-
yarn_test-stable:
108-
docker: *docker
109-
environment: *environment
110-
parallelism: *TEST_PARALLELISM
111-
112-
steps:
113-
- checkout
114-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
115-
- *restore_node_modules
116-
- run: yarn test-stable --ci
117-
118-
yarn_test:
119-
docker: *docker
120-
environment: *environment
121-
parallelism: *TEST_PARALLELISM
122-
steps:
123-
- checkout
124-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
125-
- *restore_node_modules
126-
- run: yarn test --ci
127-
128-
yarn_test-classic:
129-
docker: *docker
130-
environment: *environment
131-
parallelism: *TEST_PARALLELISM
132-
steps:
133-
- checkout
134-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
135-
- *restore_node_modules
136-
- run: yarn test-classic --ci
137-
138-
yarn_test-classic_variant:
139-
docker: *docker
140-
environment: *environment
141-
parallelism: *TEST_PARALLELISM
142-
steps:
143-
- checkout
144-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
145-
- *restore_node_modules
146-
- run: yarn test-classic --variant --ci
147-
148-
yarn_test-classic_prod:
149-
docker: *docker
150-
environment: *environment
151-
parallelism: *TEST_PARALLELISM
152-
steps:
153-
- checkout
154-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
155-
- *restore_node_modules
156-
- run: yarn test-classic --prod --ci
157-
158-
yarn_test-classic_prod_variant:
159-
docker: *docker
160-
environment: *environment
161-
parallelism: *TEST_PARALLELISM
162-
steps:
163-
- checkout
164-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
165-
- *restore_node_modules
166-
- run: yarn test-classic --prod --variant --ci
167-
168-
yarn_test-www:
169-
docker: *docker
170-
environment: *environment
171-
parallelism: *TEST_PARALLELISM
172-
steps:
173-
- checkout
174-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
175-
- *restore_node_modules
176-
- run: yarn test-www --ci
177-
178-
yarn_test-www_variant:
179-
docker: *docker
180-
environment: *environment
181-
parallelism: *TEST_PARALLELISM
182-
steps:
183-
- checkout
184-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
185-
- *restore_node_modules
186-
- run: yarn test-www --variant --ci
187-
188-
yarn_test-www_prod:
189-
docker: *docker
190-
environment: *environment
191-
parallelism: *TEST_PARALLELISM
192-
steps:
193-
- checkout
194-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
195-
- *restore_node_modules
196-
- run: yarn test-www --prod --ci
197-
198-
yarn_test-www_prod_variant:
199-
docker: *docker
200-
environment: *environment
201-
parallelism: *TEST_PARALLELISM
202-
steps:
203-
- checkout
204-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
205-
- *restore_node_modules
206-
- run: yarn test-www --prod --variant --ci
207-
208-
yarn_test-stable_persistent:
209-
docker: *docker
210-
environment: *environment
211-
parallelism: *TEST_PARALLELISM
212-
213-
steps:
214-
- checkout
215-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
216-
- *restore_node_modules
217-
- run: yarn test-stable --persistent --ci
218-
219-
yarn_test-stable_prod:
220-
docker: *docker
221-
environment: *environment
222-
parallelism: *TEST_PARALLELISM
223-
224-
steps:
225-
- checkout
226-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
227-
- *restore_node_modules
228-
- run: yarn test-stable --prod --ci
229-
230-
yarn_test_prod:
231-
docker: *docker
232-
environment: *environment
233-
parallelism: *TEST_PARALLELISM
234-
steps:
235-
- checkout
236-
- run: yarn workspaces info | head -n -1 > workspace_info.txt
237-
- *restore_node_modules
238-
- run: yarn test --prod --ci
239-
240107
RELEASE_CHANNEL_stable_yarn_build:
241108
docker: *docker
242109
environment: *environment
@@ -455,6 +322,19 @@ jobs:
455322
command: yarn lint-build
456323
- run: scripts/circleci/check_minified_errors.sh
457324

325+
yarn_test:
326+
docker: *docker
327+
environment: *environment
328+
parallelism: *TEST_PARALLELISM
329+
parameters:
330+
args:
331+
type: string
332+
steps:
333+
- checkout
334+
- run: yarn workspaces info | head -n -1 > workspace_info.txt
335+
- *restore_node_modules
336+
- run: yarn test <<parameters.args>> --ci
337+
458338
yarn_test_build:
459339
docker: *docker
460340
environment: *environment
@@ -512,27 +392,6 @@ workflows:
512392
- yarn_flow:
513393
requires:
514394
- setup
515-
- yarn_test-stable:
516-
requires:
517-
- setup
518-
- yarn_test-stable_prod:
519-
requires:
520-
- setup
521-
- yarn_test-stable_persistent:
522-
requires:
523-
- setup
524-
- yarn_test-classic:
525-
requires:
526-
- setup
527-
- yarn_test-classic_variant:
528-
requires:
529-
- setup
530-
- yarn_test-classic_prod:
531-
requires:
532-
- setup
533-
- yarn_test-classic_prod_variant:
534-
requires:
535-
- setup
536395
- RELEASE_CHANNEL_stable_yarn_build:
537396
requires:
538397
- setup
@@ -552,24 +411,6 @@ workflows:
552411
experimental:
553412
jobs:
554413
- setup
555-
- yarn_test:
556-
requires:
557-
- setup
558-
- yarn_test_prod:
559-
requires:
560-
- setup
561-
- yarn_test-www:
562-
requires:
563-
- setup
564-
- yarn_test-www_variant:
565-
requires:
566-
- setup
567-
- yarn_test-www_prod:
568-
requires:
569-
- setup
570-
- yarn_test-www_prod_variant:
571-
requires:
572-
- setup
573414
- yarn_build:
574415
requires:
575416
- setup
@@ -597,9 +438,33 @@ workflows:
597438
- master
598439

599440
# New workflow that will replace "stable" and "experimental"
600-
combined:
441+
build_and_test:
601442
jobs:
602443
- setup
444+
- yarn_test:
445+
requires:
446+
- setup
447+
matrix:
448+
parameters:
449+
args:
450+
# Intentionally passing these as strings instead of creating a
451+
# separate parameter per CLI argument, since it's easier to
452+
# control/see which combinations we want to run.
453+
- "-r=stable --env=development"
454+
- "-r=stable --env=production"
455+
- "-r=experimental --env=development"
456+
- "-r=experimental --env=production"
457+
- "-r=www-classic --env=development"
458+
- "-r=www-classic --env=production"
459+
- "-r=www-classic --env=development --variant"
460+
- "-r=www-classic --env=production --variant"
461+
- "-r=www-modern --env=development"
462+
- "-r=www-modern --env=production"
463+
- "-r=www-modern --env=development --variant"
464+
- "-r=www-modern --env=production --variant"
465+
466+
# TODO: Test more persistent configurations?
467+
- '-r=stable --env=development --persistent'
603468
- yarn_build_combined:
604469
requires:
605470
- setup
@@ -633,6 +498,7 @@ workflows:
633498
# - "-r=www-modern --env=development --variant"
634499
# - "-r=www-modern --env=production --variant"
635500

501+
# TODO: Test more persistent configurations?
636502
fuzz_tests:
637503
triggers:
638504
- schedule:

0 commit comments

Comments
 (0)