stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Version 1.2 #106

Closed coeing closed 2 years ago

coeing commented 3 years ago

There are already some important bugfixes (e.g. #66) and some features that would be great to bring to the public (including @MarkJonas ;) ). So I would suggest to open a new release branch, building a new release candidate and open a pull request to merge it into openHAB.

Initially I would have liked to wait for the main feature "Discovery" to be available, but we can easily publish it in the next release.

@GerdZanker @stefan-kaestle What's your opinion about it?

GerdZanker commented 3 years ago

Initially I would have liked to wait for the main feature "Discovery" to be available,

do not wait

we can easily publish it in the next release.

another pull request shouldn't take too long.

coeing commented 3 years ago

Alright, I merged the latest code from openHAB, created a release branch (releases/v1.2) and built a first release candidate (https://github.com/stefan-kaestle/openhab2-addons/releases/tag/v1.2-rc1).

Here is a list of issues that were fixed since 1.1:

It would especially be great to have some testers for the new things/devices we added. We developers only have a handful devices at home and can not test all scenarios ourselves.

@MarkJonas Hope that version works for you! If not, let us know. I am not sure if we might have to create a release candidate with the code from openHAB 3.1 instead if there were breaking changes in 3.2

coeing commented 3 years ago

The plan is to have two weeks of testing. Afterwards I will create a pull request in the official openHAB repository for our new release.

MarkJonas commented 3 years ago

The plan is to have two weeks of testing. Afterwards I will create a pull request in the official openHAB repository for our new release.

I installed the updated binding this morning and it was accepted by openHAB 3.1.0.

What I noticed though is that the settings/addons/binding bindings page shows 3.1.0 as the version of the binding.

image

But the bundle:list command shows 3.2.0:

264 │ Active │  80 │ 3.2.0.202107292001    │ org.openhab.binding.boschshc
MarkJonas commented 3 years ago

The v1.2-rc1 binding is working fine since I installed it 2.5 days ago. :+1: :smile:

coeing commented 3 years ago

As the new version seems to work fine so far (I tested #109, but could not reproduce the issue), I will open a pull request in the main openHAB repository now :)

coeing commented 3 years ago

Pull Request is still pending: https://github.com/openhab/openhab-addons/pull/11134

MarkJonas commented 3 years ago

Pull Request is still pending: openhab#11134

Is it maybe because the PR build check is failed and thus the PR is blocked?

image

When looking into the referenced build 5426 I see that the Bosch Smart Home Binding failed.

image

Looking at the build's console output reveals two warnings which most likely fail the build.

...
[WARNING] /home/jenkins/jenkins-agent1/workspace/PR-openHAB-Addons@3/bundles/org.openhab.binding.boschshc/src/main/java/org/openhab/binding/boschshc/internal/devices/bridge/BridgeHandler.java:[326,56] Potential null pointer access: this expression has a '@Nullable' type
...
[INFO] --- bnd-maven-plugin:5.3.0:bnd-process (default) @ org.openhab.binding.boschshc ---
[INFO] Individual report appended to summary report.
[WARNING] Code Analysis Tool has found: 
 0 error(s)! 
 2 warning(s) 
 0 info(s)
[WARNING] org.openhab.binding.boschindego.internal.BoschIndegoHandlerFactory.java:[35]
Classes/Interfaces/Enums should be annotated with @NonNullByDefault
[WARNING] org.openhab.binding.boschindego.internal.handler.BoschIndegoHandler.java:[52]
Classes/Interfaces/Enums should be annotated with @NonNullByDefault
...
coeing commented 3 years ago

@MarkJonas Thanks for the hint! The warnings are not from our binding though, so we can not fix them :) But I could try to merge the latest changes from the main openHAB branch into our release branch.

coeing commented 3 years ago

@MarkJonas It was an error during the static code analysis of our binding. Fixed it now, hopefully the build is successful now :)

coeing commented 3 years ago

Build was successful, now we have to wait for the openHAB maintainers: https://ci.openhab.org/job/PR-openHAB-Addons/5432/ 👍

coeing commented 2 years ago

Yay, it's merged! :) https://github.com/openhab/openhab-addons/pull/11134