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

Update monorepo to node 18 #10274

Merged
merged 214 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from 141 commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
3e3ccc3
Node 18
dckesler Sep 19, 2022
f834eb0
update truffle-ganache-ethereumjs dependencies
soloseng Feb 25, 2023
4925a77
fix build errors
soloseng Feb 25, 2023
4bfa245
split migration into JS & TS dir
soloseng Feb 25, 2023
855a0f2
build with latest node 18.14
soloseng Mar 1, 2023
bea2954
-- ganache.server promise wrapper
soloseng Mar 1, 2023
6964637
ignore migrations_ts js files
soloseng Mar 1, 2023
98408bd
sync with master
soloseng Mar 2, 2023
bb768d8
added resolutions
soloseng Mar 3, 2023
b3bbcad
Merge branch 'soloseng/syncing-with-master' into soloseng/ganache-upg…
soloseng Mar 4, 2023
91dca89
remove lib
soloseng Mar 4, 2023
cde57f8
removed leftover old dependencies
soloseng Mar 7, 2023
7955d93
fixed revert assersion error message
soloseng Mar 9, 2023
493fca7
WIP notes
soloseng Mar 17, 2023
f0addc4
WIP todos
soloseng Mar 17, 2023
0a6cfa9
updated web3 & ethereumjs in utils & protocol
soloseng Mar 28, 2023
861d5c3
++ ethereum-cryptography dependency
soloseng Mar 30, 2023
53adec3
Merge branch 'soloseng/fixing-test' into soloseng/update-web3-ethereumjs
soloseng Apr 1, 2023
ff4e7e8
Merge branch 'soloseng/fixing-gas-price'
soloseng Apr 1, 2023
8de0e9d
timeout fix
soloseng Apr 5, 2023
4be4285
-- comments
soloseng Apr 5, 2023
686659a
Fixed overflow test
soloseng Apr 5, 2023
a8c3288
Merge branch 'soloseng/ast-version_fix'
soloseng Apr 6, 2023
4b46543
Merge branch 'soloseng/fixing-test' into soloseng/update-web3-ethereumjs
soloseng Apr 6, 2023
e50fe29
using istanbul hardfork
soloseng Apr 18, 2023
00bb385
Merge branch 'soloseng/update-web3-ethereumjs' into soloseng/ganache-…
soloseng Apr 18, 2023
2c31969
Merge branch 'master' into soloseng/sync-with-master
soloseng Apr 18, 2023
45817fa
++ yarn.lock
soloseng Apr 18, 2023
5ef81c0
Merge branch 'soloseng/sync-with-master' into soloseng/ganache-upgrade
soloseng Apr 18, 2023
d4dedb8
update ganache & ethereumjs version
soloseng Apr 21, 2023
eb47b9b
- removed resolutions
soloseng Apr 22, 2023
d1bbcb3
Merge branch 'soloseng/ganache-upgrade' into soloseng/update-web3-eth…
soloseng Apr 22, 2023
65e88fa
built using latest web3
soloseng Apr 22, 2023
609116a
Updated ganache config
soloseng Apr 25, 2023
6693173
Specify gas and await tx receipt
soloseng Apr 25, 2023
8d70315
updated dependencies to fix cross-fecth bind error
soloseng Apr 25, 2023
ba21b7b
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Apr 26, 2023
4ba5ca8
updated yarn.lock
soloseng Apr 26, 2023
e09b884
updated node version in circleci docker file
soloseng Apr 26, 2023
3388635
updated expected error message
soloseng Apr 26, 2023
b4b0c70
ensure leading 0x instead of trimming
soloseng Apr 26, 2023
228ba70
increased jest version
soloseng Apr 26, 2023
aefc17f
Node 18.16.0
dckesler Apr 26, 2023
db11b41
- update node-fetch
soloseng Apr 26, 2023
bd3de96
Merge branch 'dckesler/ganache-upgrade' into soloseng/ganache-upgrade
soloseng Apr 26, 2023
885c8e0
Merge branch 'soloseng/update-web3-ethereumjs' into soloseng/ganache-…
soloseng Apr 26, 2023
e4d7a04
yarn installed using node 18.16.0
soloseng Apr 26, 2023
db592ca
Appease linter
soloseng Apr 26, 2023
4fb40d0
fixed import issue
soloseng Apr 26, 2023
e6d8842
use devchain chain copy
soloseng Apr 27, 2023
ce9f73f
using fixed jest version
soloseng Apr 27, 2023
4a699c5
disabled flake-traker
soloseng Apr 28, 2023
c8da898
generated CLI docs
soloseng Apr 28, 2023
96103b0
buypass jest_setup
soloseng Apr 28, 2023
2fc8f2b
ignored ts error due to properties mismatch
soloseng Apr 28, 2023
cf71f66
++ @types/node-fetch
soloseng Apr 28, 2023
12b2ae4
yarn.lock
soloseng Apr 28, 2023
9310a3d
using same @types/node-fetch where applicable
soloseng Apr 28, 2023
c021735
ts-ignored for abort-controller
soloseng Apr 28, 2023
6f776b7
Fix broken kit headers test
dckesler May 2, 2023
d752f69
temp force exit on contractkit test
soloseng May 3, 2023
cfe94ea
no detectOpenHandles
soloseng May 3, 2023
f3c0f89
Merge branch 'soloseng/force-exit-hanging-test' into soloseng/ganache…
soloseng May 3, 2023
d28cf49
Fix cross-fetch jest mocking issues
dckesler May 5, 2023
24a5f2c
lint fix
soloseng May 5, 2023
b1175ec
disabled verbose logs during testing
soloseng May 7, 2023
02fef9f
disabled rpc log in protocol test
soloseng May 7, 2023
e750d57
Disabled:
soloseng May 7, 2023
1ce3a12
removed disabled jobs from workflow
soloseng May 7, 2023
ad03f4c
supress test logs
soloseng May 7, 2023
42952af
disabled protocol test
soloseng May 7, 2023
ba1fa96
disabling flakey summary
soloseng May 7, 2023
9069cd5
disabled odis test
soloseng May 7, 2023
9c80542
increased resource class to xlarge
soloseng May 7, 2023
8431cc4
enaled protocol and odis CI test
soloseng May 7, 2023
d12b281
re-enabled
soloseng May 9, 2023
7955a97
Merge branch 'soloseng/modify-ci-config' into soloseng/ganache-upgrade
soloseng May 9, 2023
12ea5e9
enable phone-number-privacy test logs
soloseng May 9, 2023
d34d5d6
Fixing mocha issues in celotool tests
dckesler May 9, 2023
821fb8f
Change node to 18.14.0
dckesler May 10, 2023
2b93a03
Node 18.14.2
dckesler May 10, 2023
e8a0499
changed uniswap init code hash
soloseng May 10, 2023
f477d77
Revert "changed uniswap init code hash"
soloseng May 10, 2023
34861c1
fix unicode char in datetime format
soloseng May 11, 2023
a1e5c4c
Update e2e test docker image
dckesler May 11, 2023
8acee1a
verbose output
soloseng May 12, 2023
2620a2a
Pre-review cleanup
soloseng May 13, 2023
3b90f6d
appease linter
soloseng May 13, 2023
c63ffbe
removed dead code
soloseng May 13, 2023
6fa8c7f
deprecate defaultRpcCaller for httpRpcCaller
soloseng May 16, 2023
b2fd653
updated ganache-dev command
soloseng May 16, 2023
6808884
appease linter
soloseng May 16, 2023
0dcd40f
updated revert assertion with message
soloseng May 18, 2023
38685ac
downgraded truffle
soloseng May 18, 2023
a9cac7f
updated truffle version and config
soloseng May 19, 2023
ae8b2a0
add web3*@1.8.2 to resolutions
soloseng May 19, 2023
43f8a1c
Fixed stability test
soloseng May 19, 2023
b2c009b
removed resolutions
soloseng May 20, 2023
3e11de3
updated yarn lock
soloseng May 20, 2023
50bec2a
updated governance/network test revert messages
soloseng May 20, 2023
bccd968
updated protocol common test revert assertion msg
soloseng May 20, 2023
04a3d2c
appease linter
soloseng May 20, 2023
eca7b4f
using assertRevertWithReason
soloseng May 20, 2023
9368c6b
using assertRevertWithReason in governance/voting
soloseng May 20, 2023
8a64112
angry linter
soloseng May 20, 2023
6f70d37
using assertRevertWithReason in identity/
soloseng May 23, 2023
bff7b5d
fix linter issue
soloseng May 23, 2023
a408c1d
using `@ethereumjs/rlp` for RLP encoding
soloseng May 24, 2023
164ff0e
linter fix
soloseng May 24, 2023
2b5a71e
updated web3* dependencies
soloseng May 25, 2023
e83d779
specify type of transaction
soloseng May 25, 2023
b15eee7
removed verbose output
soloseng May 25, 2023
2fcf913
added `assertRevertWithoutReason()`
soloseng May 26, 2023
7221844
linting fix
soloseng May 26, 2023
77aa86f
added revert without msg for identity test
soloseng May 26, 2023
b30972d
updated deprecated functions
soloseng May 26, 2023
fde198b
distinguish between
soloseng May 27, 2023
1c2431e
fixed typing ignore
soloseng May 27, 2023
ce55171
specified gas, as gas estimations fails
soloseng May 27, 2023
39268e7
Merge branch 'master' into soloseng/sync-master
soloseng May 27, 2023
f39af3b
updated revert message in test
soloseng May 27, 2023
de797fa
updated yarn lock
soloseng May 27, 2023
033d6f5
updated yarn lock again
soloseng May 27, 2023
2a816cc
change docker image path
soloseng May 27, 2023
94cac6b
updated revert msg to match contract
soloseng May 27, 2023
224b4ca
Merge branch 'soloseng/sync-master' into soloseng/ganache-upgrade
soloseng May 27, 2023
c4e58e7
updated docs to match current node version
soloseng May 30, 2023
269aa7b
tracking issue in comment
soloseng May 30, 2023
74960e6
specified chain id
soloseng May 30, 2023
7ecaa3c
revert to default verbose output
soloseng May 30, 2023
998e981
removed debud logging
soloseng May 31, 2023
ab8296f
Merge branch 'master' into soloseng/ganache-upgrade
soloseng May 31, 2023
9a85b11
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso Jun 2, 2023
f0de102
GH Workflows run in node18 runners
jcortejoso Jun 2, 2023
12d6c6a
Force new node cache
jcortejoso Jun 2, 2023
060ffa4
Disable flake-tracker
jcortejoso Jun 2, 2023
f5502bb
prettify
jcortejoso Jun 2, 2023
7246063
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 3, 2023
4d3aee6
Updated test to revert with message
soloseng Jun 3, 2023
1de9f29
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 6, 2023
a3564c4
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 7, 2023
373fda7
quiet test
soloseng Jun 7, 2023
09c58c3
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 8, 2023
34280de
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 9, 2023
48c422c
fixed build errors
soloseng Jun 9, 2023
49f216d
updated scripts to better handle ts & js files
soloseng Jun 9, 2023
f6d071a
moved `artifactSingleton` file to lib/
soloseng Jun 9, 2023
cd45852
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 12, 2023
a27e86d
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jun 14, 2023
c386b13
added transaction type when using mento artifacts
soloseng Jun 14, 2023
93dc7d5
fix Migration test
soloseng Jun 14, 2023
31f5840
allow submodules in e2e matrix
soloseng Jun 14, 2023
4eb236d
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso Jun 20, 2023
c0ee6fb
python2 -> python (3)
jcortejoso Jun 20, 2023
6c8f094
using nvm to switch to node12 for pre-release test
soloseng Jun 26, 2023
22a2a05
∆ to trigger GH action
soloseng Jun 26, 2023
4b6629c
∆ to trigger full test in GH actions
soloseng Jun 26, 2023
acafbac
Using nvm for circleci image
jcortejoso Jun 26, 2023
db5df3c
Do not use nvm with circleci
jcortejoso Jun 26, 2023
910a706
use node12 to generate old release devchain
soloseng Jun 26, 2023
57f0009
reset and reinstall before cleaning
soloseng Jun 26, 2023
8a1fcff
set python2 in release branch
soloseng Jun 26, 2023
463a42c
installed python2
soloseng Jun 26, 2023
9a16941
added log
soloseng Jun 26, 2023
b886aa5
removed python2 install script
soloseng Jun 26, 2023
de5b770
set new release tag
soloseng Jun 26, 2023
f167a08
trigger all test
soloseng Jun 26, 2023
d44d920
WIP comments
soloseng Jun 26, 2023
d7dad8b
trigger all test
soloseng Jun 27, 2023
fbc89cb
CircleCi Build pre-protocol with node12
jcortejoso Jun 27, 2023
cdf6dc3
Circle node12 fix
jcortejoso Jun 27, 2023
16669e5
Adding python 2 and 3 to circleci image
jcortejoso Jun 27, 2023
c9a3637
run devchain from tar in detached mode
soloseng Jun 27, 2023
8329f64
++ comments
soloseng Jun 27, 2023
53096ff
updated release tag in circleCI config
soloseng Jun 28, 2023
3880bb2
Replace pull_request by pull_request_target
jcortejoso Jun 29, 2023
0aadd4c
bump MTWdeployer patch version
soloseng Jun 29, 2023
0e49b7b
testing bypass dryrun
soloseng Jun 29, 2023
fa043b9
loggin and force CI run
soloseng Jun 29, 2023
09d2681
removed false param
soloseng Jun 29, 2023
3fb39b8
revert change and added try catch
soloseng Jun 29, 2023
bc2c108
moved await
soloseng Jun 29, 2023
7050b50
added type to tx detail
soloseng Jun 29, 2023
037249f
included tx type in contract deployment
soloseng Jun 29, 2023
a6b7fff
increased logging level in ganache and truffle
soloseng Jun 30, 2023
5d56995
specified gas to deployment tx
soloseng Jun 30, 2023
18ae7b3
removed truffle debug logging
soloseng Jun 30, 2023
787392f
keep chaincopy
soloseng Jun 30, 2023
dac608b
removed debug logs
soloseng Jun 30, 2023
7d2e5c5
clean up redundant install
soloseng Jun 30, 2023
2b4ffb1
revert GH action trigger on current branch push
soloseng Jun 30, 2023
ffb07c9
remove comments
soloseng Jun 30, 2023
9eadf98
remove gas specfication
soloseng Jun 30, 2023
1945d60
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jul 10, 2023
3bde778
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jul 10, 2023
5a964cf
updated node version in docs
soloseng Jul 11, 2023
e553ae0
unskip migration test
soloseng Jul 11, 2023
6b3f017
PR feedback
soloseng Jul 14, 2023
81d87a3
revert back to skip
soloseng Jul 15, 2023
f6b2146
∆ forked packages to celo namespace
soloseng Jul 17, 2023
0e68b2c
reinstalled
soloseng Jul 17, 2023
7340798
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso Jul 18, 2023
d0fd9c9
cleanup TODO and comments
soloseng Jul 19, 2023
61752b0
python -> python3
jcortejoso Jul 19, 2023
3fae1da
updated node base images to 18
jcortejoso Jul 19, 2023
6c88c24
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso Jul 19, 2023
18b8c46
python -> python3
jcortejoso Jul 19, 2023
41feecb
Merge branch 'soloseng/ganache-upgrade' of github.com:celo-org/celo-m…
jcortejoso Jul 19, 2023
672c5e4
Updated netcat dependency
jcortejoso Jul 19, 2023
074a074
Fix build
jcortejoso Jul 19, 2023
f19034d
Fix build docker
jcortejoso Jul 19, 2023
06c90f1
force GH action test
soloseng Jul 19, 2023
643bcf2
removed flake-tracker
soloseng Jul 25, 2023
e3edd7e
Merge branch 'master' into soloseng/ganache-upgrade
soloseng Jul 29, 2023
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
61 changes: 31 additions & 30 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

