-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into l2/restart_processes
- Loading branch information
Showing
66 changed files
with
2,338 additions
and
909 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Assertoor" | ||
on: | ||
merge_group: | ||
pull_request: | ||
branches: ["**"] | ||
paths-ignore: | ||
- 'README.md' | ||
- 'LICENSE' | ||
- "**/README.md" | ||
- "**/docs/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_VERSION: 1.80.1 | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/docker_build.yaml | ||
|
||
run-assertoor: | ||
name: Stability Check | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ethrex_image | ||
path: /tmp | ||
|
||
- name: Load image | ||
run: | | ||
docker load --input /tmp/ethrex_image.tar | ||
- name: Setup kurtosis testnet and run assertoor tests | ||
uses: ethpandaops/kurtosis-assertoor-github-action@v1 | ||
with: | ||
kurtosis_version: '1.3.1' | ||
ethereum_package_url: 'github.com/lambdaclass/ethereum-package' | ||
ethereum_package_branch: 'ethrex-integration' | ||
ethereum_package_args: './test_data/network_params.yaml' |
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,40 @@ | ||
name: CI L2 | ||
on: | ||
merge_group: | ||
pull_request: | ||
branches: ["**"] | ||
paths-ignore: | ||
- "README.md" | ||
- "LICENSE" | ||
- "**/README.md" | ||
- "**/docs/**" | ||
- "crates/vm/levm/**" # We ran this in a separate workflow | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_VERSION: 1.80.1 | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Rustup toolchain install | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ env.RUST_VERSION }} | ||
|
||
- name: Caching | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run L2 integration test | ||
run: | | ||
cd crates/l2 | ||
cp .env.example .env | ||
make test |
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,56 @@ | ||
name: Publish docker image to Github Packages | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
|
||
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. | ||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Generates the tags and labels based on the image name. The id allows using it in the next step. | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
# Pushes to ghcr.io/ethrex | ||
- name: Build and push Docker image | ||
id: push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
- name: Generate artifact attestation | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} | ||
subject-digest: ${{ steps.push.outputs.digest }} | ||
push-to-registry: true | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ env: | |
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/docker-build.yaml | ||
uses: ./.github/workflows/docker_build.yaml | ||
|
||
hive-coverage: | ||
name: Run engine hive simulator to gather coverage information. | ||
|
@@ -48,4 +48,28 @@ jobs: | |
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Generate the hive report | ||
run: cargo run -p hive_report | ||
id: report | ||
run: | | ||
cargo run -p hive_report > results.md | ||
echo "content=$(cat results.md)" >> $GITHUB_OUTPUT | ||
- name: Post results in summary | ||
run: | | ||
echo "# Hive coverage report\n\n" >> $GITHUB_STEP_SUMMARY | ||
$(cat results.md) >> $GITHUB_STEP_SUMMARY | ||
- name: Post results to slack | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
blocks: | ||
- type: "header" | ||
text: | ||
type: "plain_text" | ||
text: Hive coverage report | ||
- type: "section" | ||
text: | ||
type: "mrkdwn" | ||
text: ${{steps.report.outputs.content}} |
File renamed without changes.
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 |
---|---|---|
|
@@ -26,4 +26,28 @@ jobs: | |
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Generate the loc report | ||
run: make loc | ||
id: loc-report | ||
run: | | ||
make loc | ||
echo "content=$(cat loc_report.md)" >> $GITHUB_OUTPUT | ||
- name: Post results in summary | ||
run: | | ||
echo "# `ethrex` lines of code report:\n\n" >> $GITHUB_STEP_SUMMARY | ||
$(cat loc_report.md) >> $GITHUB_STEP_SUMMARY | ||
- name: Post results to slack | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
blocks: | ||
- type: "header" | ||
text: | ||
type: "plain_text" | ||
text: ethrex lines of code report | ||
- type: "section" | ||
text: | ||
type: "mrkdwn" | ||
text: ${{steps.loc-report.outputs.content}} |
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 |
---|---|---|
|
@@ -46,3 +46,7 @@ jwt.hex | |
tests_v3.0.0.tar.gz | ||
|
||
.env | ||
|
||
levm_ef_tests_report.txt | ||
|
||
loc_report.md |
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.