-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into martinvol/CR10_master (but still some buil…
…d errors)
- Loading branch information
Showing
701 changed files
with
8,667 additions
and
67,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,21 @@ | |
# and https://github.com/facebook/react-native/blob/master/.circleci/config.yml | ||
|
||
version: 2.1 | ||
setup: true | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
|
||
parameters: | ||
run-workflow-general: | ||
type: boolean | ||
default: false | ||
run-workflow-npm-install: | ||
type: boolean | ||
default: false | ||
run-workflow-protocol-coverage: | ||
type: boolean | ||
default: false | ||
# When you need to force a rebuild of the node modules cache then bump this version | ||
node-modules-cache-version: | ||
type: integer | ||
|
@@ -38,8 +48,7 @@ defaults: &defaults | |
contract-defaults: &contract-defaults | ||
<<: *defaults | ||
environment: | ||
# RELEASE_TAG: core-contracts.v9 | ||
RELEASE_TAG: ganache-v7-core-contracts.v9 | ||
RELEASE_TAG: core-contracts.v10 | ||
|
||
e2e-defaults: &e2e-defaults | ||
<<: *defaults | ||
|
@@ -201,8 +210,7 @@ jobs: | |
|
||
general-test: | ||
<<: *defaults | ||
# XXX (soloseng): Increased size because this test was hitting the ram limit and failing | ||
resource_class: large | ||
resource_class: xlarge | ||
steps: | ||
- attach_workspace: | ||
at: ~/app | ||
|
@@ -217,7 +225,6 @@ jobs: | |
--ignore @celo/celotool \ | ||
--ignore @celo/celocli \ | ||
--ignore @celo/env-tests \ | ||
--ignore @celo/identity \ | ||
--ignore @celo/transactions-uri \ | ||
--ignore '@celo/wallet-*' \ | ||
run test | ||
|
@@ -254,6 +261,7 @@ jobs: | |
name: Opcode tests | ||
command: yarn --cwd packages/protocol check-opcodes | ||
- node/install: | ||
# TODO(soloseng): remove this node 12 install once the latest contract release is done on node18. | ||
install-yarn: true | ||
node-version: '12.22.11' | ||
- run: | ||
|
@@ -452,28 +460,6 @@ jobs: | |
name: Run Tests | ||
command: yarn --cwd=packages/sdk/contractkit test | ||
|
||
# extrated to reuse the devchain generated by contractkit | ||
identity-tests: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/app | ||
- run: | ||
name: Check if the test should run | ||
command: | | ||
./scripts/ci_check_if_test_should_run_v2.sh @celo/identity | ||
# - run: | ||
# name: Copy DevChain generated by Contractkit | ||
# command: | | ||
# (cp -r packages/sdk/contractkit/.tmp packages/sdk/identity/.tmp) | ||
- run: | ||
name: Generate DevChain | ||
command: | | ||
(cd packages/sdk/identity && yarn test:reset) | ||
- run: | ||
name: Run Tests | ||
command: yarn --cwd=packages/sdk/identity test | ||
|
||
# extrated to reuse the devchain generated by contractkit | ||
transactions-uri-tests: | ||
<<: *defaults | ||
|
@@ -793,29 +779,6 @@ jobs: | |
name: Minor test of celocli | ||
command: ./node_modules/.bin/celocli account:new # Small test | ||
|
||
odis-test: | ||
<<: *defaults | ||
# Source: https://circleci.com/docs/2.0/configuration-reference/#resource_class | ||
resource_class: large | ||
steps: | ||
- attach_workspace: | ||
at: ~/app | ||
- run: | ||
name: Check if the test should run | ||
command: | | ||
./scripts/ci_check_if_test_should_run_v2.sh @celo/phone-number-privacy-signer,@celo/phone-number-privacy-combiner,@celo/phone-number-privacy-common | ||
- run: | ||
name: Run Tests for common package | ||
command: yarn --cwd=packages/phone-number-privacy/common test:coverage | ||
- run: | ||
name: Run Tests for combiner | ||
no_output_timeout: 30m | ||
command: yarn --cwd=packages/phone-number-privacy/combiner test:coverage | ||
- run: | ||
name: Run Tests for signer | ||
no_output_timeout: 30m | ||
command: yarn --cwd=packages/phone-number-privacy/signer test:coverage | ||
|
||
certora-test: | ||
working_directory: ~/app | ||
docker: | ||
|
@@ -885,20 +848,21 @@ jobs: | |
cd packages/protocol | ||
./specs/scripts/reserve.sh | ||
fi | ||
flakey-test-summary: | ||
<<: *defaults | ||
# Dummy job for not showing CircleCI error: "Error: All Workflows have been filtered from this Pipeline" | ||
# Check https://github.com/CircleCI-Public/circleci-cli/issues/577 for more context | ||
noop: | ||
docker: | ||
- image: cimg/base:current | ||
resource_class: small | ||
steps: | ||
- attach_workspace: | ||
at: ~/app | ||
- run: | ||
name: Add summary of flakey tests to GitHub Checks | ||
command: | | ||
node ./packages/flake-tracker/scripts/summary.js | ||
- run: echo "noop" | ||
|
||
workflows: | ||
version: 2 | ||
celo-monorepo-build: | ||
# Contitionally triggered | ||
when: | ||
or: [<< pipeline.parameters.run-workflow-general >>] | ||
jobs: | ||
- install_dependencies | ||
- certora-test: | ||
|
@@ -919,12 +883,6 @@ workflows: | |
- wallets-test: | ||
requires: | ||
- install_dependencies | ||
- identity-tests: | ||
requires: | ||
- contractkit-test | ||
- transactions-uri-tests: | ||
requires: | ||
- contractkit-test | ||
- pre-protocol-test-release: | ||
requires: | ||
- lint-checks | ||
|
@@ -997,52 +955,18 @@ workflows: | |
requires: | ||
- lint-checks | ||
- contractkit-test | ||
- odis-test: | ||
requires: | ||
- lint-checks | ||
# - flakey-test-summary: | ||
# requires: | ||
# - protocol-test-common | ||
# - protocol-test-compatibility | ||
# - protocol-test-governance-network | ||
# - protocol-test-governance-validators | ||
# - protocol-test-governance-voting | ||
# - protocol-test-identity | ||
# - protocol-test-stability | ||
# - end-to-end-geth-transfer-test | ||
# - end-to-end-geth-blockchain-parameters-test | ||
# - end-to-end-geth-slashing-test | ||
# - end-to-end-geth-governance-test | ||
# - end-to-end-geth-replica-test | ||
# - end-to-end-geth-sync-test | ||
# - end-to-end-geth-validator-order-test | ||
# - end-to-end-cip35-eth-compatibility-test | ||
# - odis-test | ||
npm-install-testing-cron-workflow: | ||
triggers: | ||
- schedule: | ||
# 7 PM in UTC = noon in PDT. | ||
# Best for test to fail during SF afternoon, so that, someone can fix it during the day time. | ||
cron: '0 19 * * *' | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
# Contitionally triggered | ||
when: | ||
or: [<< pipeline.parameters.run-workflow-npm-install >>] | ||
jobs: | ||
- test-typescript-npm-package-install | ||
- test-utils-npm-package-install | ||
- test-contractkit-npm-package-install | ||
- test-celocli-npm-package-install | ||
protocol-testing-with-code-coverage-cron-workflow: | ||
triggers: | ||
- schedule: | ||
# 1 PM in UTC = 6 AM in PDT. | ||
# Best for this slow test (~3 hours) to run during SF early morning. | ||
cron: '0 13 * * *' | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
when: | ||
or: [<< pipeline.parameters.run-workflow-protocol-coverage >>] | ||
jobs: | ||
- install_dependencies | ||
- lint-checks: | ||
|
@@ -1051,3 +975,8 @@ workflows: | |
- protocol-test-with-code-coverage: | ||
requires: | ||
- lint-checks | ||
# Dummy job for not showing CircleCI error: "Error: All Workflows have been filtered from this Pipeline" | ||
# Check https://github.com/CircleCI-Public/circleci-cli/issues/577 for more context | ||
no-changes: | ||
jobs: | ||
- noop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.