Skip to content

Commit

Permalink
Merge branch 'main' into feat-importer-offline-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmm-cloudwalk authored Feb 17, 2025
2 parents 5e37c94 + 834fad7 commit a3fbc70
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ jobs:
NO_COLOR: 1
FEATURES: "${{ github.event.inputs.features || 'default' }}"

- name: Generate checksums
run: |
cd target/release
sha256sum stratus > ../../checksums.txt
- name: Upload stratus
uses: actions/upload-artifact@v4
id: upload-str
Expand All @@ -74,6 +79,14 @@ jobs:
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}

- name: Upload checksums
uses: actions/upload-artifact@v4
with:
name: checksums-${{ github.sha }}
path: checksums.txt
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}

- name: Print outputs
run: |
echo "Artifact ID: ${{ steps.upload-str.outputs.artifact-id }} (stratus)"
Expand Down
7 changes: 3 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,6 @@ e2e-leader-follower-down:
# E2E: RPC Downloader test
e2e-rpc-downloader:
#!/bin/bash
just build rpc-downloader dev

mkdir e2e_logs

just _log "Starting Stratus"
Expand All @@ -449,11 +447,12 @@ e2e-rpc-downloader:
just e2e stratus automine

just _log "Running RPC Downloader test"
cargo run --bin rpc-downloader -- --external-rpc http://localhost:3000/ --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --metrics-exporter-address 0.0.0.0:9001
just rpc-downloader --external-rpc http://localhost:3000/ --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --metrics-exporter-address 0.0.0.0:9001

cargo run --bin rpc-downloader -- --external-rpc http://localhost:3000/ --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --metrics-exporter-address 0.0.0.0:9001
just rpc-downloader --external-rpc http://localhost:3000/ --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --metrics-exporter-address 0.0.0.0:9001

just _log "Checking content of postgres"
pip install -r utils/check_rpc_downloader/requirements.txt
POSTGRES_DB=stratus POSTGRES_PASSWORD=123 ETH_RPC_URL=http://localhost:3000/ python utils/check_rpc_downloader/main.py --start 0

just _log "Killing Stratus"
Expand Down
2 changes: 2 additions & 0 deletions utils/check_rpc_downloader/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
psycopg2-binary
web3

0 comments on commit a3fbc70

Please sign in to comment.