version: 2.1


parameters:
# When you need to force a rebuild of the node modules cache then bump this version
node-modules-cache-version:
Expand All @@ -28,7 +27,7 @@ reference:
defaults: &defaults
working_directory: ~/app
docker:
- image: us.gcr.io/celo-testnet/circleci-node12:1.1.0
- image: us.gcr.io/celo-testnet/circleci-node18:1.0.0
environment:
# To avoid ENOMEM problem when running node
NODE_OPTIONS: '--max-old-space-size=4096'
Expand All @@ -41,7 +40,7 @@ contract-defaults: &contract-defaults
e2e-defaults: &e2e-defaults
<<: *defaults
docker:
- image: us-west1-docker.pkg.dev/devopsre/celo-monorepo/circleci-geth:latest
- image: us-west1-docker.pkg.dev/devopsre/clabs-public-images/circleci:node18.14-go1.16
environment:
CELO_BLOCKCHAIN_BRANCH_TO_TEST: release/1.7.x
general:
Expand Down Expand Up @@ -78,6 +77,9 @@ commands:
- run:
name: Install dependencies
command: |
# node-gyp needs to know where python is at when installed
yarn config set python $(which python3)

if [ ! -e ~/.tmp/yarn_deps_have_changed ]; then
# Though `yarn install` is instantaneous with up-to-date node_modules which is the case when we've restored cached node_modules,
# there's currently a bug with the generated node_modules/.yarn-integrity file which is apparently not entirely stable
Expand All @@ -91,7 +93,6 @@ commands:
yarn run postinstall
exit 0
fi

