-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nightly' into kpp/system_caller
- Loading branch information
Showing
23 changed files
with
274 additions
and
6 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,40 @@ | ||
# Makes a Docker build to be used in Hive tests. | ||
|
||
name: Docker for Hive | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# every day | ||
- cron: "13 21 * * *" # 21:13 UTC | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
# Except in `nightly` and `stable` branches! Any cancelled job will cause the | ||
# CI run to fail, and we want to keep a clean history for major branches. | ||
cancel-in-progress: ${{ (github.ref != 'refs/heads/nightly') && (github.ref != 'refs/heads/stable') }} | ||
|
||
jobs: | ||
docker: | ||
timeout-minutes: 60 | ||
name: Build and publish Docker image | ||
runs-on: ubicloud-standard-16 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Docker Setup Buildx | ||
uses: docker/[email protected] | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./hive/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/citrea:latest |
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,94 @@ | ||
# Runs `ethereum/hive` tests. | ||
|
||
name: Hive | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: ["Docker for Hive"] | ||
types: | ||
- completed | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
# Except in `nightly` and `stable` branches! Any cancelled job will cause the | ||
# CI run to fail, and we want to keep a clean history for major branches. | ||
cancel-in-progress: ${{ (github.ref != 'refs/heads/nightly') && (github.ref != 'refs/heads/stable') }} | ||
|
||
jobs: | ||
prepare: | ||
timeout-minutes: 45 | ||
runs-on: ubicloud-standard-4 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: mkdir artifacts | ||
|
||
- name: Checkout hive tests | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: chainwayxyz/hive | ||
ref: main | ||
path: hivetests | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "^1.13.1" | ||
- run: go version | ||
- name: Build hive tool | ||
run: | | ||
cd hivetests | ||
go build . | ||
mv ./hive ../artifacts/ | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: ./artifacts | ||
|
||
test: | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: false | ||
|
||
needs: prepare | ||
name: run | ||
runs-on: ubicloud-standard-4 | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: /tmp | ||
|
||
- name: Move hive binary | ||
run: | | ||
mv /tmp/hive /usr/local/bin | ||
chmod +x /usr/local/bin/hive | ||
- name: Checkout hive tests | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: chainwayxyz/hive | ||
ref: main | ||
path: hivetests | ||
|
||
- name: Run ethereum/rpc simulator | ||
run: | | ||
cd hivetests | ||
hive --sim "ethereum/rpc" --sim.limit "/http" --client citrea | ||
- name: Print simulator output | ||
if: ${{ failure() }} | ||
run: | | ||
cat hivetests/workspace/logs/*simulator*.log | ||
- name: Print citrea client logs | ||
if: ${{ failure() }} | ||
run: | | ||
cat hivetests/workspace/logs/citrea/client-*.log |
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
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
Oops, something went wrong.