-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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: warn user when 'pin remote add' while offline #8621
feat: warn user when 'pin remote add' while offline #8621
Conversation
This comment has been minimized.
This comment has been minimized.
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 seems be the correct way. My main ask at the moment would be to include a test for it in sharness (t0700-remotepin.sh
), although I'm not sure how easy it is to deal with the situation that the command will still hang forever even after the warning (maybe we should add a timeout).
@schomatis How do I set up the |
Could you give me more context, please? What are you trying to do and why do you need |
I was trying to write a test for it as you mentioned above, and bootstrapped a |
I'm still not following completely without seeing the code but the idea is to put the test in sharness (in the file cited before), so Docker shouldn't be necessary for that. |
Turned out that I didn't have |
Does everything look good in the PR? @schomatis |
Thanks for the ping, yes. Still we need to wait for lidel to confirm on #8418 (comment) to make sure if there is anything else needed. |
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.
LGTM, thank you.
- this saves people's time by warning them they forgot to start local provider
- interop test is unrelated, should be fixed by rebasing on after fix(ci): interop test parallelism #8674 lands
@rukolahasser mind rebasing this PR on top of the latest |
7e0ece9
to
8d2af0d
Compare
@lidel I rebased it but there was a failed test that seemed unrelated to my PR, was the failed test expected? |
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.
Thank you, this LGTM. (Pushed small fix to ensure output of --enc=json
is not impacted)
CI issue was unrelated, all green now.
This ensures we don't break JSON produced by --enc=json
459d533
to
f29b38b
Compare
Resolves #8418
The warning is printed only when being online matters (if CID to be pinned remotely is in a local store)