Skip to content
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

Merged
merged 13 commits into from
Nov 8, 2024
Merged

Conversation

JoeWang1127
Copy link
Collaborator

@JoeWang1127 JoeWang1127 commented Nov 6, 2024

In this PR:

  • Use $RANDOM (a shell variable that generates a random integer between 0 and 32767) to randomize temp output directory to support parallel generation.

@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Nov 6, 2024
@JoeWang1127 JoeWang1127 changed the title chore: support parallel gen chore: randomize temp output directory Nov 6, 2024
@JoeWang1127 JoeWang1127 marked this pull request as ready for review November 6, 2024 23:53
@@ -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
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

@JoeWang1127 JoeWang1127 requested a review from blakeli0 November 7, 2024 23:11
Copy link

sonarqubecloud bot commented Nov 7, 2024

Copy link

sonarqubecloud bot commented Nov 7, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@JoeWang1127 JoeWang1127 merged commit b0adcf9 into main Nov 8, 2024
51 of 55 checks passed
@JoeWang1127 JoeWang1127 deleted the chore/support-parallel-gen branch November 8, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants