Skip to content

feat: prover redis cleanup job #1852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5d4e3e7
bump photon hash
sergeytimoshin Jul 1, 2025
3be0d88
refactor forester v2 processing
sergeytimoshin Jun 21, 2025
12225d4
remove debug prints
sergeytimoshin Jul 1, 2025
39b257c
cleanup
sergeytimoshin Jul 1, 2025
f9ed88f
Set test environment variables for v1 and v2 test modes
sergeytimoshin Jul 1, 2025
49df91c
add docs for process_stream function
sergeytimoshin Jul 1, 2025
072d266
fail-fast proof generation with recovery
sergeytimoshin Jul 1, 2025
b2a5686
spawn forester executing test transactions in e2e test
sergeytimoshin Jul 1, 2025
516d924
Add tmate debugging session to forester tests workflow
sergeytimoshin Jul 1, 2025
3e38980
use new keypair for TestMode::Local in forester e2e tests
sergeytimoshin Jul 1, 2025
05cde6d
reduce rpc calls for v2 processing
sergeytimoshin Jul 2, 2025
d4d1dc4
add tmate to forester ci
sergeytimoshin Jul 2, 2025
6469e97
remove tmate from forester tests ci
sergeytimoshin Jul 2, 2025
8906210
format
sergeytimoshin Jul 2, 2025
581878f
add get_registration_phase_start_slot utility function and update e2e…
sergeytimoshin Jul 2, 2025
678ac51
remove unused imports
sergeytimoshin Jul 2, 2025
d219388
update photon git commit reference in constants and install script
sergeytimoshin Jul 2, 2025
cd1e866
update photon commit hash
sergeytimoshin Jul 3, 2025
90284e5
update photon commit hash
sergeytimoshin Jul 3, 2025
999b41d
refactor: optimize batch processing and instruction streaming
sergeytimoshin Jul 4, 2025
8f7e774
feat: implement queue health check and cleanup endpoints
sergeytimoshin Jul 4, 2025
f3827a9
decrease EXPECTED_EPOCHS constant value in e2e v1 test
sergeytimoshin Jul 4, 2025
f281cef
decreate # of iterations in e2e forester test
sergeytimoshin Jul 9, 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
38 changes: 10 additions & 28 deletions .github/workflows/forester-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ concurrency:
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"

jobs:
test:
Expand All @@ -38,41 +43,17 @@ jobs:
test-name:
[
{
name: "e2e",
command: "test_state_indexer_async_batched",
name: "e2e (legacy)",
command: "test_e2e_v1",
timeout: 60,
needs-test-program: false,
},
{
name: "address-batched",
command: "test_address_batched",
name: "e2e",
command: "test_e2e_v2",
timeout: 60,
needs-test-program: true,
},
{
name: "state-batched",
command: "test_state_batched",
timeout: 60,
needs-test-program: false,
},
{
name: "state-photon-batched",
command: "test_state_indexer_batched",
timeout: 60,
needs-test-program: false,
},
{
name: "2-foresters",
command: "test_epoch_monitor_with_2_foresters",
timeout: 60,
needs-test-program: false,
},
{
name: "double-registration",
command: "test_epoch_double_registration",
timeout: 60,
needs-test-program: false,
},
]
name: test-${{ matrix.test-name.name }}
runs-on: warp-ubuntu-latest-x64-4x
Expand Down Expand Up @@ -117,6 +98,7 @@ jobs:
run: |
source ./scripts/devenv.sh
cargo test-sbf -p create-address-test-program

- name: Run ${{ matrix.test-name.name }} tests
run: |
source ./scripts/devenv.sh
Expand Down
24 changes: 24 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const PHOTON_VERSION = "0.51.0";
// Set these to override Photon requirements with a specific git commit:
export const USE_PHOTON_FROM_GIT = true; // If true, will show git install command instead of crates.io.
export const PHOTON_GIT_REPO = "https://github.com/lightprotocol/photon.git";
export const PHOTON_GIT_COMMIT = "6ee3c027226ab9c90dc9d16691cdf76dd2f29dbf"; // If empty, will use main branch.
export const PHOTON_GIT_COMMIT = "c938ee83ad1b34abc389943334627a899da72953"; // If empty, will use main branch.

export const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
export const BASE_PATH = "../../bin/";
Expand Down
1 change: 1 addition & 0 deletions forester-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ account-compression = { workspace = true, features = ["cpi"] }

tokio = { workspace = true }
futures = { workspace = true }
async-stream = "0.3"

anchor-lang = { workspace = true }

Expand Down
18 changes: 18 additions & 0 deletions forester-utils/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
use light_batched_merkle_tree::errors::BatchedMerkleTreeError;
use light_hasher::HasherError;
use thiserror::Error;

use crate::rpc_pool::PoolError;

#[derive(Error, Debug)]
pub enum ForesterUtilsError {
#[error("parse error: {0:?}")]
Expand All @@ -12,4 +16,18 @@ pub enum ForesterUtilsError {
Indexer(String),
#[error("invalid slot number")]
InvalidSlotNumber,
#[error("Hasher error: {0}")]
Hasher(#[from] HasherError),

#[error("Account zero-copy error: {0}")]
AccountZeroCopy(String),

#[error("light client error: {0}")]
LightClient(#[from] light_client::rpc::RpcError),

#[error("batched merkle tree error: {0}")]
BatchedMerkleTree(#[from] BatchedMerkleTreeError),

#[error("pool error: {0}")]
Pool(#[from] PoolError),
}
Loading
Loading