Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Karaf 4.4.5 #16493

Merged
merged 4 commits into from Mar 17, 2024
Merged

Upgrade to Karaf 4.4.5 #16493

merged 4 commits into from Mar 17, 2024

Conversation

holgerfriedrich
Copy link
Member

For release notes, see:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353604&projectId=12311140

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich holgerfriedrich added work in progress A PR that is not yet ready to be merged awaiting other PR Depends on another PR labels Mar 6, 2024
@holgerfriedrich holgerfriedrich removed the work in progress A PR that is not yet ready to be merged label Mar 9, 2024
@holgerfriedrich holgerfriedrich changed the title [WIP] Upgrade to Karaf 4.4.5 Upgrade to Karaf 4.4.5 Mar 9, 2024
@holgerfriedrich holgerfriedrich added the rebuild Triggers Jenkins PR build label Mar 17, 2024
@holgerfriedrich
Copy link
Member Author

@wborn need some time to reorder the runbundles....

@wborn
Copy link
Member

wborn commented Mar 17, 2024

need some time to reorder the runbundles

For the itests it doesn't really matter what the bundle order is.

@holgerfriedrich holgerfriedrich removed awaiting other PR Depends on another PR rebuild Triggers Jenkins PR build labels Mar 17, 2024
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
pom.xml Outdated Show resolved Hide resolved
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@wborn
Copy link
Member

wborn commented Mar 17, 2024

Does a local build succeed for you @holgerfriedrich? It does not for me as dynamodb fails:

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! -- in org.openhab.persistence.dynamodb.internal.TestStoreMixedTypesLegacyTest
[ERROR] org.openhab.persistence.dynamodb.internal.TestStoreMixedTypesLegacyTest -- Time elapsed: 0.001 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jetty.server.handler.ResourceHandler$1
	at org.eclipse.jetty.server.handler.ResourceHandler.<init>(ResourceHandler.java:75)
	at com.amazonaws.services.dynamodbv2.local.server.DynamoDBProxyServer.setUpShell(DynamoDBProxyServer.java:58)
	at com.amazonaws.services.dynamodbv2.local.server.DynamoDBProxyServer.<init>(DynamoDBProxyServer.java:41)
	at com.amazonaws.services.dynamodbv2.local.main.ServerRunner.createServer(ServerRunner.java:127)
	at com.amazonaws.services.dynamodbv2.local.main.ServerRunner.createServerFromCommandLineArgs(ServerRunner.java:120)
	at org.openhab.persistence.dynamodb.internal.BaseIntegrationTest.newService(BaseIntegrationTest.java:199)
	at org.openhab.persistence.dynamodb.internal.BaseIntegrationTest.initService(BaseIntegrationTest.java:163)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: org/eclipse/jetty/http/compression/HuffmanEncoder [in thread "main"]
	at org.eclipse.jetty.http2.hpack.HpackContext$StaticEntry.<init>(HpackContext.java:469)
	at org.eclipse.jetty.http2.hpack.HpackContext.<clinit>(HpackContext.java:144)
	at org.eclipse.jetty.http2.hpack.HpackFieldPreEncoder.getEncodedField(HpackFieldPreEncoder.java:75)
	at org.eclipse.jetty.http.PreEncodedHttpField.<init>(PreEncodedHttpField.java:103)
	at org.eclipse.jetty.http.PreEncodedHttpField.<init>(PreEncodedHttpField.java:108)
	at org.eclipse.jetty.http2.hpack.HpackEncoder.<clinit>(HpackEncoder.java:83)
	at org.eclipse.jetty.http2.hpack.HpackFieldPreEncoder.getEncodedField(HpackFieldPreEncoder.java:45)
	at org.eclipse.jetty.http.PreEncodedHttpField.<init>(PreEncodedHttpField.java:103)
	at org.eclipse.jetty.http.PreEncodedHttpField.<init>(PreEncodedHttpField.java:108)
	at org.eclipse.jetty.server.ResourceService.<clinit>(ResourceService.java:70)
	... 9 more

