nchammas opened a new pull request, #60617:
URL: https://github.com/apache/spark/pull/60617

   ### What changes were proposed in this pull request?
   
   `dev/run-tests` now exits with an error when `--modules` contains a name 
that isn't a registered module. The error lists every unrecognized name.
   
   ### Why are the changes needed?
   
   Currently, unknown names are dropped silently, and a list with no valid 
names exits with a `0` without running any tests.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, not for end-users.
   
   For contributors: `dev/run-tests --modules <unknown>` now exits with status 
2 and an error such as:
   
   ```sh
   run-tests: error: argument -m/--modules: unrecognized module(s): 'typo'. 
Supported modules: ...
   ```
   
   Valid invocations are unchanged. Empty `--modules` values are also rejected.
   
   ### How was this patch tested?
   
   - Added unit tests for module-name resolution, including the unknown-name 
error. `python3 -m unittest discover -s dev/sparktestsupport/tests -t dev` 
passes.
   - Manually ran `dev/run-tests --modules core,typo-module` (exits 2) and 
`dev/run-tests --modules " , "` (exits 2).
   - Audited the `dev/run-tests` callers in `.github/workflows/`. Every module 
name they pass is registered, so CI behavior shouldn't change.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Cursor Grok 4.7
   


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