-
Notifications
You must be signed in to change notification settings - Fork 62
rm -rf oxapi_demo, replace w cli #802
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
Conversation
Signed-off-by: Jess Frazelle <[email protected]>
Signed-off-by: Jess Frazelle <[email protected]>
Signed-off-by: Jess Frazelle <[email protected]>
Co-authored-by: David Crespo <[email protected]>
Co-authored-by: David Crespo <[email protected]>
|
Maybe a naive question, but if we're developing the API itself (adding routes, modifying types), how could one test such changes with the CLI? |
|
The api command! Bottom example :D
It’s like fancy curl
… On Mar 23, 2022, at 1:38 PM, bnaecker ***@***.***> wrote:
Maybe a naive question, but if we're developing the API itself (adding routes, modifying types), how could one test such changes with the API?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
|
|
||
| There's a small demo tool called `./tools/oxapi_demo` that provides a slightly friendlier interface than `curl`, with the same output format. To use the demo, the `node` and `json` programs should be installed and available in the users PATH: | ||
| The `oxide` CLI can be installed from the [latest | ||
| release](https://github.com/oxidecomputer/cli/releases). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we publishing releases for illumos?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldnt get cargo cross to work for illumos but maybe @jclulow can, its easy to turn on if it compiles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm reading through https://github.com/cross-rs/cross - I don't think illumos is a supported target by that project.
Manually, I checked out the CLI repo and tried building the x86_64-unknown-illumos target via cross compilation, and am hitting a variety of linker errors (which I think makes sense; it's trying to use my host (Linux) linker).
On the other hand, I can totally check out the CLI repo and build it manually on my Helios machine. If cross-compilation doesn't work, we could add a buildomat job to natively compile + publish the CLI tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep for sure i already have a matrix for the others on release https://github.com/oxidecomputer/cli/blob/main/.github/workflows/make-release.yml#L10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened a PR: oxidecomputer/oxide.rs#117
This should produce an oxide binary for illumos systems. Is there a way, from GitHub Actions, to poll on the completion of a check run from outside GitHub Actions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dope! hmm not sure, but since I'm uploading things to GCS maybe the release stuff could be changed to wait for everything to be in the bucket before generating things, idk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use |
|
the cli is also generated from the spec I can add instructions so basically you'd update the spec in the API (oxide.rs) and (cli) repos and go, the cli is a macro from the spec file so its just updating the file. |
|
@david-crespo Yep, I do use It looks like the |
|
Thanks @jessfraz, that's what I was looking for! I'm glad we can still test out the user-facing aspects or just dog-food this repo with a command-line tool, thanks for making sure that's possible! |
|
to be fair i stole the |
Great artists? Shoulders of giants? Pick your platitude, it's a good idea :) |
|
if you want to get really fancy too you can do the following, because the alias command allows you to set up aliases: say you are testing a endpoint like that's super long right for testing you can do
such that when you run
it populates the above... anyways if you want to get fancy with it |
oxidecomputer/console#716 to prove it works