Closed sbinet closed 6 years ago
hum... the failure seems to be intermittent...
Yes, I've noticed that. I suspect it is more of Travis' flaky numerical hardware.
I can reproduce it quite repeatedly on my laptop.
$> uname -a
Linux zoidberg 4.16.7-1-ARCH #1 SMP PREEMPT Wed May 2 21:12:36 UTC 2018 x86_64 GNU/Linux
$> go version
go version devel +d2c7dec183 Sat Apr 14 05:36:36 2018 +0000 linux/amd64
Odd.
FYI:
$> head /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 61
model name : Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
stepping : 4
microcode : 0x1d
cpu MHz : 997.918
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2
bogomips : 5190.37
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
just updated to:
$> go version
go version devel +65c365bf0f Wed May 23 23:51:30 2018 +0000 linux/amd64
still there:
$> cd palette/moreland
$> go test -run=TestRgb_sRGBA
--- FAIL: TestRgb_sRGBA (0.00s)
convert_test.go:28: case 0: have {R:0.12987167010866837 G:0.12987167010866837 B:0.12987167010866837 A:0}, want {R:0.1298716701086684 G:0.1298716701086684 B:0.1298716701086684 A:0}
FAIL
exit status 1
At a guess, I'd say it was golang/go@5305bdd86bbe31d61c72e62f4e6729e3562ae178, but the addition of an epsilon in the tests is fine.
quite recently, TestRgb_sRGBA and TestCreateLuminance started to fail with Go >= 1.10:
it seems to be some float64 precision issue (at least for the first one). here is a tentative fix for the first one: