Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 0 additions & 113 deletions .github/workflows/ci.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: E2E Tests

on:
push:
branches:
- main
- master
- develop
pull_request:
env:
LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }}
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT }}
LOCAL_MASTER_ACCOUNT: ${{ secrets.LOCAL_MASTER_ACCOUNT }}
LOG_LEVEL: info

jobs:
naga-e2e-tests:
runs-on: ubuntu-latest
environment: Health Check
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rust-std

- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
with:
version: 'latest'

- name: Install Bun dependencies
run: bun install

- name: Build project
run: bun run build

- name: Run health check for naga-dev
run: NETWORK=naga-dev bun run test:e2e all --timeout 5000000
timeout-minutes: 10

- name: Run health check for naga-test
run: NETWORK=naga-test bun run test:e2e all --timeout 5000000
timeout-minutes: 10

- name: Run health check for naga-staging
run: NETWORK=naga-staging bun run test:e2e all --timeout 5000000
timeout-minutes: 10
24 changes: 15 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,33 @@ on:
push:
branches:
- master
- main
- develop
jobs:
linter:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: '18'
cache: 'yarn'
bun-version: latest

- name: Install rust
uses: dtolnay/rust-toolchain@1.76.0
- uses: jetli/wasm-pack-action@v0.4.0

- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'

- name: Install project dependencies
run: yarn install
run: bun install

- name: Lint
run: yarn nx format:check --all
run: bun run nx format:check --all
40 changes: 0 additions & 40 deletions AGENTS.md

This file was deleted.

16 changes: 8 additions & 8 deletions e2e/artillery/configs/pkp-sign.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
config:
target: "dummy"
target: 'dummy'
phases:
# Over 60s, ramp up to creating 50 vusers per second
- duration: 60
arrivalRate: 5
# rampTo: 50
rampTo: 10
name: "Ramp Up"
name: 'Ramp Up'
# Over 300s, create 50 vusers per second
- duration: 300
# arrivalRate: 50
arrivalRate: 10
name: "Sustained PKP Signing"
name: 'Sustained PKP Signing'
# Over 60s, ramp down to creating 5 vusers per second
- duration: 60
arrivalRate: 5
name: "Ramp Down"
processor: "../src/processors/multi-endpoints.ts"
name: 'Ramp Down'
processor: '../src/processors/multi-endpoints.ts'

scenarios:
- name: "PKP Sign Stress Test"
- name: 'PKP Sign Stress Test'
weight: 100
flow:
- function: "runPkpSignTest"
- think: 0.1
- function: 'runPkpSignTest'
- think: 0.1
17 changes: 8 additions & 9 deletions e2e/artillery/configs/sign-session-key.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
config:
target: "dummy"
target: 'dummy'
phases:
# Over 60s, ramp up to creating 50 vusers per second
- duration: 60
arrivalRate: 5
# rampTo: 50
rampTo: 10
name: "Ramp Up"
name: 'Ramp Up'
# Over 300s, create 50 vusers per second
- duration: 300
# arrivalRate: 50
arrivalRate: 10
name: "Sustained Sign Session Key"
name: 'Sustained Sign Session Key'
# Over 60s, ramp down to creating 5 vusers per second
- duration: 60
arrivalRate: 5
name: "Ramp Down"
processor: "../src/processors/multi-endpoints.ts"
name: 'Ramp Down'
processor: '../src/processors/multi-endpoints.ts'

scenarios:
- name: "Sign Session Key Stress Test"
- name: 'Sign Session Key Stress Test'
weight: 100
flow:

- function: "runSignSessionKeyTest"
- think: 0.1
- function: 'runSignSessionKeyTest'
- think: 0.1
Loading
Loading