Skip to content

Commit 273edd2

Browse files
committed
CI: Switch from deprecated circleci/node images to cimg/node
1 parent 489fa38 commit 273edd2

File tree

1 file changed

+38
-24
lines changed

1 file changed

+38
-24
lines changed

.circleci/config.yml

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,15 @@ defaults:
428428

429429
- base_python_small: &base_python_small
430430
docker:
431-
- image: circleci/python:3.6
431+
- image: cimg/python:3.6
432432
resource_class: small
433433
environment:
434434
TERM: xterm
435435
MAKEFLAGS: -j 2
436436

437437
- base_node_small: &base_node_small
438438
docker:
439-
- image: circleci/node
439+
- image: cimg/node:current
440440
resource_class: small
441441
environment:
442442
TERM: xterm
@@ -537,113 +537,113 @@ defaults:
537537
project: colony
538538
binary_type: solcjs
539539
compile_only: 1
540-
nodejs_version: '14'
540+
nodejs_version: '14.20'
541+
python2: true
541542

542543
- job_native_test_ext_gnosis: &job_native_test_ext_gnosis
543544
<<: *workflow_ubuntu2004_static
544545
name: t_native_test_ext_gnosis
545546
project: gnosis
546547
binary_type: native
547-
# NOTE: Tests crash on nodejs 17: "Error: error:0308010C:digital envelope routines::unsupported"
548-
nodejs_version: '16'
548+
nodejs_version: '16.18'
549549
- job_native_test_ext_zeppelin: &job_native_test_ext_zeppelin
550550
<<: *workflow_ubuntu2004_static
551551
name: t_native_test_ext_zeppelin
552552
project: zeppelin
553553
binary_type: native
554-
# NOTE: Tests crash on nodejs 17: "Error: error:0308010C:digital envelope routines::unsupported"
555-
nodejs_version: '16'
554+
nodejs_version: '16.18'
556555
resource_class: large
557556
- job_native_test_ext_ens: &job_native_test_ext_ens
558557
<<: *workflow_ubuntu2004_static
559558
name: t_native_test_ext_ens
560559
project: ens
561560
binary_type: native
562-
nodejs_version: '16'
561+
nodejs_version: '16.18'
563562
- job_native_test_ext_trident: &job_native_test_ext_trident
564563
<<: *workflow_ubuntu2004_static
565564
name: t_native_test_ext_trident
566565
project: trident
567566
binary_type: native
568-
nodejs_version: '16'
567+
nodejs_version: '16.18'
569568
- job_native_test_ext_euler: &job_native_test_ext_euler
570569
<<: *workflow_ubuntu2004_static
571570
name: t_native_test_ext_euler
572571
project: euler
573572
binary_type: native
574-
nodejs_version: '16'
573+
nodejs_version: '16.18'
575574
resource_class: medium
576575
- job_native_test_ext_yield_liquidator: &job_native_test_ext_yield_liquidator
577576
<<: *workflow_ubuntu2004_static
578577
name: t_native_test_ext_yield_liquidator
579578
project: yield-liquidator
580579
binary_type: native
581-
nodejs_version: '16'
580+
nodejs_version: '16.18'
582581
- job_native_test_ext_bleeps: &job_native_test_ext_bleeps
583582
<<: *workflow_ubuntu2004_static
584583
name: t_native_test_ext_bleeps
585584
project: bleeps
586585
binary_type: native
587-
nodejs_version: '16'
586+
nodejs_version: '16.18'
588587
resource_class: medium
589588
- job_native_test_ext_pool_together: &job_native_test_ext_pool_together
590589
<<: *workflow_ubuntu2004_static
591590
name: t_native_test_ext_pool_together
592591
project: pool-together
593592
binary_type: native
594-
nodejs_version: '16'
593+
nodejs_version: '16.18'
595594
- job_native_test_ext_perpetual_pools: &job_native_test_ext_perpetual_pools
596595
<<: *workflow_ubuntu2004_static
597596
name: t_native_test_ext_perpetual_pools
598597
project: perpetual-pools
599598
binary_type: native
600-
nodejs_version: '16'
599+
nodejs_version: '16.18'
601600
- job_native_test_ext_uniswap: &job_native_test_ext_uniswap
602601
<<: *workflow_ubuntu2004_static
603602
name: t_native_test_ext_uniswap
604603
project: uniswap
605604
binary_type: native
606-
nodejs_version: '16'
605+
nodejs_version: '16.18'
607606
- job_native_test_ext_prb_math: &job_native_test_ext_prb_math
608607
<<: *workflow_ubuntu2004_static
609608
name: t_native_test_ext_prb_math
610609
project: prb-math
611610
binary_type: native
612-
nodejs_version: '16'
611+
nodejs_version: '16.18'
613612
- job_native_test_ext_elementfi: &job_native_test_ext_elementfi
614613
<<: *workflow_ubuntu2004_static
615614
name: t_native_test_ext_elementfi
616615
project: elementfi
617616
binary_type: native
618-
nodejs_version: '16'
617+
nodejs_version: '16.18'
619618
resource_class: medium
620619
- job_native_test_ext_brink: &job_native_test_ext_brink
621620
<<: *workflow_ubuntu2004_static
622621
name: t_native_test_ext_brink
623622
project: brink
624623
binary_type: native
625-
nodejs_version: '16'
624+
nodejs_version: '16.18'
626625
- job_native_test_ext_chainlink: &job_native_test_ext_chainlink
627626
<<: *workflow_ubuntu2004_static
628627
name: t_native_test_ext_chainlink
629628
project: chainlink
630629
binary_type: native
631-
nodejs_version: '16'
630+
nodejs_version: '16.18'
632631
resource_class: large # Tests run out of memory on a smaller machine
633632
- job_native_test_ext_gp2: &job_native_test_ext_gp2
634633
<<: *workflow_ubuntu2004_static
635634
name: t_native_test_ext_gp2
636635
project: gp2
637636
binary_type: native
638637
# NOTE: Tests crash on nodejs 17: "Error: error:0308010C:digital envelope routines::unsupported"
639-
nodejs_version: '16'
638+
nodejs_version: '16.18'
640639
- job_ems_test_ext_colony: &job_ems_test_ext_colony
641640
<<: *workflow_emscripten
642641
name: t_ems_test_ext_colony
643642
project: colony
644643
binary_type: solcjs
645-
nodejs_version: '14'
644+
nodejs_version: '14.20'
646645
resource_class: medium
646+
python2: true
647647

