Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2f9353c
chore: (PRO-271) Update / cleanup Makefile and add debug commands
dev-jodee Sep 17, 2025
c9fbabf
fix reimports
dev-jodee Sep 17, 2025
011a48d
chore: Implement rust test runner
dev-jodee Sep 18, 2025
addc9f8
Cleaned up test runner
dev-jodee Sep 18, 2025
9b121de
Typescript test support + makefile cleanup
dev-jodee Sep 18, 2025
a907390
CI Actions updated and improvements to test runner (speed, cleanup, e…
dev-jodee Sep 19, 2025
8b1c089
fix: TS integration tests
amilz Sep 19, 2025
d0f2586
Fixed ambiguous name
dev-jodee Sep 22, 2025
ed34470
logging tests for ci
dev-jodee Sep 22, 2025
c76ace4
Revert "logging tests for ci"
dev-jodee Sep 22, 2025
0cddefb
rust backtracke logging test cli
dev-jodee Sep 22, 2025
48bc38c
Revert "rust backtracke logging test cli"
dev-jodee Sep 22, 2025
ff5c0db
added logs for functions
dev-jodee Sep 22, 2025
953c4ca
Revert "added logs for functions"
dev-jodee Sep 22, 2025
1a6136c
added single log
dev-jodee Sep 22, 2025
b1f2766
log2
dev-jodee Sep 22, 2025
c4c0023
test single test for rpc
dev-jodee Sep 22, 2025
650b4ad
Test with lots of loggers
dev-jodee Sep 22, 2025
182bf12
fix/ts-sdk-auth-test port argument
amilz Sep 22, 2025
23bd2ad
Merge branch 'chore/PRO-271-improved-and-cleanup-testing-framework' o…
amilz Sep 22, 2025
1953d33
fix/ts sdk auth tests
amilz Sep 22, 2025
e20861f
Revert "Test with lots of loggers"
dev-jodee Sep 22, 2025
9ff5167
Improved port selection + change in commitment levels
dev-jodee Sep 22, 2025
007064f
Finalized testing
dev-jodee Sep 22, 2025
e187a5c
intense logging for cis
dev-jodee Sep 22, 2025
94727b6
Revert "intense logging for cis"
dev-jodee Sep 22, 2025
6291470
Commitment level consistency
dev-jodee Sep 22, 2025
279ff31
config fix + stdio out fix
dev-jodee Sep 22, 2025
20e9fd0
null pipied
dev-jodee Sep 22, 2025
8f3b835
PR comment fixes
dev-jodee Sep 22, 2025
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
46 changes: 4 additions & 42 deletions .github/actions/cleanup-test-env/action.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,15 @@
name: 'Cleanup Test Environment'
description: 'Stop all test processes (Kora RPC, Solana validator, etc.)'
description: 'Kill any remaining test processes (safety net for test runner failures)'

runs:
using: 'composite'
steps:
- name: Stop test processes
- name: Kill remaining processes
shell: bash
if: always()
run: |
echo "🧹 Cleaning up test environment..."

# Stop Kora RPC server using saved PID
if [ -f /tmp/kora_pid ]; then
KORA_PID=$(cat /tmp/kora_pid)
if [ ! -z "$KORA_PID" ]; then
echo "Stopping Kora RPC server (PID: $KORA_PID)"
kill $KORA_PID 2>/dev/null || true
fi
rm -f /tmp/kora_pid
fi

# Stop using environment variable as fallback
if [ ! -z "$KORA_PID" ]; then
echo "Stopping Kora RPC server (ENV PID: $KORA_PID)"
kill $KORA_PID 2>/dev/null || true
fi

# Stop Solana validator using saved PID
if [ -f /tmp/validator_pid ]; then
VALIDATOR_PID=$(cat /tmp/validator_pid)
if [ ! -z "$VALIDATOR_PID" ]; then
echo "Stopping Solana validator (PID: $VALIDATOR_PID)"
kill $VALIDATOR_PID 2>/dev/null || true
fi
rm -f /tmp/validator_pid
fi

# Stop using environment variable as fallback
if [ ! -z "$VALIDATOR_PID" ]; then
echo "Stopping Solana validator (ENV PID: $VALIDATOR_PID)"
kill $VALIDATOR_PID 2>/dev/null || true
fi

# Kill any remaining processes by name (nuclear option)
echo "Killing any remaining test processes..."
echo "🧹 Safety cleanup of any remaining processes..."
pkill -f "solana-test-validator" 2>/dev/null || true
pkill -f "kora" 2>/dev/null || true

# Wait a moment for processes to stop
sleep 2

sleep 1
echo "✅ Cleanup completed"
45 changes: 45 additions & 0 deletions .github/actions/run-test-runner/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Run Test Runner"
description: "Execute Kora integration tests using the test runner with specified filters"

inputs:
filters:
description: "Test filters to apply (e.g., '--filter regular --filter auth')"
required: true
verbose:
description: "Enable verbose output"
required: false
default: "true"
rpc-url:
description: "Solana RPC URL to use"
required: false
default: "http://127.0.0.1:8899"
force-refresh:
description: "Force refresh of test accounts"
required: false
default: "false"

runs:
using: "composite"
steps:
- name: Run integration tests with test runner
shell: bash
run: |
echo "🧪 Running integration tests with filters: ${{ inputs.filters }}"

# Build command arguments
ARGS=""
if [ "${{ inputs.verbose }}" = "true" ]; then
ARGS="$ARGS --verbose"
fi
if [ "${{ inputs.force-refresh }}" = "true" ]; then
ARGS="$ARGS --force-refresh"
fi
if [ "${{ inputs.rpc-url }}" != "http://127.0.0.1:8899" ]; then
ARGS="$ARGS --rpc-url ${{ inputs.rpc-url }}"
fi

# Add filters
ARGS="$ARGS ${{ inputs.filters }}"

# Run the test runner
cargo run -p tests --bin test_runner -- $ARGS
112 changes: 0 additions & 112 deletions .github/actions/setup-kora-rpc/action.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/actions/setup-solana-validator/action.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Rust Artifacts

on:
workflow_call:
inputs:
cache-key:
description: "Cache key suffix for rust cache"
required: true
type: string
artifact-name:
description: "Name for the uploaded artifact"
required: true
type: string

jobs:
build:
name: Build Rust Artifacts
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ inputs.cache-key }}

- name: Build workspace
run: make build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: |
target/debug/kora
target/debug/test_runner
retention-days: 1
Loading