Skip to content
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
01dfb57
feat: move proving keys management into cli
sergeytimoshin Oct 9, 2025
510dfd6
keys downloader
sergeytimoshin Oct 9, 2025
ccfa12c
refactor: integrate dynamic proving key management
sergeytimoshin Oct 9, 2025
a2a5375
fix: update artifact path in prover-test workflow
sergeytimoshin Oct 9, 2025
467828c
fix: update artifact path in prover-test workflow
sergeytimoshin Oct 9, 2025
51a5275
fix: add read permissions to prover-test workflow
sergeytimoshin Oct 9, 2025
8e68e63
fix: update Go setup and add linux/arm64 support in prover-release wo…
sergeytimoshin Oct 9, 2025
c222fac
refactor: remove buildProver script and integrate dynamic prover bina…
sergeytimoshin Oct 9, 2025
78ec70e
feat: add utility to download prover binary
sergeytimoshin Oct 9, 2025
795da75
fix: update getProverNameByArch
sergeytimoshin Oct 9, 2025
c6fbb0c
fix: correct getProverNameByArch implementation
sergeytimoshin Oct 9, 2025
9c22da1
fix: add missing commas in downloadProverBinary and processProverServer
sergeytimoshin Oct 9, 2025
71dc35a
feat: lazy prover
sergeytimoshin Oct 9, 2025
0c73008
update prover version to 1.0.1
sergeytimoshin Oct 9, 2025
64c26cd
fix
sergeytimoshin Oct 9, 2025
9ab4b30
remove prover configuration from local test validator
sergeytimoshin Oct 9, 2025
b7f2ec0
feat: implement thread-safe checksum cache management
sergeytimoshin Oct 9, 2025
4f98f0a
fix
sergeytimoshin Oct 9, 2025
6ceaebe
preload keys for lazy test
sergeytimoshin Oct 9, 2025
cba7c68
preload test keys for lazy test
sergeytimoshin Oct 9, 2025
c505813
preload test keys for lazy test
sergeytimoshin Oct 9, 2025
42cdeb4
fix
sergeytimoshin Oct 9, 2025
1171bea
fix
sergeytimoshin Oct 9, 2025
1e642f3
increase default max wait time to 900 seconds
sergeytimoshin Oct 9, 2025
c10d51b
start queue workers for redis queue
sergeytimoshin Oct 10, 2025
4adc115
bump prover version to 1.0.2
sergeytimoshin Oct 10, 2025
dd0d354
restore download_keys.sh
sergeytimoshin Oct 10, 2025
859caee
chmod +x download_keys.sh
sergeytimoshin Oct 10, 2025
4cfa801
remove ProverConfig
sergeytimoshin Oct 10, 2025
d402696
remove build-ci & test-ci workflow cmds
sergeytimoshin Oct 10, 2025
10e73d6
use go key downloader
sergeytimoshin Oct 10, 2025
b74ff50
refactor key path construction to use filepath
sergeytimoshin Oct 10, 2025
782f1de
add error handling for directory change in download-gnark-keys.sh
sergeytimoshin Oct 10, 2025
2e702bf
add redirect handling with limit in downloadFile function
sergeytimoshin Oct 10, 2025
40d699e
add error handling for gnark keys download in download-gnark-keys.sh
sergeytimoshin Oct 10, 2025
08f9344
update preload-keys
sergeytimoshin Oct 10, 2025
ae1e80a
bump prover version
sergeytimoshin Oct 10, 2025
684bb3c
remove unused run mode handling
sergeytimoshin Oct 10, 2025
dd79a8d
bump prover version
sergeytimoshin Oct 10, 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
2 changes: 1 addition & 1 deletion .github/actions/setup-and-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ runs:
uses: actions/cache@v4
with:
path: prover/server/proving-keys
key: ${{ runner.os }}-proving-keys-${{ inputs.cache-suffix }}${{ inputs.cache-suffix && '-' || '' }}${{ hashFiles('prover/server/scripts/download_keys.sh') }}
key: ${{ runner.os }}-proving-keys-${{ inputs.cache-suffix }}${{ inputs.cache-suffix && '-' || '' }}${{ hashFiles('prover/server/prover/common/key_downloader.go', 'prover/server/prover/common/proving_keys_utils.go') }}

- name: Download proving keys
if: "!contains(inputs.skip-components, 'proving-keys') && steps.cache-keys.outputs.cache-hit != 'true'"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cli-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ jobs:
skip-components: "redis,disk-cleanup"
cache-suffix: "js"

- name: Build CLI with V1 (CI mode - Linux x64 only)
- name: Build CLI
run: |
npx nx build-ci @lightprotocol/zk-compression-cli
npx nx build @lightprotocol/zk-compression-cli

