jiangzho opened a new pull request, #479:
URL: https://github.com/apache/spark-kubernetes-operator/pull/479

   ### What changes were proposed in this pull request?
   
   This PR fixes the "Argument list too long" error in the 
`assertGeneratedCRDMatchesHelmChart` Gradle task that occurs occasionally when 
comparing generated CRDs with staged versions.
   
   ### Why are the changes needed?
   
   The previous implementation embedded entire CRD YAML content (potentially 
hundreds of KB) directly into bash command arguments using `echo 
'${generatedAppCRD}'`. This may exceeded the OS argument length limit in some 
environments, causing the build to fail with:
   
   ```
   java.io.IOException: Cannot run program "bash": Exec failed, error: 7 
(Argument list too long)
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This is an internal build task fix that doesn't affect runtime behavior 
or user-facing features.
   
   ### How was this patch tested?
   
   The fix was tested by:
   
   1. Verifying the task still correctly detects CRD differences when the diff 
is large
   2. Confirming temp files are properly created and cleaned up
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to