Repository navigation
[bazel] fix running google formatter with too many files - #17065
titusfortner merged 1 commit into
Conversation
Current formatting script fails on GitHub Actions with "too many arguments" error: ``` INFO: Running command line: bazel-bin/scripts/google-java-format --replace /home/runner/work/selenium/selenium/java/src/dev/selenium/tools/javadoc/JavadocJarMaker.java /home/runner/work/selenium/selenium/java/src/dev/selenium/tools/modules/ModuleGenerator.java ... ... /home/runner/work/selenium/selenium/java/test/org/openqa/selenium/testing/drivers/TestInternetExplorerSupplier.java /home/runner/work/selenium/selenium/java/test/org/openqa/selenium/testing/drivers/WebDriverBuilder.java /home/runner/work/selenium/selenium/java/test/org/openqa/selenium/virtualauthenticator/VirtualAuthenticatorTest.java FATAL: execv of '/bin/bash' failed: (error: 7): Argument list too long ``` See for example https://github.com/SeleniumHQ/selenium/actions/runs/21830997104/job/62992987104?pr=17064
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
titusfortner
left a comment
There was a problem hiding this comment.
Thank you! Was trying to figure out how to make this work without outputting everything to console.
Current formatting script fails on GitHub Actions with "too many arguments" error:
🔗 Related Issues
See for example
https://github.com/SeleniumHQ/selenium/actions/runs/21830997104/job/62992987104?pr=17064
💥 What does this PR do?
Passes files list via argfile, not as an array of arguments.
🔧 Implementation Notes
Before:
After:
🔄 Types of changes