-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(muxpi): provisioning: skip user creation, boot check via URL #214
Conversation
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.
Overall, this looks pretty good and thanks a lot for also adding documentation around it! I have a couple of review comments below, but more generally, I was wondering what sort of command you would need to specify in order to determine that the device booted? especially since you can't easily template the IP of the dut as part of it.
I'm wondering if we should just handle this as a special image type and check whether it booted in a static way, because we don't normally allow injection of commands like this during the provision process, and I think this could be fraught with problems, and potential for allowing someone to inadvertently render the device unusable until someone fixes it.
device-connectors/src/testflinger_device_connectors/devices/muxpi/muxpi.py
Outdated
Show resolved
Hide resolved
Thanks for your review. PR updated, responses to your questions inline below.
Any command that e.g. checks if a HTTP endpoint is available:
That has now been fixed, I did have
One thing that could work is instead of allowing a generic |
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 like your idea of replacing boot_check_cmd
with boot_check_tcp_port
or boot_check_http_port
, however I think for the latter, it would suffice to just call it boot_check_http
and then give it the URL with the port if needed.
Also, you probably saw, but it also looks like the auto-spell-check got tripped up on "xz" of all things.
Went for I opted to use
Done. |
/canonical/self-hosted-runners/run-workflows 552e8b3 |
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.
It looks like it's just failing the black formatting check. Would you mind re-running black on it and pushing it?
552e8b3
to
3048b21
Compare
Done. I also noticed that my PR fixes weren't signed commits, so I squashed all into a single signed commit. |
3048b21
to
b8a0e20
Compare
/canonical/self-hosted-runners/run-workflows b8a0e20' |
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.
+1 thanks!
Description
Documentation
Documentation with the newly-added keys is added. As part of this, the recognized image types (for user creation) are also documented.
Tests
Untested proposal / request for comment.