@holgerfriedrich
Copy link
Member Author

holgerfriedrich commented Mar 17, 2024

@wborn I thought yes, but obviously I must have skipped the tests :-(
Sorry for that.
I just had to fix jetty version in http binding test, same error here. Not sure how to fix here.... The HuffmannEncoder class was moved around in Jetty....

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/failed-to-execute-goal-org-apache-karaf-tooling4-4-4-verify/154678/4

holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Mar 17, 2024
Tests are disabled due to compatibility issue of dymbdblocal and jetty upgrade openhab#16493.
To be resolved in subsequent commit.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich
Copy link
Member Author

holgerfriedrich commented Mar 17, 2024

@wborn It looks like dynamodb tests are the only remaining issue (mercedesme and hueemulation seem to fail due to restrictive firewall on my build server, I don't see a real problem here).
We have a transitive dependency to jetty 9.4.18, newer packages from 2.x use jetty 11 or 12. Core was not upgraded to 9.4.53.
https://mvnrepository.com/artifact/com.amazonaws/DynamoDBLocal
Jetty team has changed the HuffmanEncoder files.

Do you have any recommendation how to resolve the problem?

  • Include the old jetty packages for test
  • Try to upgrade to 2.x (needs some changes of dependencies, there is an update script in scripts/fetch_sdk.sh, not sure how to use it)

I have disabled the tests for dynamodb for now, possibly we should merge this way. Currently the add-on build is broken.

Tests are disabled due to compatibility issue of DynamoDBLocal and Jetty upgrade openhab#16493.
To be resolved in subsequent commit.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@wborn wborn merged commit 3d65b30 into openhab:main Mar 17, 2024
1 of 3 checks passed
@wborn wborn added this to the 4.2 milestone Mar 17, 2024
@wborn
Copy link
Member

wborn commented Mar 17, 2024

I have disabled the tests for dynamodb for now

If it is just tests maybe adding the old depenencies with scope test works. Perhaps @ssalonen can also check if dynamodb still works with the newer Jetty version?

HolgerHees pushed a commit to HolgerHees/openhab-addons that referenced this pull request Mar 17, 2024
For release notes, see:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353604&projectId=12311140

* [dynamodb] Disable tests

Tests are disabled due to compatibility issue of DynamoDBLocal and Jetty upgrade openhab#16493.
To be resolved in subsequent commit.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich
Copy link
Member Author

Created follow-up issue to re-enable tests for DynamoDB, #16535.

@holgerfriedrich holgerfriedrich deleted the k445 branch March 17, 2024 21:10
holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Mar 21, 2024
Add missing dependencies after Karaf update openhab#16493.

Fixes openhab#16535.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Mar 21, 2024
Add missing dependencies after Karaf upgrade openhab#16493.

Fixes openhab#16535.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Mar 21, 2024
Add missing dependencies after Karaf upgrade openhab#16493.

Fixes openhab#16535.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
magx2 pushed a commit to magx2/openhab2-addons that referenced this pull request Mar 24, 2024
For release notes, see:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353604&projectId=12311140

* [dynamodb] Disable tests

Tests are disabled due to compatibility issue of DynamoDBLocal and Jetty upgrade openhab#16493.
To be resolved in subsequent commit.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
lolodomo pushed a commit that referenced this pull request Mar 29, 2024
Add missing dependencies after Karaf upgrade #16493.

Fixes #16535.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
lo92fr pushed a commit to lo92fr/openhab-addons that referenced this pull request Apr 30, 2024
Add missing dependencies after Karaf upgrade openhab#16493.

Fixes openhab#16535.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
adr001db pushed a commit to adr001db/openhab-addons that referenced this pull request May 12, 2024
Add missing dependencies after Karaf upgrade openhab#16493.

Fixes openhab#16535.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Alexander Drent <Alex@Drent-ict.nl>
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.

None yet

3 participants