Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[SPARK-62672][BUILD] Explicitly assign build files to the build module - #61182

Open
nchammas wants to merge 3 commits into
apache:masterfrom
nchammas:build-patterns
Open

nchammas wants to merge 3 commits into
apache:masterfrom
nchammas:build-patterns

Conversation

@nchammas

@nchammas nchammas commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

I widened the build module's source_file_regexes in dev/sparktestsupport/modules.py to cover build/, dev/deps/, project/, .mvn/, and .sbtopts, and anchored the existing pom.xml and dev/test-dependencies.sh regexes with $.

Why are the changes needed?

Currently, files like project/SparkBuild.scala don't match any module and only run everything by falling back to root. Claiming them in build makes that ownership explicit without changing which tests run, since root already depends on build.

The old .*pom.xml regex also wasn't anchored.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

I added test_build_module_selection in dev/sparktestsupport/tests/test_utils.py to check that one file per pattern selects modules.build, and ran cd dev && python3 -m unittest sparktestsupport.tests.test_utils.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Cursor

@nchammas
nchammas requested review from holdenk and huaxingao December 4, 2026 16:48
@github-actions github-actions Bot added the BUILD label Dec 4, 2026

@huaxingao huaxingao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Pending CI.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants