the-other-tim-brown opened a new pull request, #1038: URL: https://github.com/apache/incubator-xtable/pull/1038
## 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](https://claude.com/claude-code) -- 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]
