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

Fix: --serve-web should consume data sources #9004

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

jprochazk
Copy link
Member

@jprochazk jprochazk commented Feb 12, 2025

Related

What

Previously we would create a RerunServer from rxs before serving the Web Viewer. The gRPC server that's started by --serve-web will now consume rxs as well. It can still be sent additional data via connect_grpc in our SDKs, even after it consumes its initial data sources.

Tested with (from linked issue):

cargo run -p clock -- --save clock.rrd
pixi run --rerun-web clock.rrd

@jprochazk jprochazk added 🕸️ web regarding running the viewer in a browser exclude from changelog PRs with this won't show up in CHANGELOG.md labels Feb 12, 2025
Copy link

github-actions bot commented Feb 12, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
20e2fd9 https://rerun.io/viewer/pr/9004 +nightly +main

Note: This comment is updated whenever you push a commit.

@@ -27,6 +27,8 @@ use tower_http::cors::CorsLayer;
pub const DEFAULT_SERVER_PORT: u16 = 9876;
pub const DEFAULT_MEMORY_LIMIT: MemoryLimit = MemoryLimit::UNLIMITED;

// TODO(jan): Refactor `serve`/`spawn` variants into a builder?
Copy link
Member Author

@jprochazk jprochazk Feb 12, 2025

Choose a reason for hiding this comment

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

I keep adding more of these. It's unlikely to increase any further, but if it does I'll refactor it into more of a builder.

@jprochazk jprochazk force-pushed the jan/fix-serve-web-file branch from f94869f to 20e2fd9 Compare February 13, 2025 12:04
@jprochazk jprochazk merged commit d32c8ce into main Feb 13, 2025
35 checks passed
@jprochazk jprochazk deleted the jan/fix-serve-web-file branch February 13, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rerun --web-viewer file.rrd no longer loads rrd
2 participants