apupier opened a new pull request, #31325:
URL: https://github.com/apache/camel/pull/31325

   ## Description
   
   `VersionHelperTest` in `camel-jbang-run` fails on `main` since the bump to 
`4.25.0-SNAPSHOT`:
   
   ```
   org.opentest4j.AssertionFailedError:
   expected: 1
    but was: -1
        at 
org.apache.camel.dsl.jbang.run.common.VersionHelperTest.compare(VersionHelperTest.java:54)
   ```
   
   ### What broke it
   
   - 97fb816f8cba ("Bump for next release"): the replacement of 
`4.24.0-SNAPSHOT` by `4.25.0-SNAPSHOT` also rewrote the
     "a snapshot comes before its release" fixtures of `VersionHelperTest`. 
`4.24.0` compared with `4.25.0-SNAPSHOT` is
     `-1`, not `1`.
   - 17758742c57d ("ci: fix tests broken by the bump to 4.25.0-SNAPSHOT ..."): 
restored those fixtures (and the ones of
     `ManifestFetcherTest`, `SelfUpdateCommandTest`, `MavenDownloaderImplTest`, 
...).
   - 44392c795143 ("Bump for next release"): ran the same replacement again and 
reverted that part of the fix for
     `VersionHelperTest` and for the Javadoc of `AdvisoryVersions`.
   
   ### Fix
   
   Restore the `4.24.0-SNAPSHOT` fixtures of `VersionHelperTest` and the 
Javadoc of `AdvisoryVersions` as in
   17758742c57d. `AdvisoryVersions.compare` itself is correct, only the test 
data was wrong.
   
   I also went through the other test files touched by 97fb816f8cba: the 
remaining `4.25.0-SNAPSHOT` there are plain
   version strings (not ordering cases against the release) and their tests 
pass: `camel-jbang-core`, `camel-jbang-mcp`,
   `camel-jbang-plugin-tui`, `camel-launcher`, `camel-kamelet-main`, 
`camel-tooling-maven`, `camel-tooling-model`.
   
   No JIRA ticket: CI/test fixture fix only.
   
   ## Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   ## Tracking
   
   - [ ] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   ---
   
   _Claude Code-style note: this PR was prepared by IBM Bob on behalf of 
@apupier._
   


-- 
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