Skip to content

feat: batch cold account loads in light client #4181

feat: batch cold account loads in light client

feat: batch cold account loads in light client #4181

Workflow file for this run

name: forester-tests
permissions:
contents: read
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "forester/**"
- "forester-utils/**"
- "sdk-libs/photon-api/**"
- "programs/**"
- "program-libs/batched-merkle-tree/**"
- "scripts/**"
- ".github/workflows/forester-tests.yml"
pull_request:
branches: ["main"]
paths:
- "forester/**"
- "forester-utils/**"
- "sdk-libs/photon-api/**"
- "programs/**"
- "program-libs/batched-merkle-tree/**"
- "scripts/**"
- ".github/workflows/forester-tests.yml"
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUST_BACKTRACE: "1"
RUSTFLAGS: "--cfg tokio_unstable -D warnings"
TEST_MODE: "local"
TEST_V1_STATE: "true"
TEST_V2_STATE: "true"
TEST_V1_ADDRESS: "true"
TEST_V2_ADDRESS: "true"
FORESTER_ENABLE_COMPRESSIBLE: "true"
CARGO_INCREMENTAL: "0"
jobs:
test:
name: Forester e2e test
runs-on: ubuntu-latest
timeout-minutes: 120
services:
redis:
image: redis:8.0.1
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,go"
cache-key: "rust"
- name: Check available disk space
shell: bash
run: |
df -h /
du -sh /home/runner/work/* | sort -hr | head -n 10
- name: Build CLI
run: just cli build
- name: Test
run: just forester test
compressible-tests:
name: Forester compressible tests
runs-on: ubuntu-latest
timeout-minutes: 60
services:
redis:
image: redis:8.0.1
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
RUST_LOG: forester=debug,light_client=debug
REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "go"
cache-key: "rust"
- name: Build CLI
run: just cli build
- name: Test compressible PDA
run: just forester test-compressible-pda
- name: Test compressible Mint
run: just forester test-compressible-mint
- name: Test compressible ctoken
run: just forester test-compressible-ctoken