-
Notifications
You must be signed in to change notification settings - Fork 53
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
chore: randomize temp output directory #3341
Conversation
@@ -62,7 +62,7 @@ ENV HOME=/home | |||
ENV OS_ARCHITECTURE="linux-x86_64" | |||
|
|||
# install OS tools | |||
RUN apk update && apk add unzip curl rsync openjdk11 jq bash nodejs npm git | |||
RUN apk update && apk add unzip curl rsync openjdk11 jq bash nodejs npm git uuidgen |
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.
Is there anyway to generate a random String without a new dependency? Every new dependency is subject to vulnerabilities.
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.
Took sometime but I found $RANDOM
should be sufficient.
Quality Gate passed for 'gapic-generator-java-root'Issues Measures |
Quality Gate passed for 'java_showcase_integration_tests'Issues Measures |
In this PR:
$RANDOM
(a shell variable that generates a random integer between 0 and 32767) to randomize temp output directory to support parallel generation.