# Deals with yarn install flakiness which can come due to yarnpkg.com being
# unreliable. For example, https://circleci.com/gh/celo-org/celo-monorepo/82685
yarn install || yarn install || yarn install
Expand Down Expand Up @@ -128,7 +129,6 @@ jobs:
# Source: https://circleci.com/docs/2.0/configuration-reference/#resource_class
resource_class: large
steps:

- restore_cache:
keys:
- source-v1-{{ .Branch }}-{{ .Revision }}
Expand All @@ -154,7 +154,7 @@ jobs:
# Verify that following commands work, they are later called in the incremental testing script
# There output does not matter here, the fact that they finish successfully does.
git rev-parse --abbrev-ref HEAD
git fetch --all --tags
git fetch --all --tags -f

- attach_workspace:
at: ~/app
Expand Down Expand Up @@ -197,7 +197,8 @@ jobs:

general-test:
<<: *defaults
resource_class: large
# XXX (soloseng): Increased size because this test was hitting the ram limit and failing
resource_class: xlarge
steps:
- attach_workspace:
at: ~/app
Expand Down Expand Up @@ -234,6 +235,7 @@ jobs:
# crashes on the second re-install.
# This pre script, generates the build and devchain, and adds it to the workspace to be used for the
# other script

pre-protocol-test-release:
<<: *contract-defaults
resource_class: large
Expand Down Expand Up @@ -261,7 +263,6 @@ jobs:
root: .
paths:
- 'packages/protocol/.tmp/released_chain/*'

protocol-test-release:
<<: *contract-defaults
resource_class: large
Expand Down Expand Up @@ -730,7 +731,7 @@ jobs:
test-typescript-npm-package-install:
working_directory: ~/app
docker:
- image: us.gcr.io/celo-testnet/circleci-node12:1.1.0
- image: us.gcr.io/celo-testnet/circleci-node18:1.0.0
steps:
- run:
name: Check if the test should run
Expand All @@ -743,7 +744,7 @@ jobs:
test-utils-npm-package-install:
working_directory: ~/app
docker:
- image: us.gcr.io/celo-testnet/circleci-node12:1.1.0
- image: us.gcr.io/celo-testnet/circleci-node18:1.0.0
steps:
- run:
name: Check if the test should run
Expand All @@ -756,7 +757,7 @@ jobs:
test-contractkit-npm-package-install:
working_directory: ~/app
docker:
- image: us.gcr.io/celo-testnet/circleci-node12:1.1.0
- image: us.gcr.io/celo-testnet/circleci-node18:1.0.0
steps:
- run:
name: Check if the test should run
Expand All @@ -772,7 +773,7 @@ jobs:
test-celocli-npm-package-install:
working_directory: ~/app
docker:
- image: us.gcr.io/celo-testnet/circleci-node12:1.1.0
- image: us.gcr.io/celo-testnet/circleci-node18:1.0.0
steps:
- run:
name: Check if the test should run
Expand Down Expand Up @@ -992,24 +993,24 @@ workflows:
- 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
# - 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:
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defaults:

