Uh oh!
There was an error while loading. Please reload this page.
HBASE-23339 Release scripts should use forwarded gpg-agent - #1620
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
saintstack
left a comment
There was a problem hiding this comment.
Man. The amount of pain involved getting to here I can only imagine. Masochist!
| cd "$WORKDIR" | ||
| rm -rf "$WORKDIR/output" | ||
| rm -rf "${WORKDIR}/gpg-proxy.ssh.pid" "${WORKDIR}/gpg-proxy.cid" "${WORKDIR}/release.cid" |
There was a problem hiding this comment.
Move to a trap/signal handler? Follow-on.
There was a problem hiding this comment.
All these clean ups should be in a cleanup handler... Not your issue.
There was a problem hiding this comment.
Hows this relate to the below nice cleanup function?
There was a problem hiding this comment.
so the clean up function should take care of them, but something can go wrong such that they don't get handled.
since docker will fail loudly if the passed container id file path exists, this ensures we have a smooth path back to running again even if something goes wrong.
also the latest version of the WIP has an option to purposefully leave those files in place at the end of execution in case someone needs to debug what the containers are doing.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
busbey
commented
May 18, 2020
sorry for the lag here. missed that I had comments. |
busbey
commented
May 18, 2020
shellcheck and whitespace complaints should be easy enough to clean up. will get to it after I get PRs up for all the commits on the branch that are not this particular jira. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
busbey
commented
May 23, 2020
I think this is ready now. |
Nice, I missed that on my earlier read-thru. Thanks.
I recommend adding that example in the README. I think most people do not have gpg-agent running by default, may not know how to launch it (I was vague on it), and while it is true that the test signature at container launch will catch a missing agent timely, it won't tell the user how to fix the problem. -- So, maybe also have that test sig command catch failure and give an instructive error message. Please? |
ndimiduk
commented
Jun 15, 2020
I was able to use this patch over the weekend to build an rc as dry run. all the gpg passthrough worked well for me. |
ndimiduk
commented
Jun 15, 2020
@busbey@mattf-apache I'm trying to use this to create an RC for real, using |
ndimiduk
commented
Jun 15, 2020
Using it without |
@ndimiduk@busbey , both the creation of the Parenthetically, I am confused by the |
mattf-apache
commented
Jun 16, 2020
Similarly, regarding the failure without |
I tracked this down to a character that the library helpfully does not encode by default. See PR#1907. |
mattf-apache
commented
Jun 16, 2020
Righto. Nice catch. |
busbey
commented
Jun 17, 2020
the object directory messages are a side effect of using the shared objects. It shouldn't be listed as an error since git then immediately checks the alternates we provide and finds what it needs.
the |
mattf-apache
commented
Jun 20, 2020
Thanks for the explanation. |
ndimiduk
commented
Jun 22, 2020
I think the build failed for me due to this error. Will try it again for RC1. |
… container. * put together a docker container that can use host gpg-agent forwarded over ssh. * use gpg-agent forwarding container on OS X and directly forward the agent on Linux * clean up the release container on exit * use docker mounts instead of the deprecated volume syntax * use image names within our project namespace
…h gpg-agent forwarding
busbey
commented
Jun 24, 2020
force push was just me rebasing to the current HEAD with the changes as they were. the next commit is a minor issue I found while doing non-docker builds. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
busbey
commented
Jun 24, 2020
@mattf-apache latest commit adds in an example in the README and some error handling to point to it. |
busbey
commented
Jun 24, 2020
these two additional commits are both minor tweaks. @ndimiduk and @mattf-apache please shout if you'd like to give further feedback. barring that I'll go ahead with merging after the qabot comes back and I get time to squash+merge. |
Apache-HBase
commented
Jun 24, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 24, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 24, 2020
🎊 +1 overall
This message was automatically generated. |
This gets through full builds now both on a local mac with docker desktop and on a remote GCE debian box.