648648
- job_b_ubu_asan_clang: &job_b_ubu_asan_clang
649649
<<: *workflow_trigger_on_tags
@@ -1178,7 +1178,7 @@ jobs:
11781178
t_ems_ext_hardhat:
11791179
<<: *base_node_small
11801180
docker:
1181-
- image: circleci/node:16
1181+
- image: cimg/node:16.18
11821182
environment:
11831183
TERM: xterm
11841184
HARDHAT_TESTS_SOLC_PATH: /tmp/workspace/soljson.js
@@ -1217,12 +1217,15 @@ jobs:
12171217
default: 0
12181218
nodejs_version:
12191219
type: string
1220-
default: latest
1220+
default: current
12211221
resource_class:
12221222
type: string
12231223
default: small
1224+
python2:
1225+
type: boolean
1226+
default: false
12241227
docker:
1225-
- image: circleci/node:<<parameters.nodejs_version>>
1228+
- image: cimg/node:<<parameters.nodejs_version>>
12261229
resource_class: <<parameters.resource_class>>
12271230
# NOTE: Each external test runs up to 6 independent settings presets. If parallelism is higher than
12281231
# actual preset count, some runs will exit immediately. If it's lower, some runs will get more than one preset.
@@ -1238,7 +1241,18 @@ jobs:
12381241
name: Install lsof
12391242
command: |
12401243
# lsof is used by Colony in its stop-blockchain-client.sh script
1244+
sudo apt update
12411245
sudo apt-get --quiet --assume-yes --no-install-recommends install lsof
1246+
- when:
1247+
condition: << parameters.python2 >>
1248+
steps:
1249+
- run:
1250+
name: Install Python 2 and make it the default
1251+
command: |
1252+
# python is used by node-gyp to build native modules (needed for Colony).
1253+
# In the 14.x image node-gyp still requires Python 2.
1254+
sudo apt install python2 --assume-yes --no-install-recommends
1255+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
12421256
- when:
12431257
condition:
12441258
equal: [<< parameters.binary_type >>, "solcjs"]

0 commit comments

Comments
 (0)