Skip to content

Use build/mvn wrapper in velox_backend_x86 workflow#11332

Merged
yaooqinn merged 11 commits intoapache:mainfrom
yaooqinn:mvn2
Jan 5, 2026
Merged

Use build/mvn wrapper in velox_backend_x86 workflow#11332
yaooqinn merged 11 commits intoapache:mainfrom
yaooqinn:mvn2

Conversation

@yaooqinn
Copy link
Member

What changes are proposed in this pull request?

This PR updates the .github/workflows/velox_backend_x86.yml workflow to use the build/mvn wrapper script instead of directly calling mvn.

Changes:

  • Updated MVN_CMD environment variable from mvn -ntp to build/mvn -ntp
  • Removed Maven installation steps from various jobs (ubuntu, centos8, centos7 test jobs)
  • Removed the SETUP environment variable and related helper script calls
  • Added build/mvn to the workflow trigger paths to ensure workflow runs when the wrapper is modified
  • Cleaned up Java setup steps by removing Maven installation dependencies

Benefits:

  • Ensures consistent Maven version across all CI jobs
  • Simplifies job setup by eliminating manual Maven installation
  • Aligns with the project's adoption of the Maven wrapper (introduced in commit a35a3bd)
  • Reduces maintenance overhead for CI configuration

How was this patch tested?

  • The workflow changes follow the same pattern used in other workflows that already use build/mvn
  • The Maven wrapper script (build/mvn) handles Maven installation automatically
  • CI jobs will validate the changes when this PR is opened

@github-actions github-actions bot added the INFRA label Dec 25, 2025
@yaooqinn yaooqinn marked this pull request as draft December 25, 2025 10:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the velox_backend_x86 workflow to use the Maven wrapper (build/mvn) instead of directly calling mvn, ensuring consistent Maven versions across all CI jobs. The PR also simplifies the Maven download mechanism in the wrapper script itself.

Key changes:

  • Updated MVN_CMD environment variable from mvn -ntp to build/mvn -ntp
  • Removed Maven installation steps from Ubuntu and CentOS jobs
  • Simplified Maven download to use Maven Central directly instead of Apache mirror service with fallback

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
build/mvn Simplified Maven download by using Maven Central directly instead of Apache closer.lua with archive.apache.org fallback
.github/workflows/velox_backend_x86.yml Updated workflow to use build/mvn wrapper, removed Maven installation steps, and added build/mvn to workflow trigger paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yaooqinn yaooqinn marked this pull request as ready for review December 31, 2025 02:18
@yaooqinn
Copy link
Member Author

@PHILO-HE Can you take a look when you have some time?

Copy link
Member

@zhztheplayer zhztheplayer left a comment

Choose a reason for hiding this comment

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

Thanks.

@yaooqinn yaooqinn merged commit b8feed9 into apache:main Jan 5, 2026
51 checks passed
@yaooqinn yaooqinn deleted the mvn2 branch January 5, 2026 12:06
@yaooqinn
Copy link
Member Author

yaooqinn commented Jan 5, 2026

Thank you @zhztheplayer for the review

Angryrou pushed a commit to Angryrou/incubator-gluten that referenced this pull request Jan 5, 2026
* Use build/mvn wrapper in velox_backend_x86 workflow

* Install wget in ubuntu jobs for Maven wrapper compatibility

* Use absolute path for build/mvn in Docker container

* Build gluten-it from project root using -pl option

* Build gluten-it from root in celeborn test job

* Build gluten-it from root in tpc-test-ubuntu job

* Revert to separate gluten-it builds - not in main reactor

* Use absolute path for MVN_CMD in gluten-it builds

* use repo.mvn

* cd
QCLyu pushed a commit to QCLyu/incubator-gluten that referenced this pull request Jan 8, 2026
* Use build/mvn wrapper in velox_backend_x86 workflow

* Install wget in ubuntu jobs for Maven wrapper compatibility

* Use absolute path for build/mvn in Docker container

* Build gluten-it from project root using -pl option

* Build gluten-it from root in celeborn test job

* Build gluten-it from root in tpc-test-ubuntu job

* Revert to separate gluten-it builds - not in main reactor

* Use absolute path for MVN_CMD in gluten-it builds

* use repo.mvn

* cd
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.

3 participants