Skip to content

[MINOR] Key the CI build cache on the project version - #1038

Merged
the-other-tim-brown merged 1 commit into
apache:mainfrom
the-other-tim-brown:ci/build-cache-version-key
Nov 24, 2026
Merged

the-other-tim-brown merged 1 commit into
apache:mainfrom
the-other-tim-brown:ci/build-cache-version-key

Conversation

@the-other-tim-brown

Copy link
Copy Markdown
Contributor

What is the purpose of the pull request

Since the move to 0.6.0-SNAPSHOT (#1005), any PR that rebuilds xtable-service fails the Maven CI Build:

Quarkus code generation phase has failed: Failed to bootstrap application in TEST mode: Failed to resolve dependencies for org.apache.xtable:xtable-service:jar:0.6.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.xtable:xtable-api:jar:0.6.0-SNAPSHOT (absent), org.apache.xtable:xtable-hudi-support-utils:jar:0.6.0-SNAPSHOT (absent)

This happens because the build cache extension leaves the project version out of a module's checksum. After the bump, xtable-api and xtable-hudi-support-utils still match their pre-bump checksums (a290d2b… and c00ef9d…). The cache restores them as xtable-api-0.5.0-SNAPSHOT.jar and xtable-hudi-support-utils-0.5.0-SNAPSHOT.jar, so no 0.6.0 jar of either module reaches the local repository. Most modules take these jars from the reactor, which still works. Quarkus's generate-code-tests in xtable-service resolves them from the local repository instead, so it fails.

main is still green only because xtable-core and xtable-service are cache hits there too, which skips generate-code-tests. #1031 and #1032 change xtable-core and both fail this way.

Brief change log

  • Read the project version in a new step and put it in the build cache's key and restore-keys prefix. A version bump then starts from an empty build cache, and jars named for the old version can't be restored. The cost is one cold build on main per version bump.

Verify this pull request

This change only touches the CI workflow. This PR's own Maven CI Build has no build cache entry for the new key yet, so it does a cold build, including xtable-service's Quarkus code generation.

🤖 Generated with Claude Code

The build cache extension does not hash the project version, so after the
move to 0.6.0-SNAPSHOT it restored xtable-api and xtable-hudi-support-utils
as 0.5.0-SNAPSHOT jars. Nothing installed the 0.6.0 jars, and Quarkus in
xtable-service failed to resolve them whenever it was rebuilt.
@the-other-tim-brown
the-other-tim-brown merged commit 37a69d9 into apache:main Nov 24, 2026
7 checks passed
@the-other-tim-brown
the-other-tim-brown deleted the ci/build-cache-version-key branch November 24, 2026 18:13
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.

2 participants