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

feat: misc minor QoL features #112

Merged
merged 4 commits into from
Apr 12, 2024
Merged

feat: misc minor QoL features #112

merged 4 commits into from
Apr 12, 2024

Conversation

Meshiest
Copy link
Contributor

  • make connect in the storage work without requiring extra non-existent files
  • download the agent binary from the control plane via ./scripts/agent.sh (and prepare for dynamic endpoint ids)
  • add more params for the genesis generation (and example specs)

@Meshiest Meshiest requested review from voximity and gluax and removed request for voximity April 12, 2024 01:05
pub static ref DEFAULT_AOT_BIN: PathBuf =
std::env::var("AOT_BIN").map(PathBuf::from).unwrap_or(
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/release/snarkos-aot"),
);
pub static ref DEFAULT_AGENT_BIN: PathBuf =
std::env::var("AGENT_BIN").map(PathBuf::from).unwrap_or(
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/release/snops-agent"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we want the smaller binary. The path is different. I have the makefile outputting in in target/snops-agent-compressed. Or if you don't want to upx it, it would be in target/x86_64-unknown-linux-gnu/release-small/snarkos-aot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is kind of a workaround at the moment, we probably should just require the control plane to launch with a path to the agent as an arg

@@ -192,10 +193,15 @@ impl From<FilenameString> for String {
}

lazy_static! {
// TODO: support multiple architectures
pub static ref DEFAULT_AOT_BIN: PathBuf =
std::env::var("AOT_BIN").map(PathBuf::from).unwrap_or(
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/release/snarkos-aot"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this one actually

crates/snops/src/schema/storage.rs Outdated Show resolved Hide resolved
crates/snops/src/schema/storage.rs Outdated Show resolved Hide resolved
crates/snops/src/schema/storage.rs Outdated Show resolved Hide resolved
crates/snops/src/schema/storage.rs Outdated Show resolved Hide resolved
@voximity voximity merged commit 57841cc into main Apr 12, 2024
2 checks passed
@voximity voximity deleted the fix-canary branch April 12, 2024 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants