Skip to content

Update maven-verifier to 2.x#1842

Open
laeubi wants to merge 2 commits intoeclipse-tycho:mainfrom
laeubi:update_verifier
Open

Update maven-verifier to 2.x#1842
laeubi wants to merge 2 commits intoeclipse-tycho:mainfrom
laeubi:update_verifier

Conversation

@laeubi
Copy link
Member

@laeubi laeubi commented Dec 8, 2022

No description provided.

@laeubi laeubi mentioned this pull request Dec 8, 2022
@github-actions
Copy link

github-actions bot commented Dec 8, 2022

Test Results

1 041 files  ±0  1 041 suites  ±0   5h 0m 9s ⏱️ - 16m 8s
1 378 tests ±0  1 352 ✅  -  5  21 💤 ±0  2 ❌ +2  3 🔥 +3 
4 134 runs  ±0  4 053 ✅  - 15  66 💤 ±0  6 ❌ +6  9 🔥 +9 

For more details on these failures and errors, see this check.

Results for commit 28daf51. ± Comparison against base commit 91ff807.

♻️ This comment has been updated with latest results.

@laeubi
Copy link
Member Author

laeubi commented Dec 8, 2022

I got the verifier update successful now with only a few exceptions, so if anyone like to help with this it would be welcome, at the moment I have no idea what can cause this maybe something with passing the arguments.

@laeubi laeubi force-pushed the update_verifier branch 3 times, most recently from 23cadcd to a808807 Compare December 14, 2022 06:37
@laeubi
Copy link
Member Author

laeubi commented Dec 14, 2022

@akurtakov maybe something you can help with as well after M1?

I got most things fixed now but there are 5 failing test left after the upgrade to Maven Verifier 2.x I just don't understand what might cause this change in behavior .. but probably we just see a bug here that was not discovered previously?

The most notable changes for Verifier 2.x is that method names changed and arguments are no longer parsed and passed "as is" but I can't see why it should make a difference here, still a second pair of eyes might reveal something.

Next thing is that Verifier 2 executes in the same process by default instead of forking, I have disabled that so we always fork because some test don't work well with it, so it should not be an issue here.

@akurtakov
Copy link
Member

I have the will but no promises :)

@laeubi laeubi force-pushed the update_verifier branch 2 times, most recently from 78702e6 to bc68ade Compare January 29, 2023 06:53
@laeubi
Copy link
Member Author

laeubi commented Jan 29, 2023

Rebased...

@laeubi
Copy link
Member Author

laeubi commented May 18, 2023

Maybe one should first finish this one as a smaller increment:

@akurtakov
Copy link
Member

@dependabot rebase

@laeubi
Copy link
Member Author

laeubi commented Sep 23, 2023

@dependabot rebase

This is not a dependabot PR ;-)

I can try to rebase this and resolve conflicts but last time there where still some testfailures du to the upgrade so someone must be look into this if we want to upgrade.

@akurtakov
Copy link
Member

I would probably not find time to look into it as it's just M1 but I'll try to handle some of the deprecations done in this PR separately so it becomes less of a churn.

@laeubi laeubi added this to the 5.0 milestone Jan 17, 2024
@laeubi laeubi modified the milestones: 5.0, 6.0 Mar 19, 2025
Migrate from maven-verifier 1.8.0 to 2.0.0-M1:
- Update package imports from org.apache.maven.it to org.apache.maven.shared.verifier
- Rename addCliOption() to addCliArgument()
- Split compound arguments (-s, --toolchains) into addCliArguments()
- Split customOptions string into array for addCliArguments()
- Rename assertArtifactContents() to verifyArtifactContent()
Maven Verifier 2.x no longer parses compound CLI arguments. Split all
addCliArgument("option value") calls into addCliArguments("option", "value")
in AbstractTychoIntegrationTest, MavenReactorMakeOptionsTest, and
TychoVersionsPluginTest.
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.

3 participants