env:
# Increment these to force cache rebuilding
NODE_MODULE_CACHE_VERSION: 2
NODE_MODULE_CACHE_VERSION: 3
NODE_OPTIONS: '--max-old-space-size=4096'
TERM: dumb
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.configureondemand=true -Dorg.gradle.jvmargs="-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError"'
Expand All @@ -40,7 +40,7 @@ jobs:
# Adding a initial comma so ',<path>' matches also for the first file
all_modified_files: ",${{ steps.changed-files.outputs.all_modified_files }}"
# runs-on: ubuntu-latest
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
steps:
- name: Restore .git cache
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
- run: echo ",${{ steps.changed-files.outputs.all_modified_files }}"
lint-checks:
name: Lint code
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: install-dependencies
steps:
Expand All @@ -155,7 +155,7 @@ jobs:
- run: yarn run lint
general_test:
name: General jest test
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
needs: install-dependencies
steps:
- uses: actions/cache/restore@v3
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
path: test-results/jest
wallet-test:
name: Wallet test
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: install-dependencies
steps:
Expand All @@ -208,7 +208,7 @@ jobs:
yarn run lerna --scope '@celo/wallet-*' run test
pre-protocol-test-release:
name: Protocol Tests Prepare
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
# Comment lint-checks dependency to speed up (as this is a dependency for many other jobs)
# needs: [install-dependencies, lint-checks]
Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
yarn --cwd packages/protocol test:generate-old-devchain-and-build -b $RELEASE_TAG -d .tmp/released_chain -l /dev/stdout -g scripts/truffle/releaseGoldExampleConfigs.json
protocol-test-release:
name: Protocol Test Release
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies, lint-checks, pre-protocol-test-release]
if: |
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:
protocol-test-matrix:
# Keeping name short because GitHub UI does not handle long names well
name: ${{ matrix.name }}
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 60
needs: [install-dependencies, lint-checks]
if: |
Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:
${{ matrix.command }}
contractkit-tests:
name: ContractKit Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies]
if: |
Expand Down Expand Up @@ -381,7 +381,7 @@ jobs:
yarn --cwd=packages/sdk/contractkit test
identity-tests:
name: Identity Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies, contractkit-tests]
if: |
Expand Down Expand Up @@ -409,7 +409,7 @@ jobs:
yarn --cwd=packages/sdk/identity test
transactions-uri-tests:
name: Transaction URI Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies, contractkit-tests]
if: |
Expand Down Expand Up @@ -442,7 +442,7 @@ jobs:
yarn --cwd=packages/sdk/identity test
cli-tests:
name: CeloCli Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies]
if: |
Expand Down Expand Up @@ -481,7 +481,7 @@ jobs:
yarn --cwd=packages/cli run celocli account:new
typescript-tests:
name: Typescript package Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies]
if: |
Expand Down Expand Up @@ -509,7 +509,7 @@ jobs:
npm install $RUNNER_WORKSPACE/celo-monorepo/packages/typescript/*.tgz
base-test:
name: SDK Base package Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies]
if: |
Expand Down Expand Up @@ -543,7 +543,7 @@ jobs:
npm install $RUNNER_WORKSPACE/celo-monorepo/packages/sdk/base/*.tgz
utils-test:
name: SDK Utils package Tests
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies]
if: |
Expand Down Expand Up @@ -576,7 +576,7 @@ jobs:
end-to-end-geth-matrix:
# Keeping name short because GitHub UI does not handle long names well
name: e2e ${{ matrix.name }}
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 60
needs: [install-dependencies, lint-checks, contractkit-tests]
if: |
Expand Down Expand Up @@ -666,7 +666,7 @@ jobs:

odis-test:
name: ODIS test
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies, lint-checks]
if: |
Expand Down Expand Up @@ -698,7 +698,7 @@ jobs:
# NOTE: This has not been fully tested as we don't have a license for certora
certora-test:
name: Certora test ${{ matrix.name }}
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
timeout-minutes: 30
needs: [install-dependencies, lint-checks]
# Disable as certora license is not active
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-protocol-test-with-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# This seems to take ages and last codecov report is from 2021-02-25 :/
# https://app.codecov.io/gh/celo-org/celo-monorepo/commits
protocol-test-with-code-coverage:
runs-on: ["self-hosted", "monorepo"]
runs-on: ["self-hosted", "monorepo-node18"]
steps:
- uses: actions/checkout@v3
- name: Install yarn dependencies
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.22.7
18.14.2
6 changes: 3 additions & 3 deletions README-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This confirms that it is locally installable and does not have implicit dependen
```
# Specify the package to test. e.g. celocli, contractkit, utils
celo-monorepo $ PACKAGE=cli
celo-monorepo $ docker run --rm -v $PWD/packages/${PACKAGE}:/tmp/npm_package -it --entrypoint bash gcr.io/celo-testnet/circleci-node12:1.0.0
celo-monorepo $ docker run --rm -v $PWD/packages/${PACKAGE}:/tmp/npm_package -it --entrypoint bash gcr.io/celo-testnet/circleci-node18:1.0.0
circleci@e0d56700584f:/# mkdir /tmp/tmp1 && cd /tmp/tmp1
circleci@e0d56700584f:/tmp/tmp1# npm install /tmp/npm_package/
```
Expand Down Expand Up @@ -97,15 +97,15 @@ Once you publish do some manual tests, for example, after publishing `celocli`

```
# Docker for an isolated environment again
celo-monorepo $ docker run --rm -it --entrypoint bash gcr.io/celo-testnet/circleci-node12:1.0.0
celo-monorepo $ docker run --rm -it --entrypoint bash gcr.io/celo-testnet/circleci-node18:1.0.0
circleci@7040a7660754:/$ mkdir /tmp/tmp1 && cd /tmp/tmp1
circleci@7040a7660754:/tmp/tmp1$ npm install @celo/[email protected]
...
circleci@7040a7660754:/tmp/tmp1$ ./node_modules/.bin/celocli
CLI Tool for transacting with the Celo protocol

VERSION
@celo/celocli/0.0.48 linux-x64 node-v12.21.0
@celo/celocli/1.6.3 linux-x64 node-v18.14.2

USAGE
$ celocli [COMMAND]
Expand Down
3 changes: 2 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ Open ports without an accompanying proof-of-concept demonstrating vulnerability

```
PGP Fingerprint ID: A22B62A5EAFB6948
```
```

6 changes: 3 additions & 3 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ Once you have go installed run the following to install gobind

#### Install Node

Currently Node.js v12.x is required in order to work with this repo.
Currently Node.js v18.14.2 is required in order to work with this repo.

Install `nvm` (allows you to manage multiple versions of Node) by following the [instructions here](https://github.com/nvm-sh/nvm).

Once `nvm` is successfully installed, restart the terminal and run the following commands to install the `npm` versions that [celo-monorepo](https://github.com/celo-org/celo-monorepo) will need:

```bash
# restart the terminal after installing nvm
nvm install 12
nvm alias default 12
nvm install 18.14.2
nvm alias default 18.14.2
```

### MacOS
Expand Down
Loading