-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3578 from ethereum/dev
release v1.4.0-beta.6
- Loading branch information
Showing
79 changed files
with
10,700 additions
and
520 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/venv | ||
**/.venv |
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 |
---|---|---|
|
@@ -71,7 +71,7 @@ jobs: | |
needs: [preclear,lint,codespell,table_of_contents] | ||
strategy: | ||
matrix: | ||
version: ["phase0", "altair", "bellatrix", "capella", "deneb", "eip6110", "eip7002"] | ||
version: ["phase0", "altair", "bellatrix", "capella", "deneb", "eip6110", "eip7002", "whisk", "eip7594"] | ||
steps: | ||
- name: Checkout this repo | ||
uses: actions/[email protected] | ||
|
@@ -111,4 +111,4 @@ jobs: | |
ls -la ./ | ||
rm -rf ./* || true | ||
rm -rf ./.??* || true | ||
ls -la ./ | ||
ls -la ./ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Rename the build stage from 'base' to 'builder' for clarification and code readability | ||
FROM python:3.11.0-slim-bullseye as builder | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
WORKDIR=/consensus-specs \ | ||
PIP_UPGRADE_CMD="python -m pip install --upgrade pip" \ | ||
INSTALL_CMD="apt install -y git build-essential" | ||
|
||
RUN mkdir ${WORKDIR} | ||
WORKDIR ${WORKDIR} | ||
|
||
# Chain the commands together | ||
RUN apt update && ${INSTALL_CMD} && ${PIP_UPGRADE_CMD} && rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the current directory contents into the builder | ||
COPY . . | ||
|
||
# Inline installation commands | ||
RUN make install_test && \ | ||
make preinstallation && \ | ||
make pyspec | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Docker related information | ||
|
||
This dockerfile sets up the dependencies required to run consensus-spec tests. The docker image can be locally built with: | ||
- `docker build ./ -t $IMAGE_NAME -f ./docker/Dockerfile` | ||
|
||
|
||
Handy commands: | ||
- `docker run -it $IMAGE_NAME /bin/sh` will give you a shell inside the docker container to manually run any tests | ||
- `docker run $IMAGE_NAME make citest` will run the make citest command inside the docker container | ||
|
||
Ideally manual running of docker containers is for advanced users, we recommend the script based approach described below for most users. | ||
|
||
The `scripts/build_run_docker_tests.sh` script will cover most usecases. The script allows the user to configure the fork(altair/bellatrix/capella..), `$IMAGE_NAME` (specifies the container to use), number of cores, preset type (mainnet/minimal), and test all forks flags. Ideally, this is the main way that users interact with the spec tests instead of running it locally with varying versions of dependencies. | ||
|
||
E.g: | ||
- `./build_run_test.sh --p mainnet --n 16` will run the mainnet preset tests with 16 threads | ||
- `./build_run_test.sh --a` will run all the tests across all the forks | ||
- `./build_run_test.sh --f deneb --n 16` will only run deneb tests on 16 threads | ||
|
||
Results are always placed in a folder called `./testResults`. The results are `.xml` files and contain the fork they represent and the date/time they were run at. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Mainnet preset - EIP7594 | ||
|
||
# Misc | ||
# --------------------------------------------------------------- | ||
# `uint64(2**6)` (= 64) | ||
FIELD_ELEMENTS_PER_CELL: 64 |
Oops, something went wrong.