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
build_providers: add ssh key managemet to the qemu build provider #2168
Conversation
…ider LP: #1774013 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Codecov Report
@@ Coverage Diff @@
## master #2168 +/- ##
=========================================
+ Coverage 91.29% 91.3% +<.01%
=========================================
Files 200 201 +1
Lines 12580 12605 +25
Branches 1871 1872 +1
=========================================
+ Hits 11485 11509 +24
Misses 741 741
- Partials 354 355 +1
Continue to review full report at Codecov.
|
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.
A few comments, but nothing at all major.
SSHKeyT = TypeVar('SSHKeyT', bound='SSHKey') | ||
|
||
|
||
class SSHKeyPathError(SnapcraftError): |
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.
This error class name could be more descriptive: it's not just a problem with the path (permissions etc.), it's that the path doesn't actually exist.
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.
Also, no strong feelings here, but I'm curious why this isn't in build_providers/errors.py
?
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 had the feeling it was qemu specific, but after a check I see the telnet stuff made it there too.
super().__init__(private_key_file_path=private_key_file_path) | ||
|
||
|
||
class SSHKey: |
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.
Class and function docs would be nice.
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.
hmm, I wonder where they went, I did actually write them 😕
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.
reflog did not rescue me :-/
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.
Looks good, thank you!
…ider
LP: #1774013
Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com
./runtests.sh static
?./runtests.sh unit
?