Problem
The example performance-improver.yml workflow fails due to an Argument list too long error in the workflow job. The error occurs when building the jules_payload.json file using jq:
jq -n --arg jules_prompt "$(cat prompt.txt)" --arg starting_branch "main" --arg repo_full_name "b0x1/webcol" '{
"prompt": $jules_prompt,
"sourceContext": {
"source": "sources/github/\($repo_full_name)",
"githubRepoContext": {
"startingBranch": $starting_branch
}
},
"requirePlanApproval": false,
"automationMode": "AUTO_CREATE_PR"
}' > jules_payload.json
Error excerpt from run: See workflow failure
/home/runner/work/_temp/a5139c5e-55cc-446e-a46b-f80b5fe51c73.sh: line 1: /usr/bin/jq: Argument list too long
Error: Process completed with exit code 126.
Steps to Reproduce
- Use the example
performance-improver.yml workflow as shown in the documentation.
- Ensure that
prompt.txt is large enough to hit argument size limits.
- Observe the error during the job.
Additional Context
Expected Behavior
The workflow should succeed even when prompt.txt is large.
Actual Behavior
The jq command fails when prompt.txt content is large, due to shell argument limitations.
Suggestion
Consider reading prompt.txt inside the jq invocation using an alternative method (e.g. using --slurpfile or redirecting input), or splitting the input in a way that avoids exceeding shell argument limits.
Problem
The example
performance-improver.ymlworkflow fails due to anArgument list too longerror in the workflow job. The error occurs when building thejules_payload.jsonfile usingjq:Error excerpt from run: See workflow failure
Steps to Reproduce
performance-improver.ymlworkflow as shown in the documentation.prompt.txtis large enough to hit argument size limits.Additional Context
Expected Behavior
The workflow should succeed even when
prompt.txtis large.Actual Behavior
The
jqcommand fails whenprompt.txtcontent is large, due to shell argument limitations.Suggestion
Consider reading
prompt.txtinside thejqinvocation using an alternative method (e.g. using--slurpfileor redirecting input), or splitting the input in a way that avoids exceeding shell argument limits.