-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(starknet_integration_tests): add db path argument to node_setup … #3925
Conversation
1267edf
to
eb35d2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @nadin-Starkware)
crates/starknet_integration_tests/src/node_setup.rs
line 48 at r1 (raw file):
} } }
Arg parsing of a single given binary should probably in that binary module.
Code quote:
// TODO(Nadin): Improve the argument parsing.
pub fn get_base_db_path(args: Vec<String>) -> PathBuf {
let arg_name = "--base_db_path_dir";
match args.as_slice() {
[] => PathBuf::from("./data"),
[arg, path] if arg == arg_name => PathBuf::from(path),
_ => {
eprintln!("Error: Bad argument. The only allowed argument is '{}'.", arg_name);
std::process::exit(1);
}
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @nadin-Starkware)
crates/starknet_integration_tests/src/node_setup.rs
line 48 at r1 (raw file):
} } }
PTAL at how the node binary parses args:
https://github.com/starkware-libs/sequencer/blob/main/crates/papyrus_config/src/command.rs#L10-L16
Code quote:
pub fn get_base_db_path(args: Vec<String>) -> PathBuf {
let arg_name = "--base_db_path_dir";
match args.as_slice() {
[] => PathBuf::from("./data"),
[arg, path] if arg == arg_name => PathBuf::from(path),
_ => {
eprintln!("Error: Bad argument. The only allowed argument is '{}'.", arg_name);
std::process::exit(1);
}
}
}
22bad1e
to
8dcd027
Compare
eb35d2f
to
69d423d
Compare
8dcd027
to
26385bf
Compare
69d423d
to
c23af6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @Itay-Tsabary-Starkware)
crates/starknet_integration_tests/src/node_setup.rs
line 48 at r1 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Arg parsing of a single given binary should probably in that binary module.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware)
c23af6e
to
a411cfc
Compare
26385bf
to
e66df4c
Compare
a411cfc
to
9f3f7ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware)
…m database directory path commit-id:675b21e5
…for configurable DB storage commit-id:2e49fc49
9f3f7ca
to
9e206be
Compare
Artifacts upload workflows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 8 of 8 files at r4.
Reviewable status: 6 of 8 files reviewed, all discussions resolved (waiting on @nadin-Starkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r5, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware)
…for configurable DB storage
commit-id:2e49fc49