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

Remove temp:// and some old MessageProxy variants #9129

Merged
merged 29 commits into from
Feb 26, 2025
Merged

Conversation

grtlr
Copy link
Contributor

@grtlr grtlr commented Feb 25, 2025

Related

What

Removes the temporary temp:// URI scheme and streamlines handling of URIs.

Copy link

github-actions bot commented Feb 25, 2025

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

  • I have tested the web viewer
Result Commit Link Manifest
5081c10 https://rerun.io/viewer/pr/9129 +nightly +main

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

Copy link

github-actions bot commented Feb 25, 2025

Latest documentation preview deployed successfully.

Result Commit Link
5081c10 https://landing-qddg8ca4h-rerun.vercel.app/docs

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

@jprochazk jprochazk added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Feb 25, 2025
@jprochazk jprochazk marked this pull request as ready for review February 25, 2025 20:40
let url = format!("http://{server_addr}")
.parse()
.expect("should always be valid");
let url = format!("http://{server_addr}/proxy");
Copy link
Member

Choose a reason for hiding this comment

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

Should this be rerun+http?

Copy link
Member

Choose a reason for hiding this comment

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

Yes

@@ -210,6 +210,12 @@ impl WebViewerConfig {
};

if let Some(source_url) = source_url {
// TODO(jan): remove after we change to `rerun-http`
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit confused by this TODO -- what still needs to change?

Copy link
Member

@jprochazk jprochazk Feb 25, 2025

Choose a reason for hiding this comment

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

+ in a query param is treated as whitespace, meaning that to actually connect to a Rerun server from the web viewer, you need to percent-encode the URL first (or at least the + character, you can see it all over the place here). We want to change it (in a separate PR) to rerun-http/rerun-https instead of rerun+http/rerun+https, because the - character does not have special meaning in any part of the URL.

Copy link
Member

@jleibs jleibs left a comment

Choose a reason for hiding this comment

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

Running python examples with --serve does not appear to work

@jleibs
Copy link
Member

jleibs commented Feb 25, 2025

Looks like we need a missing /proxy here:

format!("{http_web_viewer_url}?url=rerun%2Bhttp://localhost:{grpc_port}")

@jprochazk jprochazk requested a review from jleibs February 26, 2025 07:59
@jprochazk
Copy link
Member

jprochazk commented Feb 26, 2025

tested with:

pixi run -e wheel-test py-build-common -F web_viewer && pixi run -e wheel-test python examples/python/rgbd/rgbd.py --serve

opens browser and streams data correctly

@jleibs jleibs merged commit 811e48b into main Feb 26, 2025
41 checks passed
@jleibs jleibs deleted the grtlr/remove-temp branch February 26, 2025 08:23
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the same grpc:// client for both Storage Node and re_grpc_server
3 participants