Skip to content

Commit

Permalink
ci: run ceremony
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Oct 17, 2023
1 parent 5640eea commit 8ba0736
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/summoner_smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Summoner smoke Test
on:
pull_request: # Temp: for testing only, this will be slow so will run on demand
push:
branches:
- main

jobs:
smoke_test:
runs-on: buildjet-16vcpu-ubuntu-2004
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
environment: smoke-test
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Load rust cache
uses: astriaorg/[email protected]

- name: Begin phase 1
run: |
export PATH="$HOME/bin:$PATH"
./deployments/scripts/summoner_phase1.sh
env:
TESTNET_RUNTIME: 2m
24 changes: 24 additions & 0 deletions deployments/scripts/smoke-summoner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# Run e2e summoner ceremony in CI
set -euo pipefail

export RUST_LOG="summonerd=info,pcli=info"

echo "Building latest version of summonerd from source..."
cargo build --quiet --release --bin summonerd

echo "Generating phase 1 root..."
cargo run --quiet --release --bin summonerd -- generate-phase1 --output phase1.bin

echo "Setting up storage directory..."
mkdir /tmp/summonerd
cargo run --quiet --release --bin pcli -- --home /tmp/summonerd --node https://grpc.testnet-preview.penumbra.zone keys generate
export SUMMONER_ADDRESS=$(PCLI_UNLEASH_DANGER="yes" cargo run --quiet --release --bin pcli -- --home /tmp/summonerd --node https://grpc.testnet-preview.penumbra.zone view address 0 2>&1)
export SUMMONER_FVK=$(PCLI_UNLEASH_DANGER="yes" cargo run --quiet --release --bin pcli -- --home /tmp/summonerd --node https://grpc.testnet-preview.penumbra.zone keys export full-viewing-key 2>&1)

echo "Starting phase 1..."
cargo run --quiet --release --bin summonerd -- start --phase 1 --storage-dir /tmp/summonerd --fvk $SUMMONER_FVK --node https://grpc.testnet-preview.penumbra.zone

# TODO: Run phase 1 contributions

exit 0

0 comments on commit 8ba0736

Please sign in to comment.