- name: Run CLI tests with V1
run: |
npx nx test-ci @lightprotocol/zk-compression-cli
npx nx test @lightprotocol/zk-compression-cli

- name: Display prover logs on failure
if: failure()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cli-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ jobs:
cd js/compressed-token
pnpm build:v2

- name: Build CLI with V2 (CI mode - Linux x64 only)
- name: Build CLI with V2
run: |
npx nx build-ci @lightprotocol/zk-compression-cli
npx nx build @lightprotocol/zk-compression-cli

- name: Run CLI tests with V2
run: |
npx nx test-ci @lightprotocol/zk-compression-cli
npx nx test @lightprotocol/zk-compression-cli

- name: Display prover logs on failure
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/forester-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ jobs:
df -h /
du -sh /home/runner/work/* | sort -hr | head -n 10

- name: Build CLI (CI mode - Linux x64 only)
run: npx nx build-ci @lightprotocol/zk-compression-cli
- name: Build CLI
run: npx nx build @lightprotocol/zk-compression-cli

- name: Test
run: cargo test --package forester e2e_test -- --nocapture
8 changes: 4 additions & 4 deletions .github/workflows/js-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ jobs:
cd js/compressed-token
pnpm build:v2

- name: Build CLI (CI mode - Linux x64 only)
- name: Build CLI
run: |
npx nx build-ci @lightprotocol/zk-compression-cli
npx nx build @lightprotocol/zk-compression-cli

- name: Run stateless.js tests with V2
run: |
echo "Running stateless.js tests with retry logic (max 2 attempts)..."
attempt=1
max_attempts=2
until npx nx test-ci @lightprotocol/stateless.js; do
until npx nx test @lightprotocol/stateless.js; do
attempt=$((attempt + 1))
if [ $attempt -gt $max_attempts ]; then
echo "Tests failed after $max_attempts attempts"
Expand All @@ -84,7 +84,7 @@ jobs:
echo "Running compressed-token tests with retry logic (max 2 attempts)..."
attempt=1
max_attempts=2
until npx nx test-ci @lightprotocol/compressed-token; do
until npx nx test @lightprotocol/compressed-token; do
attempt=$((attempt + 1))
if [ $attempt -gt $max_attempts ]; then
echo "Tests failed after $max_attempts attempts"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ jobs:
cd js/compressed-token
pnpm build:v1

- name: Build CLI (CI mode - Linux x64 only)
- name: Build CLI
run: |
npx nx build-ci @lightprotocol/zk-compression-cli
npx nx build @lightprotocol/zk-compression-cli

- name: Run stateless.js tests with V1
run: |
echo "Running stateless.js tests with retry logic (max 2 attempts)..."
attempt=1
max_attempts=2
until npx nx test-ci @lightprotocol/stateless.js; do
until npx nx test @lightprotocol/stateless.js; do
attempt=$((attempt + 1))
if [ $attempt -gt $max_attempts ]; then
echo "Tests failed after $max_attempts attempts"
Expand All @@ -84,7 +84,7 @@ jobs:
echo "Running compressed-token tests with retry logic (max 2 attempts)..."
attempt=1
max_attempts=2
until npx nx test-ci @lightprotocol/compressed-token; do
until npx nx test @lightprotocol/compressed-token; do
attempt=$((attempt + 1))
if [ $attempt -gt $max_attempts ]; then
echo "Tests failed after $max_attempts attempts"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/light-system-programs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ jobs:
skip-components: "redis,disk-cleanup"
cache-suffix: "system-programs"

- name: Build CLI (CI mode - Linux x64 only)
- name: Build CLI
run: |
npx nx build-ci @lightprotocol/zk-compression-cli
npx nx build @lightprotocol/zk-compression-cli

- name: ${{ matrix.program }}
run: |
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/prover-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.21
go-version-file: "./prover/server/go.mod"

- name: Build artifacts
run: |
cd prover/server
for cfgstr in "darwin amd64" "darwin arm64" "linux amd64" "windows amd64"; do
for cfgstr in "darwin amd64" "darwin arm64" "linux amd64" "linux arm64" "windows amd64"; do
IFS=' ' read -r -a cfg <<< "$cfgstr"
export GOOS="${cfg[0]}"
export GOARCH="${cfg[1]}"
export CGO_ENABLED=0
go build -o prover-"$GOOS"-"$GOARCH"

ext=""
if [ "$GOOS" = "windows" ]; then
ext=".exe"
fi

go build -o prover-"$GOOS"-"$GOARCH""$ext"
done

- name: Create Release
Expand All @@ -34,4 +40,5 @@ jobs:
prover/server/prover-darwin-amd64
prover/server/prover-darwin-arm64
prover/server/prover-linux-amd64
prover/server/prover-windows-amd64
prover/server/prover-linux-arm64
prover/server/prover-windows-amd64.exe
Loading
Loading