vlsi opened a new pull request, #6863:
URL: https://github.com/apache/jmeter/pull/6863

   Backport of apache/jmeter#6846 to release/5.6.x. The task code is the same 
as on master; the expected module list is regenerated from the release/5.6.x 
dependencies.
   
   `verifyReleaseDependencies` compared exact jar file names and byte sizes 
with `expected_release_jars.csv`. Every dependency update changed both, so on 
`-SNAPSHOT` versions the task only logged the difference to keep Renovate pull 
requests green. A new transitive dependency or a jar that grew passed pull 
request CI and surfaced only in a release build.
   
   The expected file is now `src/dist/src/dist/expected_release_artifacts.txt`: 
`group:artifact[:classifier]` coordinates without versions, plus 
`total-size-limit` for the total size of the external jars. JMeter's own jars 
are left out of both, as before. A version update that keeps the module set and 
stays under the limit leaves the file as is, so the task fails on every 
version, `-SNAPSHOT` included. `-PupdateExpectedJars` rewrites the list and 
sets the limit to the current size plus 5 MiB, rounded up to a whole MiB, so 
the limit moves only when someone runs the update and commits the result. A 
Renovate pull request that brings in a new module, or pushes the release past 
the limit, now fails CI and needs a human to accept it.
   
   The total limit does not catch a single jar that grows by less than 5 MiB, 
for instance a library that starts shading a dependency. Catching that would 
need per-jar sizes in the file again, which would change on every update.
   
   ## User-visible changes
   
   - `check` fails when the release gains or loses an external module, or when 
the external jars exceed `total-size-limit`, on `-SNAPSHOT` versions too.
   - The failure message lists the added and removed modules, the size 
overflow, the ten largest jars, the `dependencyInsight` command that shows 
where a module comes from, and `./gradlew :src:dist:verifyReleaseDependencies 
-PupdateExpectedJars` to accept the change.
   - A module that resolves to two jars fails the task, since the version-less 
list would not notice the second jar.
   
   ## Verification
   
   Build scripts have no tests in this repository, so I checked it by hand with 
`-Prelease` on this branch. The task passes on the regenerated file, a second 
`-PupdateExpectedJars` run produces the same file, and with `xmlpull:xmlpull` 
removed from the file the task fails and lists it as added. `rat` passes. The 
regenerated list has 139 modules, the same count as the old CSV on 
release/5.6.x. The failure-message checks from apache/jmeter#6846 were not 
repeated here, since the task code is identical.
   
   🤖 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]

Reply via email to