You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "MartijnVisser (via GitHub)" <gi...@apache.org> on 2026/09/17 15:52:51 UTC

[PR] [FLINK-40687][build] Relocate the packages the model uber jars actually bundle [flink]

MartijnVisser opened a new pull request, #29227:
URL: https://github.com/apache/flink/pull/29227

   ## What is the purpose of the change
   
   The shade relocations in both flink-model poms name Maven groupIds, `com.squareup` and
   `org.apache.httpcomponents`, not Java packages. They never match, so jackson is the only thing
   relocated and both jars publish the rest in the default namespace: 1405 unrelocated classes in
   flink-model-triton, 13250 in flink-model-openai.
   
   ## Brief change log
   
     - Relocations name the real packages, with a trailing dot, since shade matches a pattern as a
       bare prefix against string constants too
     - No `org.apache.hc`: openai-java 4.63.1 no longer pulls httpclient5. `io.swagger`,
       `com.github.victools` and `com.fasterxml:classmate` are added, because it now pulls those
     - The target gains a `shaded` segment, which is what stops ArchUnit importing relocated
       classes as production code. It imports 1336 of them today
     - `com.openai` and `kotlin` stay unrelocated in flink-model-openai; the pom records why
     - flink-model-triton pins Kotlin to 1.9.10, the version okio-jvm 3.6.0 is built against, and
       no longer bundles empty or metadata-only Kotlin artifacts
     - `check_shaded_artifacts_model` fails the build on any unrelocated dependency
   
   ## Verifying this change
   
   Nothing in the build inspected these jars. The new check is red on both modules before this
   change and green after.
   
   The relocation set was measured by running each module's tests against the shaded jar instead of
   `target/classes`. flink-model-openai is 22/22 on master and as proposed, but 10/22 with
   `com.openai` relocated, and relocating `kotlin` breaks kotlin-reflect once no other
   kotlin-stdlib is on the classpath. flink-model-triton bundles no kotlin-reflect and relocates
   Kotlin safely.
   
   Both NOTICE files now match the shade log exactly. Aggregate javadoc, flink-docs and
   flink-architecture-tests-production were run as well.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no, but four artifacts that contribute
       no classes are no longer bundled and flink-model-triton's Kotlin is pinned to 1.9.10
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no. Relocated
       types do appear in public signatures of the shaded jars, as jackson already does
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Claude Opus 5)
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40687][build] Relocate the packages the model uber jars actually bundle [flink]

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #29227:
URL: https://github.com/apache/flink/pull/29227#issuecomment-5717474794

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "679a478b673a60b09ffe3255df3fb68fa9b3facd",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "679a478b673a60b09ffe3255df3fb68fa9b3facd",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 679a478b673a60b09ffe3255df3fb68fa9b3facd UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40687][build] Relocate the packages the model uber jars actually bundle [flink]

Posted by "snuyanzin (via GitHub)" <gi...@apache.org>.
snuyanzin commented on code in PR #29227:
URL: https://github.com/apache/flink/pull/29227#discussion_r4056658390


##########
flink-models/flink-model-triton/pom.xml:
##########
@@ -34,9 +34,32 @@ under the License.
 
 	<properties>
 		<okhttp.version>4.12.0</okhttp.version>
+		<!-- okhttp 4.12.0 asks for 1.8.21 but okio-jvm 3.6.0, which it pulls in, is built
+		     against 1.9.10. Pin both to 1.9.10 so one Kotlin runtime is bundled. -->

Review Comment:
   can we avoid sticking to versions in comments, we already have versions in properties which should be enough.
   Versions in comments are often becoming stale



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org