Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

grtlr
Copy link
Member

@grtlr grtlr commented Jul 11, 2025

Related

What

This adds a new rerun rrd route command that can be used to route one or multiple .rrds to a new one (via --output) or to stdout.

This provides a concise way to merge recordings using the CLI. In future versions, we also want to add that functionality to the UI.

Important

The route command will never decode the Arrow data, therefore no migration or verification will happen, which is good for performance. If you still want migration, merging, and compaction, the result can be piped into rerun rrd merge.

Here is an example of the interface, which pipes directly to the viewer:

rerun rrd route \
  --application-id <new-app-id> \
  --recording-id <new-recording-id> \
  a.rrd b.rrd | rerun -

Or you can write the .rrd back out:

rerun rrd route \
  --application-id <new-app-id> \
  --recording-id <new-recording-id> \
  --output <result.rrd> \
  a.rrd b.rrd

@grtlr grtlr added ⛃ re_datastore affects the datastore itself include in changelog CLI Related to the Rerun CLI labels Jul 11, 2025
@grtlr grtlr requested a review from jleibs July 11, 2025 15:33
Copy link

github-actions bot commented Jul 11, 2025

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

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

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

@grtlr grtlr force-pushed the grtlr/rerun-rrd-route branch from db19781 to 0d012a7 Compare July 11, 2025 15:37
@grtlr grtlr force-pushed the grtlr/rerun-rrd-route branch 2 times, most recently from 8fd6b1c to a8e950d Compare July 14, 2025 07:11
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

neat

let mut num_unexpected_msgs = 0;
let mut num_blueprints_msgs = 0;

// TODO(grtlr): encoding should match the original
Copy link
Member

Choose a reason for hiding this comment

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

can we though for the general case? It could be that we are able to read an old version but no longer write it

Copy link
Member Author

Choose a reason for hiding this comment

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

This TODO is inherited from @teh-cmc's rrd stats work. I guess the problem is that read_raw_rrd_streams_from_file_or_stdin does not really expose that functionality yet.

@Wumpf
Copy link
Member

Wumpf commented Jul 14, 2025

cli.md needs updating

Copy link

github-actions bot commented Jul 14, 2025

Latest documentation preview deployed successfully.

Result Commit Link
cbda914 https://landing-p27i80oig-rerun.vercel.app/docs

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

@grtlr grtlr requested a review from Wumpf July 14, 2025 13:29
@grtlr grtlr merged commit 632a5cb into main Jul 14, 2025
39 of 40 checks passed
@grtlr grtlr deleted the grtlr/rerun-rrd-route branch July 14, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Related to the Rerun CLI include in changelog ⛃ re_datastore affects the datastore itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants