Conversation
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
|
This failed on two bindings that I didn't touch, Network and Matter... @lsiepel Can you restart the build? (I'm asking you because I saw you just post on the forum) |
|
@david-pace I took the liberty of removing |
|
I found a flaky test in the network binding, so I addressed that (despite it not really being related to this PR). I'm just hoping that the Matter binding won't fail this time. edit: I used |
53ed05c to
a131085
Compare
|
I just love getting a spotless failure because spotless (which is based on the Eclipse formatter) doesn't agree with the order of imports that Eclipse made automatically after 38 minutes of building 😠 |
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
a131085 to
5cd44eb
Compare
You can probably use a pre-build hook to run spotless:apply |
I'm not sure how to do that, but this isn't really a big problem - just very annoying because it takes so long to fail. Normally, when I work on a single binding, I always run Edit: I'm hesitant to run |
|
I had it setup for a while to perform the spotless apply on a pre-commit hook that git provides. I know the frustration. |
Ah, you mean a Git hook. That's "too intrusive" for me, I don't like having spotless interfere with temporary commits, during rebasing etc. Resolving conflicts isn't that fun, so I only run it "when I'm done". |
|
Getting rid of the issue where it modifies files without modifying them would help a lot though. It doesn't always do it, but when it does, it can modify hundreds of files, and then I have to figure out which one or two were actually changed, and revert the rest 😒 |
|
Finally, success 🥳 |
...inding.network/src/test/java/org/openhab/binding/network/internal/PresenceDetectionTest.java
Show resolved
Hide resolved
lsiepel
left a comment
There was a problem hiding this comment.
Tahnk you for chasing these timing issues and imp[rove these test to be stable.
LGTM
|
Thanks for restoring the tests, @Nadahar 👍 |
|
@Nadahar the satel test is failing CI. Any thoughts on this? |
I'm pretty sure the reason is that I don't understand org.opentest4j.AssertionFailedError: expected: <24> but was: <17>It did pass when the tests were run for this PR, which means that the number of results must vary, which means that it must be another thread at play here. Any hints for how to make sure that |
|
If i remember correctly, @david-pace had similar problecmts with mock annotations. Maybe he knows |
This should restore all tests that were either disabled or "weakened" in #19230 and #19473.
I've used the
SameThreadExecutorServicemade available in openhab/openhab-core#5072 and openhab/openhab-core#5100, originally created by @david-pace, to remove the "delay" in discovery registration that was introduced by openhab/openhab-core#5032.