Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

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:

FAILURE: Build failed with an exception.
* What went wrong:
Problem configuring task :benchmarks:run from command line.
> Unknown command-line option '-r'.

...

https://gradle-enterprise.elastic.co/s/37zyldvhgnbze

I believe this is happening due to quotes in the command. unlike $@, "$@" should preserve quotes.

@idegtiarenko idegtiarenko requested a review from breskeby May 28, 2025 07:53
@idegtiarenko idegtiarenko requested a review from a team as a code owner May 28, 2025 07:53
@idegtiarenko idegtiarenko added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v9.1.0 labels May 28, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)


set -e
$GRADLEW -S --max-workers=$MAX_WORKERS $@
$GRADLEW -S --max-workers=$MAX_WORKERS "$@"
Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor

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 "$@"
Copy link
Contributor

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@breskeby
Copy link
Contributor

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

Copy link
Contributor

@brianseeders brianseeders left a 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.

@idegtiarenko
Copy link
Contributor Author

LGTM. have you manually triggered the pipeline that failed from the patch branch to verify the fix works here too?

@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.

@idegtiarenko idegtiarenko merged commit c140379 into elastic:main Jun 2, 2025
18 checks passed
@idegtiarenko idegtiarenko deleted the handle_quotes branch June 2, 2025 06:17
@breskeby
Copy link
Contributor

breskeby commented Jun 2, 2025

FYI. @idegtiarenko you should be able to run branches that are linked to a PR by just passing a branch in the pattern of pull/128548/head to run pipelines like this even from a branch/pr

@idegtiarenko
Copy link
Contributor Author

Ah, makes sense, I was trying {fork}:{branch} instead

mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 3, 2025
joshua-adams-1 pushed a commit to joshua-adams-1/elasticsearch that referenced this pull request Jun 3, 2025
Samiul-TheSoccerFan pushed a commit to Samiul-TheSoccerFan/elasticsearch that referenced this pull request Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants