-
Notifications
You must be signed in to change notification settings - Fork 43
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
[1/n] [reconfigurator-cli] split into binary/library #7892
[1/n] [reconfigurator-cli] split into binary/library #7892
Conversation
Created using spr 1.3.6-beta.1
I was a little surprised this looks like it only exposes So this is just a way of invoking the command itself without having to fork/exec it? It looks like you can't even specify the arguments programmatically (since they're non-pub) so you must still be relying on This seems fine. I'm just trying to understand the motivation and I'm wondering if we should document it somehow. Edit: I see from the follow-on PR that this is just so that we can create a second |
Yeah, I'd treat the reconfigurator sim as the true library here and this as a command interpreter/REPL on top of that.
For now, yes -- though we could just as well allow more programmatic command specification in the future.
Yeah -- I was hoping to avoid making a whole binary and just use reconfigurator-cli in-process, but that would require that reconfigurator-cli not directly produce output to stdout/stderr -- which is something we can do in the future but we're skipping for now. |
Do you feel like the documentation in this block is sufficient? |
…ther crate (#7893) Decouple the reconfigurator-cli tests from this more expensive Nexus integration test. The integration test is quite valuable to keep around, but in my experience it fails much less often than the blueprint snapshot-based tests, and having to build all of Nexus to run snapshot tests is bothersome. Depends on: * #7892
This split allows other crates to depend on reconfigurator-cli and use it in tests. We're going to introduce such a test in the next commit.