Skip to content

Commit 6730bad

Browse files
committed
chore: linting, formatting and coverage workflow updated
1 parent 41f8ecd commit 6730bad

File tree

17 files changed

+34
-35
lines changed

17 files changed

+34
-35
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
cargo build --bin madara --profile dev
5050
export COVERAGE_BIN=$(realpath target/debug/madara)
5151
rm -f target/madara-* lcov.info
52-
cargo test --profile dev --workspace --exclude=orchestrator --exclude=e2e-tests
52+
cargo test --profile dev --package "mc-*" --package "mp-*"
5353
5454
- name: Generate coverage info
5555
run: |

.github/workflows/orchestrator-coverage.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,8 @@ jobs:
141141
--lcov \
142142
--output-path lcov.info \
143143
--test-threads=1 \
144-
--workspace \
145-
--exclude=madara \
146-
--exclude=e2e-tests
144+
--package "orchestrator-*" \
145+
--no-fail-fast
147146
148147
- name: Coveralls
149148
uses: coverallsapp/github-action@v2

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ members = [
4040
"orchestrator/crates/settlement-clients/settlement-client-interface",
4141
"orchestrator/crates/settlement-clients/ethereum",
4242
"orchestrator/crates/settlement-clients/starknet",
43-
"e2e-tests", # TODO: rename / merge with existing tests
43+
"e2e-tests", # TODO: rename / merge with existing tests
4444
]
4545
resolver = "2"
4646
# Everything except test-related packages, so that they are not compiled when doing `cargo build`.

e2e-tests/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ clap.workspace = true
2525
color-eyre.workspace = true
2626
dotenvy.workspace = true
2727
env_logger.workspace = true
28-
orchestrator-ethereum-settlement-client.workspace = true
2928
httpmock = { version = "0.8.0-alpha.1", features = ["proxy", "remote"] }
3029
log.workspace = true
3130
mongodb.workspace = true
3231
orchestrator-core.workspace = true
32+
orchestrator-ethereum-settlement-client.workspace = true
33+
orchestrator-utils.workspace = true
3334
reqwest = { workspace = true, features = ["json"] }
3435
rstest.workspace = true
3536
serde.workspace = true
@@ -42,7 +43,6 @@ tokio = { workspace = true, features = ["full"] }
4243
tokio-stream.workspace = true
4344
tokio-util.workspace = true
4445
url.workspace = true
45-
orchestrator-utils.workspace = true
4646
uuid.workspace = true
4747

4848
[[test]]

e2e-tests/src/anvil.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use alloy::primitives::{fixed_bytes, Address, Bytes, I256, U256};
77
use alloy::providers::ProviderBuilder;
88
use alloy::signers::local::PrivateKeySigner;
99
use alloy::sol;
10+
use orchestrator_utils::env_utils::get_env_var_or_panic;
1011
use tokio::time::sleep;
1112
use url::Url;
12-
use utils::env_utils::get_env_var_or_panic;
1313

