Skip to content

GH-1283: Optimize number of build compilations in CI - #1284

Open
xborder wants to merge 14 commits into
apache:mainfrom
xborder:ci-build-once-test-many
Open

GH-1283: Optimize number of build compilations in CI#1284
xborder wants to merge 14 commits into
apache:mainfrom
xborder:ci-build-once-test-many

Conversation

@xborder

@xborder xborder commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What's Changed

  • Build Java artifacts once with JDK 17 and reuse them across the test matrix.
  • Build C Data JNI artifacts once and reuse them across JDK 17, 21, and 25.
  • Distribute compiled classes and Maven artifacts through GitHub Actions artifacts.
  • Run prebuilt tests directly with Surefire to avoid recompilation.
  • Preserve Vector allocator and memory-core custom test executions.
  • Add checks to ensure test classes are restored and no unexpected compilation occurs.
  • Keep pure-Java tests running on Ubuntu, macOS Intel, macOS ARM, and Windows.
  • Reduce duplicate compilation while retaining the existing platform and JDK test coverage.
  • Ran a few tests, managed to reduce the total runner time by ~50%

Closes #1283.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

@xborder
xborder marked this pull request as ready for review September 5, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Build Java and C Data artifacts once

1 participant