Skip to content

Commit 0bbfe45

Browse files
authored
Merge pull request #8936 from ethereum/develop
Merge develop into release for 0.6.8.
2 parents b8d736a + f83ef23 commit 0bbfe45

File tree

637 files changed

+7009
-1606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

637 files changed

+7009
-1606
lines changed

.circleci/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ The docker images are build locally on the developer machine:
77
```sh
88
cd .circleci/docker/
99

10-
docker build -t ethereum/solidity-buildpack-deps:ubuntu1904-<revision> -f Dockerfile.ubuntu1904 .
11-
docker push ethereum/solidity-buildpack-deps:ubuntu1904-<revision>
10+
docker build -t ethereum/solidity-buildpack-deps:ubuntu2004-<revision> -f Dockerfile.ubuntu2004 .
11+
docker push ethereum/solidity-buildpack-deps:ubuntu2004-<revision>
1212
```
1313

14-
The current revisions per docker image are stored in [circle ci pipeline parameters](https://github.com/CircleCI-Public/api-preview-docs/blob/master/docs/pipeline-parameters.md#pipeline-parameters) called `<image-desc>-docker-image-rev` (e.g., `ubuntu-1904-docker-image-rev`). Please update the value assigned to the parameter(s) corresponding to the docker image(s) being updated at the time of the update. Please verify that the value assigned to the parameter matches the revision part of the docker image tag (`<revision>` in the docker build/push snippet shown above). Otherwise, the docker image used by circle ci and the one actually pushed to docker hub will differ.
14+
The current revisions per docker image are stored in [circle ci pipeline parameters](https://github.com/CircleCI-Public/api-preview-docs/blob/master/docs/pipeline-parameters.md#pipeline-parameters) called `<image-desc>-docker-image-rev` (e.g., `ubuntu-2004-docker-image-rev`). Please update the value assigned to the parameter(s) corresponding to the docker image(s) being updated at the time of the update. Please verify that the value assigned to the parameter matches the revision part of the docker image tag (`<revision>` in the docker build/push snippet shown above). Otherwise, the docker image used by circle ci and the one actually pushed to docker hub will differ.
1515

1616
Once the docker image has been built and pushed to Dockerhub, you can find it at:
1717

18-
https://hub.docker.com/r/ethereum/solidity-buildpack-deps:ubuntu1904-<revision>
18+
https://hub.docker.com/r/ethereum/solidity-buildpack-deps:ubuntu2004-<revision>
1919

2020
where the image tag reflects the target OS and revision to build Solidity and run its tests on.
2121

@@ -24,7 +24,7 @@ where the image tag reflects the target OS and revision to build Solidity and ru
2424
```sh
2525
cd solidity
2626
# Mounts your local solidity directory in docker container for testing
27-
docker run -v `pwd`:/src/solidity -ti ethereum/solidity-buildpack-deps:ubuntu1904-<revision> /bin/bash
27+
docker run -v `pwd`:/src/solidity -ti ethereum/solidity-buildpack-deps:ubuntu2004-<revision> /bin/bash
2828
cd /src/solidity
2929
<commands_to_test_build_with_new_docker_image>
3030
```

.circleci/config.yml

Lines changed: 57 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ parameters:
1010
ubuntu-1804-docker-image-rev:
1111
type: string
1212
default: "4"
13-
ubuntu-1904-docker-image-rev:
13+
ubuntu-2004-docker-image-rev:
1414
type: string
15-
default: "4"
16-
ubuntu-1904-clang-docker-image-rev:
15+
default: "1"
16+
ubuntu-2004-clang-docker-image-rev:
1717
type: string
18-
default: "5"
18+
default: "1"
1919
ubuntu-1604-clang-ossfuzz-docker-image-rev:
2020
type: string
2121
default: "2"
@@ -50,6 +50,7 @@ defaults:
5050
cd build
5151
protoc --proto_path=../test/tools/ossfuzz yulProto.proto --cpp_out=../test/tools/ossfuzz
5252
protoc --proto_path=../test/tools/ossfuzz abiV2Proto.proto --cpp_out=../test/tools/ossfuzz
53+
protoc --proto_path=../test/tools/ossfuzz solProto.proto --cpp_out=../test/tools/ossfuzz
5354
cmake .. -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release} $CMAKE_OPTIONS
5455
make ossfuzz ossfuzz_proto ossfuzz_abiv2 -j4
5556
@@ -97,6 +98,7 @@ defaults:
9798
- test/tools/ossfuzz/strictasm_opt_ossfuzz
9899
- test/tools/ossfuzz/yul_proto_diff_ossfuzz
99100
- test/tools/ossfuzz/yul_proto_ossfuzz
101+
- test/tools/ossfuzz/sol_proto_ossfuzz
100102

101103
# test result output directory
102104
- artifacts_test_results: &artifacts_test_results
@@ -137,9 +139,9 @@ defaults:
137139
- store_test_results: *store_test_results
138140
- store_artifacts: *artifacts_test_results
139141

140-
- test_ubuntu1904_clang: &test_ubuntu1904_clang
142+
- test_ubuntu2004_clang: &test_ubuntu2004_clang
141143
docker:
142-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-clang-<< pipeline.parameters.ubuntu-1904-clang-docker-image-rev >>
144+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-clang-<< pipeline.parameters.ubuntu-2004-clang-docker-image-rev >>
143145
steps:
144146
- checkout
145147
- attach_workspace:
@@ -148,9 +150,9 @@ defaults:
148150
- store_test_results: *store_test_results
149151
- store_artifacts: *artifacts_test_results
150152

151-
- test_ubuntu1904: &test_ubuntu1904
153+
- test_ubuntu2004: &test_ubuntu2004
152154
docker:
153-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-<< pipeline.parameters.ubuntu-1904-docker-image-rev >>
155+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >>
154156
steps:
155157
- checkout
156158
- attach_workspace:
@@ -160,7 +162,7 @@ defaults:
160162
- store_artifacts: *artifacts_test_results
161163

162164
- test_asan: &test_asan
163-
<<: *test_ubuntu1904
165+
<<: *test_ubuntu2004
164166
steps:
165167
- checkout
166168
- attach_workspace:
@@ -179,7 +181,7 @@ defaults:
179181
tags:
180182
only: /.*/
181183

182-
- workflow_ubuntu1904: &workflow_ubuntu1904
184+
- workflow_ubuntu2004: &workflow_ubuntu2004
183185
<<: *workflow_trigger_on_tags
184186
requires:
185187
- b_ubu
@@ -189,17 +191,17 @@ defaults:
189191
requires:
190192
- b_ubu_ossfuzz
191193

192-
- workflow_ubuntu1904_clang: &workflow_ubuntu1904_clang
194+
- workflow_ubuntu2004_clang: &workflow_ubuntu2004_clang
193195
<<: *workflow_trigger_on_tags
194196
requires:
195197
- b_ubu_clang
196198

197-
- workflow_ubuntu1904_release: &workflow_ubuntu1904_release
199+
- workflow_ubuntu2004_release: &workflow_ubuntu2004_release
198200
<<: *workflow_trigger_on_tags
199201
requires:
200202
- b_ubu_release
201203

202-
- workflow_ubuntu1904_codecov: &workflow_ubuntu1904_codecov
204+
- workflow_ubuntu2004_codecov: &workflow_ubuntu2004_codecov
203205
<<: *workflow_trigger_on_tags
204206
requires:
205207
- b_ubu_codecov
@@ -209,7 +211,7 @@ defaults:
209211
requires:
210212
- b_osx
211213

212-
- workflow_ubuntu1904_asan: &workflow_ubuntu1904_asan
214+
- workflow_ubuntu2004_asan: &workflow_ubuntu2004_asan
213215
<<: *workflow_trigger_on_tags
214216
requires:
215217
- b_ubu_asan
@@ -359,16 +361,16 @@ jobs:
359361

360362
chk_docs_pragma_min_version:
361363
docker:
362-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-<< pipeline.parameters.ubuntu-1904-docker-image-rev >>
364+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >>
363365
environment:
364366
TERM: xterm
365367
steps:
366368
- checkout
367369
- run: *run_docs_pragma_min_version
368370

369-
b_ubu_clang: &build_ubuntu1904_clang
371+
b_ubu_clang: &build_ubuntu2004_clang
370372
docker:
371-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-clang-<< pipeline.parameters.ubuntu-1904-clang-docker-image-rev >>
373+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-clang-<< pipeline.parameters.ubuntu-2004-clang-docker-image-rev >>
372374
environment:
373375
CC: clang
374376
CXX: clang++
@@ -378,18 +380,18 @@ jobs:
378380
- store_artifacts: *artifacts_solc
379381
- persist_to_workspace: *artifacts_executables
380382

381-
b_ubu: &build_ubuntu1904
383+
b_ubu: &build_ubuntu2004
382384
docker:
383-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-<< pipeline.parameters.ubuntu-1904-docker-image-rev >>
385+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >>
384386
steps:
385387
- checkout
386388
- run: *run_build
387389
- store_artifacts: *artifacts_solc
388390
- store_artifacts: *artifacts_tools
389391
- persist_to_workspace: *artifacts_executables
390392

391-
b_ubu_release: &build_ubuntu1904_release
392-
<<: *build_ubuntu1904
393+
b_ubu_release: &build_ubuntu2004_release
394+
<<: *build_ubuntu2004
393395
environment:
394396
FORCE_RELEASE: ON
395397

@@ -406,7 +408,7 @@ jobs:
406408
- persist_to_workspace: *artifacts_executables
407409

408410
b_ubu_codecov:
409-
<<: *build_ubuntu1904
411+
<<: *build_ubuntu2004
410412
environment:
411413
COVERAGE: ON
412414
CMAKE_BUILD_TYPE: Debug
@@ -416,7 +418,7 @@ jobs:
416418
- persist_to_workspace: *artifacts_build_dir
417419

418420
t_ubu_codecov:
419-
<<: *test_ubuntu1904
421+
<<: *test_ubuntu2004
420422
environment:
421423
EVM: constantinople
422424
OPTIMIZE: 1
@@ -439,7 +441,7 @@ jobs:
439441
# Builds in C++20 mode and uses debug build in order to speed up.
440442
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
441443
b_ubu_cxx20:
442-
<<: *build_ubuntu1904
444+
<<: *build_ubuntu2004
443445
environment:
444446
CMAKE_BUILD_TYPE: Debug
445447
CMAKE_OPTIONS: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/cxx20.cmake -DUSE_CVC4=OFF
@@ -591,7 +593,7 @@ jobs:
591593

592594
# x64 ASAN build, for testing for memory related bugs
593595
b_ubu_asan: &b_ubu_asan
594-
<<: *build_ubuntu1904
596+
<<: *build_ubuntu2004
595597
environment:
596598
CMAKE_OPTIONS: -DSANITIZE=address
597599
CMAKE_BUILD_TYPE: Release
@@ -603,7 +605,7 @@ jobs:
603605

604606
b_docs:
605607
docker:
606-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-<< pipeline.parameters.ubuntu-1904-docker-image-rev >>
608+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >>
607609
steps:
608610
- checkout
609611
- run: *setup_prerelease_commit_hash
@@ -615,10 +617,27 @@ jobs:
615617
destination: docs-html
616618

617619
t_ubu_soltest: &t_ubu_soltest
618-
<<: *test_ubuntu1904
620+
<<: *test_ubuntu2004
621+
622+
t_ubu_soltest_enforce_yul: &t_ubu_soltest_enforce_yul
623+
docker:
624+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >>
625+
environment:
626+
EVM: constantinople
627+
SOLTEST_FLAGS: --enforce-via-yul
628+
OPTIMIZE: 0
629+
TERM: xterm
630+
steps:
631+
- checkout
632+
- attach_workspace:
633+
at: build
634+
- run: *run_soltest
635+
- store_test_results: *store_test_results
636+
- store_artifacts: *artifacts_test_results
637+
619638

620639
t_ubu_clang_soltest: &t_ubu_clang_soltest
621-
<<: *test_ubuntu1904_clang
640+
<<: *test_ubuntu2004_clang
622641
environment:
623642
EVM: constantinople
624643
OPTIMIZE: 0
@@ -628,7 +647,7 @@ jobs:
628647

629648
t_ubu_cli: &t_ubu_cli
630649
docker:
631-
- image: ethereum/solidity-buildpack-deps:ubuntu1904-<< pipeline.parameters.ubuntu-1904-docker-image-rev >>
650+
- image: ethereum/solidity-buildpack-deps:ubuntu2004-<< pipeline.parameters.ubuntu-2004-docker-image-rev >>
632651
environment:
633652
TERM: xterm
634653
steps:
@@ -816,20 +835,21 @@ workflows:
816835
# Ubuntu build and tests
817836
- b_ubu: *workflow_trigger_on_tags
818837
- b_ubu18: *workflow_trigger_on_tags
819-
- t_ubu_cli: *workflow_ubuntu1904
820-
- t_ubu_soltest: *workflow_ubuntu1904
838+
- t_ubu_cli: *workflow_ubuntu2004
839+
- t_ubu_soltest: *workflow_ubuntu2004
840+
- t_ubu_soltest_enforce_yul: *workflow_ubuntu2004
821841
- b_ubu_clang: *workflow_trigger_on_tags
822-
- t_ubu_clang_soltest: *workflow_ubuntu1904_clang
842+
- t_ubu_clang_soltest: *workflow_ubuntu2004_clang
823843

824844
# Ubuntu fake release build and tests
825845
- b_ubu_release: *workflow_trigger_on_tags
826-
- t_ubu_release_cli: *workflow_ubuntu1904_release
827-
- t_ubu_release_soltest: *workflow_ubuntu1904_release
846+
- t_ubu_release_cli: *workflow_ubuntu2004_release
847+
- t_ubu_release_soltest: *workflow_ubuntu2004_release
828848

829849
# ASan build and tests
830850
- b_ubu_asan: *workflow_trigger_on_tags
831-
- t_ubu_asan_constantinople: *workflow_ubuntu1904_asan
832-
- t_ubu_asan_cli: *workflow_ubuntu1904_asan
851+
- t_ubu_asan_constantinople: *workflow_ubuntu2004_asan
852+
- t_ubu_asan_cli: *workflow_ubuntu2004_asan
833853

834854
# Emscripten build and selected tests
835855
- b_ems: *workflow_trigger_on_tags
@@ -856,4 +876,4 @@ workflows:
856876

857877
# Code Coverage enabled build and tests
858878
- b_ubu_codecov: *workflow_trigger_on_tags
859-
- t_ubu_codecov: *workflow_ubuntu1904_codecov
879+
- t_ubu_codecov: *workflow_ubuntu2004_codecov

0 commit comments

Comments
 (0)