-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Bump Kotlin, okhttp, okio, and java-telegram-bot-api libraries #16458
Conversation
Signed-off-by: Matthew Skinner <matt@pcmus.com>
out of curiosity: why do we have kotlin in our pom.xml? AFAIK Kotlin as a language itself not allowed to be used in OH. Are there libraries that we use and require kotlin? |
I am not the person to ask as I do not know enough about Java.... However I can point toward this info: The Telegram binding uses... Having looked at the code the past week, the Pengrad lib is very annoying to me when I have to keep referring to a json API for documentation reasons and then learn it all a second time in a java lib that is not documented fully. I believe it would be better to just get rid of it, and implement the Telegram API directly using Jetty and Gson libs. I may regret that statement, but I wont know until I try and do it directly. Anyone's thoughts on this? |
In the case of the Jellyfin add-on, it uses the official Jellyfin SDK which is developed in Kotlin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the Jellyfin and Watson add-ons, both seem to work correctly with the upgraded dependencies.
This PR will supersede #15903 and by that fix https://github.com/openhab/openhab-addons/security/dependabot/57. |
I believe it will also supersede #15902 |
@lsiepel You requested a review from me but I doubt I can give any valuable input here. 🤷🏻♂️ |
I do not use that bundle so I built it successfully with mvn clean install and then dropped it in the addons folder. I got an error in the logs that was stating I did not have it setup or have any strategies setup. |
Are you planning to tests this a bit further? I think this part needs some basic testing before it can be merged. Maybe someone else that uses influx? (personally i have never used it) |
I have a pi3 setup for testing, so I can do this sometime next week... hopefully. If someone has it already setup it would save me a lot of time. I agree this should be tested further then a basic compile. |
I could try the addon in my RPi4 environment with latest milestone release installed and influxdb running, if this would help. But as I'm only a semi-professional end-user, I sadly can't build the addon myself. |
Signed-off-by: Matthew Skinner <matt@pcmus.com>
OK after more then 6 hours of getting influxdb installed, working and then trying to work out the dependancies, I finally got it working with this log output showing its connecting and talking to the Database...
Release notes for v7.0.0 of the influxdb-client-java library that lists the dependencies it uses... @justauser0815 If your having issues or bad performance with influxdb, then it is worth trying it for sure. I am only saying the above as a disclaimer it should work just fine. http://pcmus.com/openhab/org.openhab.persistence.influxdb-4.2.0-SNAPSHOT.jar |
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Thank you very much! I will definitely give it a try. I have an extra raspberry for testing. Is your updated version of the telegram binding already available somewhere for testing? |
I put the telegram changes on hold till this gets merged. Its a single file I can drop back in once this is sorted to get the changes and then compile. |
@lsiepel I cancelled the build as it was already at 4 hours and did not look like it was progressing. Is it a problem with the build system as it is building fine here? |
Maybe @wborn has a clue as i think he is an expert on this matter. I also cancelled the build after 4:20. |
Signed-off-by: Matthew Skinner <matt@pcmus.com>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-2-milestone-discussion/154316/45 |
I think there is a problem with full PR builds for the time being. Jenkins builds time out after 4 hours and GitHub Actions builds after 6 hours. However, I just saw one full Jenkins build succeed today, so maybe there is hope: #16526. |
Signed-off-by: Matthew Skinner <matt@pcmus.com>
@jlaur Yes I dropped the |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-2-milestone-discussion/154316/60 |
Removing additional testing tag as I have tested and now a user has confirmed it also fixes an issue on their system in the thread that is linked just above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ab#16458) * update libs Signed-off-by: Matthew Skinner <matt@pcmus.com> Signed-off-by: Alexander Drent <Alex@Drent-ict.nl>
…ab#16458) * update libs Signed-off-by: Matthew Skinner <matt@pcmus.com> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
…ab#16458) * update libs Signed-off-by: Matthew Skinner <matt@pcmus.com>
…ab#16458) * update libs Signed-off-by: Matthew Skinner <matt@pcmus.com>
…ab#16458) * update libs Signed-off-by: Matthew Skinner <matt@pcmus.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Update various libraries to their latest versions, and also make it easier to keep multiple bindings in sync with the latest and same version. No need to use 3+ different versions of the same library.
Updating java-telegram-bot-api to tackle some of the Telegram bugs and feature requests.