Skip to content

Remove call functionality from humility rpc#610

Merged
mkeeter merged 2 commits intomkeeter/net-configfrom
mkeeter/remove-rpc-call
Apr 6, 2026
Merged

Remove call functionality from humility rpc#610
mkeeter merged 2 commits intomkeeter/net-configfrom
mkeeter/remove-rpc-call

Conversation

@mkeeter
Copy link
Copy Markdown
Contributor

@mkeeter mkeeter commented Apr 1, 2026

(staged on top of #608)

humility rpc --ip=... --call ... is almost identical to humility --ip=... hiffy --call ..., and duplicates the calling implementation. The one exception is being able to execute a udprpc call across every compatible SP. I don't think we use that functionality anywhere (searching the whole oxidecomputer org finds no users of humility rpc), so I'd vote to delete it.

This leaves humility rpc --listen as the only subcommand, which is still useful (and not duplicated elsewhere).

@mkeeter mkeeter requested review from cbiffle, hawkw and labbott April 1, 2026 20:06
//! ```
//!
//! Alternatively, you can set the `HUMILITY_RPC_IP` environmental variable.
//! `humility rpc` lets you discover SPs on a network, instead of using a
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So, I kinda feel like, if that's now the only thing it does, maybe it shouldn't be called humility rpc...maybe humility discover or something? It could remain aliased as humility rpc --listen for backwards compatibility if there's scripts that rely on this. It just seems a bit possibly confusing for the help command to be like "hey look! It's humility rpc, a command which doesn't actually perform RPCs!"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Seems reasonable, I've renamed to humility discover (and added support for running without an archive).

//!
//! `humility discover` lets you discover SPs on a network, instead of using a
//! physically attached debugger. Once SPs are discovered, they may be used as
//! a target by setting `HUMILITY_IP` or providing the `--ip` argument.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ohhhhh I feel like I've wanted this exact command before

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Surprise, it has existed all along!

@mkeeter mkeeter merged commit 1e9b4c2 into mkeeter/net-config Apr 6, 2026
12 checks passed
@mkeeter
Copy link
Copy Markdown
Contributor Author

mkeeter commented Apr 6, 2026

Whoops, merged this in the wrong order.

@mkeeter mkeeter deleted the mkeeter/remove-rpc-call branch April 7, 2026 20:28
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