Skip to content

Restructure the repo as a workspace #233

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 8 commits into
base: main
Choose a base branch
from
Open

Conversation

ferranbt
Copy link
Collaborator

@ferranbt ferranbt commented May 19, 2025

Closes #223

I have not changed any internal Rollup-boost logic but on the way we run the integration tests:

Copy link

vercel bot commented May 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rollup-boost ⬜️ Ignored (Inspect) Visit Preview May 20, 2025 7:53am

rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install TLS ring CryptoProvider");
let _ = rustls::crypto::ring::default_provider().install_default();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same as with the other changes. It fails if you try to install twice.

Copy link
Collaborator

Choose a reason for hiding this comment

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

would have a warning log here instead of a silent failure

@@ -242,7 +244,7 @@ impl RollupBoostTestHarnessBuilder {
let timestamp = dt.format(&format)?;

let dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("integration_logs")
.join("../../integration_logs")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like to have the logs on the root folder.

@@ -42,8 +45,6 @@ impl Default for RollupBoostConfig {
&format!("--l2-jwt-path={}/jwt_secret.hex", *TEST_DATA),
&format!("--builder-jwt-path={}/jwt_secret.hex", *TEST_DATA),
"--log-level=trace",
"--tracing",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are tracing / metrics args removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tracing can be added back.
Metrics is still done inside rollup-boost and installs a global metric that also panics if It has been registered already.

Copy link
Collaborator

@0xOsiris 0xOsiris left a comment

Choose a reason for hiding this comment

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

What do you think about moving all dependencies into the workspace root, and then reference workspace dependencies within the individual crates? I think this will speed up workspace compilation times with many shared dependencies across the two crates.

@ferranbt
Copy link
Collaborator Author

What do you think about moving all dependencies into the workspace root, and then reference workspace dependencies within the individual crates? I think this will speed up workspace compilation times with many shared dependencies across the two crates.

True! I only thought about the alloy/reth dependencies. I will move the shared ones to the workspace Cargo.toml

@avalonche
Copy link
Collaborator

does this change how rollup-boost is run within the workspace? please also update the command line docs if so

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.

Restructure the repository as a workspace
3 participants