[MDEV-20532] Tests fail massively in buildbot on rhel8-ppc64le with floating point differences Created: 2019-09-08 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data types, Tests |
| Affects Version/s: | 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-rhel8-ppc64le/builds/120/steps/mtr/logs/stdio
main.sp w2 [ fail ] CURRENT_TEST: main.sp mysqltest: Result content mismatch
main.type_float w2 [ fail ] CURRENT_TEST: main.type_float mysqltest: Result length mismatch
|
| Comments |
| Comment by Elena Stepanova [ 2019-09-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-rhel8-ppc64le/builds/121
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-09-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A few tests use the floating-point constant 0.6158 = 3079/5000 (3079 is a prime number). As far as I can tell, the binary presentation of 1/5000 expressed as a regular expression is 0b0.000(1[01]{499})\1+. That is, the cycle repeats every 500 bits. That cannot possibly be accurately represented with the 53-bit mantissa of a double, let alone 24-bit mantissa of a float. Based on my experience of analyzing and fixing For example, 0.6158 should better be replaced with 2523/4096 = 0.615966796875 or 628/1024 = .61328125. Both should easily fit in a float. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2020-03-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried to reproduce these faults on 10.3 branch and was unable to.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-07-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
recent occurrence on 10.5 http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-rhel8-ppc64le/builds/1385/steps/mtr/logs/stdio | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-09-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
fails every day on kvm-rpm-rhel8-ppc64le http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-rhel8-ppc64le/builds/1568/steps/mtr-rocksdb/logs/stdio | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2022-05-30 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Since nothing is happening, from now on the failing tests will be skipped on this builder:
If it ever gets fixed, please create a TODO task for re-enabling the tests. |