-
Notifications
You must be signed in to change notification settings - Fork 12
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
Dependency updates #274
Dependency updates #274
Conversation
Hack around some downstream effects: - change in API for formatService.getFormat - Tests fail due to malformed calls These commented-out tests may need reworking in the future. Remove explicit versions of things included/referred to in scijava >= 29
These seem to be breaking due to API changes in scijava 29
Use whatever version is being declared upstream by scijava
Sometimes these tests pass and sometimes they fail, but no-one knows why the result is variable.
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.
I am worried about commenting out tests.
I assume the reasoning behind this is that they have stopped passing? just seen the commit message.
I will try and figure out what the problem is this week.
Me too. These tests seem like obscure corner cases rather than main function (e.g. if file is not an image), so I'm not too worried.
OK but balance the cost of your time against the risk that these tests are meant to be averting. The Fractal Dimension one is a known unknown - a kind of Heisentest. Sometimes passes, sometimes doesn't. The Analyse Skeleton one seems obscure, like a file format test which should be handled way upstream from the wrapper plugin, and could possibly be discarded for this reason. It's not obvious to me what it's actually testing, and whether what it is testing is relevant to this level of plugin. Same for the empty image is not binary test, because it's impossible to generate an image with 0 pixels as far as I can tell.
|
Starting on the
Is this what you are seeing too, @mdoube ? |
Yes exactly. Test passes when run directly in Eclipse, but throws this to the console:
@imagejan wrote on Gitter: this is a known issue, and while it displays as an error (as the plugin can’t be created), it doesn’t affect your tests. The cause is a missing Uncommented in 47c91f9 |
Which suggests to me that this condition (an image with zero size) is now checked for and prevented earlier in execution. |
It's not clear to me what error condition the test is actually checking for (and for that reason is a candidate for deletion):
Additionally, this test class (but not this particular test method) complains many times, which appears to be the same problem as scifio/scifio#443 (comment):
|
Zero dimension images are prevented from being created upstream, so this test has no effect.
An error was being thrown that does not affect the test run or its outcome. See scifio/scifio#443
I think that The underlying cause of this not passing anymore is the I hope to dig deeper tomorrow. |
Right, so the Adding
Is logged like this by the test:
|
Exactly. This set of changes to the DefaultFormatService is the key. This is probably my lack of understanding what an empty |
I suggest we remove the negative test from AnalyzeSkeletonWrapper for now, and I've opened an issue so we don't forget to reinstate it once we figure out how to do it. See #275. At least this way, we don't get held up. |
* Update Eclipse Collections to 10.4.0 * Update scijava to 29.2.1 Hack around some downstream effects: - change in API for formatService.getFormat - Tests fail due to malformed calls These commented-out tests may need reworking in the future. Remove explicit versions of things included/referred to in scijava >= 29 * Remove com.miglayout from and LocalThickness version from pom.xml * Comment out some failing tests for later investigation These seem to be breaking due to API changes in scijava 29 * Remove the Eclipse Collections version declaration Use whatever version is being declared upstream by scijava * Reinstate fractal dimension wrapper tests. See issue #229 Sometimes these tests pass and sometimes they fail, but no-one knows why the result is variable. * Remove test that checks for an image with a single zero dimension Zero dimension images are prevented from being created upstream, so this test has no effect. * Restore commented-out test An error was being thrown that does not affect the test run or its outcome. See scifio/scifio#443 * remove this test for now Co-authored-by: alessandrofelder <[email protected]>
Update pom.xml to use scijava 29.2.1 and handle downstream effects of that change.