nchammas opened a new pull request, #60449: URL: https://github.com/apache/spark/pull/60449
### What changes were proposed in this pull request? Make `dev/lint-js` a shell script test goal of a new `lint-js` module in `sparktestsupport`, and run it in the CI lint job via `./dev/run-tests --modules lint-js`, so PR CI runs ESLint only when relevant files change. This builds on the shell script test goals added in #59250. ### Why are the changes needed? The JavaScript linter currently runs on every PR, even when no JavaScript changed. Running it only when its inputs change saves a few seconds in the lint job. More importantly, this establishes a pattern we will extend into the other linters in future PRs, allowing us to run only the linters that are needed for a given PR. Today, all linters are run unconditionally; fixing this will save us around 30 minutes on every single build. ### Does this PR introduce _any_ user-facing change? No. This affects developer and CI infrastructure only. Notable behavior changes for contributors: - A full local `./dev/run-tests` now also runs `dev/lint-js`, which needs npm. ### How was this patch tested? - New `sparktestsupport` tests check that lint inputs select `lint-js`, that other files (including JavaScript outside the lint directories) do not, and that `ui-test/` harness files stay ignored. - `python3 -m unittest discover -s dev/sparktestsupport/tests -t dev` passes. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: GitHub Copilot -- 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]