1414
sol!(
1515
#[allow(missing_docs)]

e2e-tests/src/mock_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::collections::HashMap;
22

33
use httpmock::MockServer;
4+
use orchestrator_utils::env_utils::get_env_var_or_panic;
45
use reqwest::Client;
56
use serde_json::Value;
6-
use utils::env_utils::get_env_var_or_panic;
77

88
#[allow(dead_code)]
99
/// MockServerGlobal (has mock server inside)

e2e-tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ use orchestrator::jobs::types::{ExternalId, JobItem, JobStatus, JobType};
2020
use orchestrator::queue::job_queue::JobQueueMessage;
2121
use orchestrator::queue::sqs::AWSSQSValidatedArgs;
2222
use orchestrator::queue::QueueType;
23+
use orchestrator_utils::env_utils::get_env_var_or_panic;
2324
use rstest::rstest;
2425
use serde::{Deserialize, Serialize};
2526
use serde_json::json;
2627
use starknet::core::types::{Felt, MaybePendingStateUpdate};
2728
use url::Url;
28-
use utils::env_utils::get_env_var_or_panic;
2929
use uuid::Uuid;
3030

3131
extern crate e2e_tests;

orchestrator/crates/da-clients/ethereum/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ alloy = { git = "https://github.com/alloy-rs/alloy", rev = "68952c0", features =
1818
async-trait = { workspace = true }
1919
c-kzg = { workspace = true }
2020
color-eyre = { workspace = true }
21-
orchestrator-da-client-interface = { workspace = true }
2221
dotenvy.workspace = true
2322
mockall = { workspace = true }
23+
orchestrator-da-client-interface = { workspace = true }
24+
orchestrator-utils = { workspace = true }
2425
reqwest = { workspace = true }
2526
rstest = { workspace = true }
2627
serde = { workspace = true, features = ["derive"] }
2728
starknet = { workspace = true }
2829
tokio = { workspace = true }
2930
url = { workspace = true }
30-
orchestrator-utils = { workspace = true }
3131

3232
#Instrumentation
3333
opentelemetry = { workspace = true, features = ["metrics", "logs"] }

orchestrator/crates/orchestrator/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ alloy = { version = "0.2.1", features = [
2323
assert_matches = { workspace = true }
2424
async-std = { workspace = true }
2525
async-trait = { workspace = true }
26-
orchestrator-atlantic-service = { workspace = true }
2726
aws-config = { workspace = true, features = ["behavior-version-latest"] }
2827
aws-credential-types = { workspace = true, features = [
2928
"hardcoded-credentials",
@@ -41,10 +40,7 @@ cairo-vm = { workspace = true }
4140
chrono = { workspace = true }
4241
clap = { workspace = true }
4342
color-eyre = { workspace = true }
44-
orchestrator-da-client-interface = { workspace = true }
4543
dotenvy = { workspace = true }
46-
orchestrator-ethereum-da-client = { workspace = true, optional = true }
47-
orchestrator-ethereum-settlement-client = { workspace = true }
4844
futures = { workspace = true }
4945
hex = { workspace = true }
5046
itertools = { workspace = true }
@@ -60,25 +56,29 @@ num-bigint = { workspace = true }
6056
num-traits = { workspace = true }
6157
omniqueue = { workspace = true, optional = true }
6258
once_cell = { workspace = true }
63-
prove_block = { workspace = true }
59+
orchestrator-atlantic-service = { workspace = true }
60+
orchestrator-da-client-interface = { workspace = true }
61+
orchestrator-ethereum-da-client = { workspace = true, optional = true }
62+
orchestrator-ethereum-settlement-client = { workspace = true }
6463
orchestrator-prover-client-interface = { workspace = true }
64+
orchestrator-settlement-client-interface = { workspace = true }
65+
orchestrator-sharp-service = { workspace = true }
66+
orchestrator-starknet-settlement-client = { workspace = true }
67+
prove_block = { workspace = true }
6568
rstest = { workspace = true }
6669
serde = { workspace = true }
6770
serde_json = { workspace = true }
68-
orchestrator-settlement-client-interface = { workspace = true }
69-
orchestrator-sharp-service = { workspace = true }
7071
starknet = { workspace = true }
7172
starknet-core = { workspace = true }
7273
starknet-os = { workspace = true }
73-
orchestrator-starknet-settlement-client = { workspace = true }
7474
strum = { workspace = true }
7575
strum_macros = { workspace = true }
7676
tempfile = { workspace = true }
7777
thiserror = { workspace = true }
7878
tokio = { workspace = true, features = ["sync", "macros", "rt-multi-thread"] }
7979

80-
url = { workspace = true }
8180
orchestrator-utils = { workspace = true }
81+
url = { workspace = true }
8282
uuid = { workspace = true, features = ["v4", "serde"] }
8383

8484
aws-sdk-iam = { workspace = true }

orchestrator/crates/prover-clients/atlantic-service/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ chrono.workspace = true
1212
color-eyre.workspace = true
1313
dotenvy.workspace = true
1414
env_logger.workspace = true
15-
orchestrator-gps-fact-checker.workspace = true
1615
hex.workspace = true
1716
httpmock = { version = "0.8.0-alpha.1", features = ["proxy", "remote"] }
1817
lazy_static.workspace = true
1918
log.workspace = true
19+
orchestrator-gps-fact-checker.workspace = true
2020
orchestrator-prover-client-interface.workspace = true
21+
orchestrator-utils.workspace = true
2122
reqwest.workspace = true
2223
rstest.workspace = true
2324
serde.workspace = true
@@ -30,7 +31,6 @@ thiserror.workspace = true
3031
tokio.workspace = true
3132
tokio-util = { version = "0.7.12", features = ["codec"] }
3233
url.workspace = true
33-
orchestrator-utils.workspace = true
3434
uuid.workspace = true
3535

3636
#Instrumentation

0 commit comments

Comments
 (0)