Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: specify a monorepo commit rather than a branch #1625

Merged
merged 1 commit into from
Aug 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,20 @@ executors:
working_directory: ~/repos/celo-monorepo/packages/celotool
environment:
GO_VERSION: "1.16.4"
CELO_MONOREPO_BRANCH_TO_TEST: master
# CELO_MONOREPO_COMMIT_OR_BRANCH should point to a monorepo commit which is known to work, so that
# our CI doesn't break due to another team making changes in monorepo.
# * It should be updated when:
# (a) changes or additions are made to the blockchain e2e tests in celo-monorepo, or
# (b) a new contracts release has been merged to monorepo's master
# In the latter case, we need to check whether the new contract release breaks things and update the mycelo
# contracts ABI and migrations accordingly if necessary.
# * When updating it, update the comment with (a) the branch or commit hash, (b) the date of the change, and
# (c) the contracts release it includes (`RELEASE_TAG` in the monorepo)

# b16a2d472a7cf24858f9d8b33a7185c8b81a261a is the current commit on master as of August 25, 2021, and
# includes contracts release 5 (core-contracts.v5)
CELO_MONOREPO_COMMIT_OR_BRANCH: b16a2d472a7cf24858f9d8b33a7185c8b81a261a

GITHUB_RSA_FINGERPRINT: SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
jobs:
build-geth:
Expand Down Expand Up @@ -210,8 +223,10 @@ jobs:
set -e
mkdir ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-keygen -F github.com -l -f ~/.ssh/known_hosts | grep "github.com RSA ${GITHUB_RSA_FINGERPRINT}"
git clone --depth 1 https://github.com/celo-org/celo-monorepo.git celo-monorepo -b ${CELO_MONOREPO_BRANCH_TO_TEST}
git clone --depth 1 https://github.com/celo-org/celo-monorepo.git celo-monorepo
cd celo-monorepo
git fetch --depth 1 origin ${CELO_MONOREPO_COMMIT_OR_BRANCH}
git checkout ${CELO_MONOREPO_COMMIT_OR_BRANCH}
yarn install || yarn install
yarn build --scope @celo/celotool --include-filtered-dependencies
- run:
Expand Down