-
Notifications
You must be signed in to change notification settings - Fork 0
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/#61 remote exec #62
Conversation
テストをするときにsystemctlでdockerデーモンを起動しているせいでcargo testするたびにroot権限を求められて面倒くさい |
actionsの環境では最初からdockerデーモンが立ち上がっていそう |
ソケットがrunningではない場合systemctl status dockerが異常終了していそうなので解決できそう |
正常系の失敗ケースは追加したいかも |
あと、ジャッジサーバーの責任で起こるエラーと作問者の責任で起こるエラーがありそれらを適切にハンドリングする必要があるため、anyhow::Resultを使うべきではないかもしれない |
timeoutが動いていない |
解決した |
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.
とりあえずclippyでwarningが出ていた分
手元で |
cargo clippy --fixした |
@kenken714 clippyとcargo fmtで結果が変わる部分がありそう |
) | ||
.await; | ||
stop_ssh_docker_container(uuid).await.unwrap(); | ||
assert!(resp.is_err_and(|e| match e { |
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.
assert!(matches!(
resp,
Err(remote_exec::ssh::SshExecError::RemoteServerError(_))
));
だと良い気がするけど、任せます
|
:koreni_natteru: (手元だけ) |
(dockerデーモンが起動済み or root権限あり)が満たされないなら自動で落とすようにしたからよくはなっているはず |
関連Issue
概要
telnetからsshに変更し実装
変更内容
チェックリスト
補足