Skip to content
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

chore: test rebase audit branch #1352

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ self-hosted-runner:
- buildjet-2vcpu-ubuntu-2204
- buildjet-4vcpu-ubuntu-2204
- buildjet-8vcpu-ubuntu-2204
- buildjet-16vcpu-ubuntu-2204
# Configuration variables in array of strings defined in your repository or
# organization. `null` means disabling configuration variables check.
# Empty array means no configuration variable is allowed.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/forester-build-and-push-to-docr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Build and Push to DOCR
on:
push:
branches:
- main
- "*"
pull_request:
branches:
- "**"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/forester-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
on:
push:
branches:
- main
- "*"
- jorrit/feat-bloomfilter-queues
paths:
- "forester/**"
- "photon-api/**"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
on:
push:
branches:
- main
- "*"
- jorrit/feat-bloomfilter-queues
pull_request:
branches:
- "*"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/light-examples-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- "*"
paths:
- "examples/**"
- "macros/light-sdk-macros/**"
Expand Down Expand Up @@ -37,10 +37,10 @@ jobs:
sub-tests: '[
"cargo test-sbf -p token-escrow -- --test-threads=1"
]'
- program: name-service-without-macros-test
sub-tests: '[
"cargo test-sbf -p name-service-without-macros -- --test-threads=1"
]'
# - program: name-service-without-macros-test
# sub-tests: '[
# "cargo test-sbf -p name-service-without-macros -- --test-threads=1"
# ]'

steps:
- name: Checkout sources
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/light-system-programs-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- "*"
paths:
- "programs/**"
- "test-programs/**"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
on:
push:
branches:
- main
- "*"
- jorrit/feat-bloomfilter-queues
pull_request:
branches:
- "*"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prover-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test gnark prover
on:
push:
branches:
- main
- "*"
- 'release/**'
paths:
- "light-prover/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- main
- "*"

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- "*"
paths:
- ".cargo/**"
- "**/*.rs"
Expand Down
70 changes: 70 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ num-traits = "0.2.19"
# HTTP client
reqwest = "0.11.26"

# Testing
serial_test = "3.1.1"

[patch.crates-io]
"solana-account-decoder" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-accounts-db" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
Expand Down
2 changes: 1 addition & 1 deletion circuit-lib/light-prover-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ sysinfo = "0.31"
borsh = ">=0.9, <0.11"
[dev-dependencies]
duct = "0.13.7"
serial_test = "3.1.1"
serial_test = "3.1.1"
8 changes: 5 additions & 3 deletions circuit-lib/light-prover-client/src/gnark/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ pub enum ProofType {
Inclusion,
NonInclusion,
Combined,
BatchAppend,
BatchAppendWithSubtrees,
BatchAppendWithProofs,
BatchUpdate,
BatchAddressAppend,
BatchAppendWithSubtreesTest,
Expand All @@ -63,7 +64,8 @@ impl Display for ProofType {
ProofType::Inclusion => "inclusion",
ProofType::NonInclusion => "non-inclusion",
ProofType::Combined => "combined",
ProofType::BatchAppend => "append",
ProofType::BatchAppendWithSubtrees => "append-with-subtrees",
ProofType::BatchAppendWithProofs => "append-with-proofs",
ProofType::BatchUpdate => "update",
ProofType::BatchAppendWithSubtreesTest => "append-with-subtrees-test",
ProofType::BatchUpdateTest => "update-test",
Expand Down Expand Up @@ -117,7 +119,7 @@ pub async fn spawn_prover(restart: bool, config: ProverConfig) {

let _ = command.spawn().expect("Failed to start prover process");

let health_result = health_check(20, 5).await;
let health_result = health_check(20, 30).await;
if health_result {
info!("Prover started successfully");
} else {
Expand Down
1 change: 1 addition & 0 deletions circuit-lib/light-prover-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ pub mod groth16_solana_verifier;
pub mod helpers;
pub mod inclusion;
pub mod init_merkle_tree;
pub mod mock_batched_forester;
pub mod non_inclusion;
pub mod prove_utils;
Loading
Loading