-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Handle quotes in gradle arguments #128548
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
Conversation
|
Pinging @elastic/es-delivery (Team:Delivery) |
|
|
||
| set -e | ||
| $GRADLEW -S --max-workers=$MAX_WORKERS $@ | ||
| $GRADLEW -S --max-workers=$MAX_WORKERS "$@" |
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.
Please let me know if additional testing (besides main pipeline) is required for this change
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.
Seems reasonable to me. Have you tested running the pipeline that caused this issue to verify it fixes your problem?
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. have you manually triggered the pipeline that failed from the patch branch to verify the fix works here too?
|
|
||
| set -e | ||
| $GRADLEW -S --max-workers=$MAX_WORKERS $@ | ||
| $GRADLEW -S --max-workers=$MAX_WORKERS "$@" |
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. have you manually triggered the pipeline that failed from the patch branch to verify the fix works here too?
| - label: periodic-micro-benchmarks | ||
| command: | | ||
| .ci/scripts/run-gradle.sh -p benchmarks/ run --args 'org.elasticsearch.benchmark._nightly -rf json -rff build/result.json' | ||
| .ci/scripts/run-gradle.sh :benchmarks:run --args 'org.elasticsearch.benchmark._nightly -rf json -rff build/result.json' |
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.
👍
|
I've asked @brianseeders to have a look at this too as his bash foo is beyond mine and he authored that initially i think |
brianseeders
left a comment
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.
Yep, that should be quoted. Thank you.
@breskeby it looks liek we are having troubles running this pipeline from the fork, see https://buildkite.com/elastic/elasticsearch-periodic-micro-benchmarks/builds/2#019715e2-e8bc-4e64-ba51-482fd7afa1e9 However I was able to reproduce the issue locally and confirm this is fixing it. |
|
FYI. @idegtiarenko you should be able to run branches that are linked to a PR by just passing a branch in the pattern of |
|
Ah, makes sense, I was trying {fork}:{branch} instead |
When executing
.ci/scripts/run-gradle.sh -p benchmarks/ run --args 'org.elasticsearch.benchmark._nightly -rf json -rff build/result.json'I was getting following error:I believe this is happening due to quotes in the command. unlike
$@,"$@"should preserve quotes.