-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Test Kamada-Kawai layout generator does not work on i386 #653
Comments
First, some general comments (not a direct response to Andreas). The KK layout appears to be inherently unstable, i.e. extremely sensitive to numerical roundoff errors. This is not necessarily a problem in practical usage, as it's just a layout method. The output is not meant for analysis, only for visualization. Here's the failing test line for 1.3.5: https://github.com/igraph/rigraph/blob/1.3.5/tests/testthat/test_layout.kk.R#L52 Notice that the test is much too greedy. It will only pass if the layout produces precisely the expected coordinates. But since the output differs between platforms, the test has special cases for all of them. IMO the test should be less stringent. It should only verify properties that are consistent between platforms, something like the @tillea, the relevant info for you is:
EDIT: I think I found your report, @tillea AdamSpannbauer/lexRankr#22 |
I confirm I understood that there is nothing wrong here in principle and I was tempted to exclude that specific test fir i386 from Debian CI. We have other examples in the Debian BTS where
+1
ACK
Thanks for the information. So I'll leave the issue untouched for the moment. Please note: Debian will freeze really soon for the next stable release. Please let me know if you plan this next release in this week (which is fine) or later (than I would rather skip the test inside the package to meet the freeze date).
lexRankr upstream did not respond to that issue. If you might be reprocude it to see what might have cause the issue that would be great. Unfortunately I personally do not understand what's going on. I simply realised that the order of the sorted list has changed - no idea how to hunt this down to a rounding error. Kind regards and thanks for you quick response, Andreas. |
@tillea I commented on the lexRankr issue you opened. It seems to me that the test that is used there is flawed. I suggest not compiling R/igraph with If you remove the |
I want to leave fixing this test to someone who's actually fluent in R (@krlmlr ?), but here are some pointers, which I hope make the job faster: For the 3rd graph, test that all vertices are at about the same distance from the centre, defined as the average of all their coordinates. Test that this distance is reasonable (check its value up to tolerance). I'm pretty sure that For the star graph I suggest testing a smaller star graph, e.g. with 12 vertices, and checking that the graph centre is at the centre, and the rest are on a circle (i.e. same distance from the centre). |
I'd say next week or the week after; this is simply because we need to jump through quite a few hoops (reverse dependency checks etc) to get the next release into CRAN, and it's unlikely that we can do that before the end of this week. Ultimately I'd like to ask @krlmlr what he thinks is feasible. |
Given that the
ACK. |
Thanks for this information. So I will try to prevent any pressure and exclude the test for the moment. If the release of the new version might come right in time I'll include it into stable. |
Bottom line: the test is fragile, we want a better way to test it, as outlined in #653 (comment). |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
Describe the bug
As you can see in the CI test of the Debian package for i386 architecture it fails with
To reproduce
Just check the full CI log
Please note that this package is build with -ffloat-store in i386 since otherwise some error in lexRankr was occuring.
Version information
Kind regards, Andreas.
The text was updated successfully, but these errors were encountered: