Skip to content

Commit b593a6f

Browse files
authored
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.
1 parent 9e9be6c commit b593a6f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,23 @@ jobs:
376376
cp ./scripts/release/ci-npmrc ~/.npmrc
377377
scripts/release/publish.js --ci --tags << parameters.dist_tag >>
378378
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+
379396
workflows:
380397
version: 2
381398
stable:
@@ -427,6 +444,11 @@ workflows:
427444
- yarn_flow:
428445
requires:
429446
- 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
430452
- yarn_test:
431453
requires:
432454
- setup

0 commit comments

Comments
 (0)