CI job to check that forks are in sync (#20795)
We don't always keep the reconciler forks in sync (otherwise it we wouldn't have forked it) but during periods when they are meant to be in sync, we use this job to confirm there are no differences.
Andrew Clark committed
Feb 10, 2021 at 18:09 UTC
b593a6f778e3042e57d71f98d2e0dca716e8ebb2
1 file changed
+22
.circleci/config.yml
+22
@@ -376,6 +376,23 @@ jobs:
376
cp ./scripts/release/ci-npmrc ~/.npmrc
377
scripts/release/publish.js --ci --tags << parameters.dist_tag >>
378
379
+ # We don't always keep the reconciler forks in sync (otherwise it we wouldn't
380
+ # have forked it) but during periods when they are meant to be in sync, we
381
+ # use this job to confirm there are no differences.
382
+ sync_reconciler_forks:
383
+ docker: *docker
384
+ environment: *environment
385
+ steps:
386
+ - checkout
387
+ - run: yarn workspaces info | head -n -1 > workspace_info.txt
388
+ - *restore_node_modules
389
+ - run:
390
+ name: Confirm reconciler forks are the same
391
+ command: |
392
+ yarn replace-fork
393
+ git diff --quiet || (echo "Reconciler forks are not the same! Run yarn replace-fork. Or, if this was intentional, disable this CI check." && false)
394
+
395
+
396
workflows:
397
version: 2
398
stable:
@@ -427,6 +444,11 @@ workflows:
444
- yarn_flow:
445
requires:
446
- setup
447
+ # NOTE: This job is only enabled when we want the forks to be in sync.
448
+ # When the forks intentionally diverge, comment out the job to disable it.
449
+ - sync_reconciler_forks:
450
+ requires:
451
+ - setup
452
- yarn_test:
453
requires:
454
- setup