Skip to content

Commit 2b98224

Browse files
committed
CI job to check that forks are in sync
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 eee874c commit 2b98224

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
@@ -375,6 +375,23 @@ jobs:
375375
cp ./scripts/release/ci-npmrc ~/.npmrc
376376
scripts/release/publish.js --ci --tags << parameters.dist_tag >>
377377
378+
# We don't always keep the reconciler forks in sync (otherwise it we wouldn't
379+
# have forked it) but during periods when they are meant to be in sync, we
380+
# use this job to confirm there are no differences.
381+
sync_reconciler_forks:
382+
docker: *docker
383+
environment: *environment
384+
steps:
385+
- checkout
386+
- run: yarn workspaces info | head -n -1 > workspace_info.txt
387+
- *restore_node_modules
388+
- run:
389+
name: Confirm reconciler forks are the same
390+
command: |
391+
yarn replace-fork
392+
git diff --exit-code || echo "Reconciler forks are not the same! Run `yarn replace-fork`. Or, if this was intentional, disable this CI check." && false
393+
394+
378395
workflows:
379396
version: 2
380397
stable:
@@ -426,6 +443,11 @@ workflows:
426443
unless: << pipeline.parameters.prerelease_commit_sha >>
427444
jobs:
428445
- setup
446+
# NOTE: This job is only enabled when we want the forks to be in sync.
447+
# When the forks intentionally diverge, comment out the job to disable it.
448+
- sync_reconciler_forks:
449+
requires:
450+
- setup
429451
- yarn_test:
430452
requires:
431453
- setup

0 commit comments

Comments
 (0)