Package: src:golang-github-viccon-sturdyc
Version: 1.1.5-4
Severity: important
Tags: ftbfs forky sid patch
Control: forwarded -1 https://github.com/viccon/sturdyc/issues/47
Hello.
When I try to build this package on AWS machines of type r7a.medium or
m7a.medium,
which incidentally have one vCPU, the following test always fails:
=== CONT TestTimeBasedEviction
cache_test.go:94: expected 10000 evicted entries, got 9904
--- FAIL: TestTimeBasedEviction (0.52s)
I reported this upstream in the URL above but there is not
an official fix yet, so I suggest disabling this single
test as flaky (as in the attached patch) until there is an official fix.
Full build log available here:
https://people.debian.org/~sanvila/build-logs/202609/
The build error may be reproduced easily with GRUB_CMDLINE_LINUX="nr_cpus=1",
but if that does not work, I can offer a VM for you to reproduce.
Thanks.
--------------------------------------------------------------------------------
[...]
=== RUN
TestForcedEvictions/100_capacity,_1000_writes,_10_shards,_100%_forced_evictions
=== PAUSE
TestForcedEvictions/100_capacity,_1000_writes,_10_shards,_100%_forced_evictions
=== CONT TestTimeBasedEviction
cache_test.go:94: expected 10000 evicted entries, got 9900
--- FAIL: TestTimeBasedEviction (0.52s)
=== CONT TestShardDistribution
=== RUN
TestShardDistribution/1_000_000_capacity,_100_shards,_12%_tolerance,_16_key_length
=== PAUSE
TestShardDistribution/1_000_000_capacity,_100_shards,_12%_tolerance,_16_key_length
=== RUN
TestShardDistribution/1000_capacity,_2_shards,_12%_tolerance,_14_key_length
=== PAUSE
TestShardDistribution/1000_capacity,_2_shards,_12%_tolerance,_14_key_length
=== CONT TestValuesAreUpdatedCorrectly
--- PASS: TestValuesAreUpdatedCorrectly (0.20s)
=== CONT TestLargeBatchesAreChunkedCorrectly
--- PASS: TestLargeBatchesAreChunkedCorrectly (0.00s)
=== CONT TestBatchesAreGroupedByPermutations
--- PASS: TestBatchesAreGroupedByPermutations (0.00s)
=== CONT TestBatchIsNotRefreshedByDuplicates
--- PASS: TestBatchIsNotRefreshedByDuplicates (0.01s)
=== CONT TestBatchIsRefreshedWhenTheBufferSizeIsReached
--- PASS: TestBatchIsRefreshedWhenTheBufferSizeIsReached (0.04s)
=== CONT TestCutoff/1000_entries,_50th_percentile
=== CONT TestCutoff/13_entries,_2nd_percentile
=== CONT TestCutoff/999_entries,_16th_percentile
=== CONT TestCutoff/1000_entries,_90th_percentile
--- PASS: TestCutoff (0.00s)
--- PASS: TestCutoff/1000_entries,_50th_percentile (0.00s)
--- PASS: TestCutoff/13_entries,_2nd_percentile (0.00s)
--- PASS: TestCutoff/999_entries,_16th_percentile (0.00s)
--- PASS: TestCutoff/1000_entries,_90th_percentile (0.00s)
=== CONT
TestForcedEvictions/1000_capacity,_100_000_writes,_100_shards,_5%_forced_evictions
=== CONT
TestForcedEvictions/100_capacity,_1000_writes,_10_shards,_100%_forced_evictions
=== CONT
TestForcedEvictions/100_capacity,_10_000_writes,_10_shards,_1%_forced_evictions
=== CONT
TestShardDistribution/1_000_000_capacity,_100_shards,_12%_tolerance,_16_key_length
--- PASS: TestForcedEvictions (0.00s)
--- PASS:
TestForcedEvictions/1000_capacity,_100_000_writes,_100_shards,_5%_forced_evictions
(0.21s)
--- PASS:
TestForcedEvictions/100_capacity,_1000_writes,_10_shards,_100%_forced_evictions
(0.00s)
--- PASS:
TestForcedEvictions/100_capacity,_10_000_writes,_10_shards,_1%_forced_evictions
(0.01s)
=== CONT
TestShardDistribution/1000_capacity,_2_shards,_12%_tolerance,_14_key_length
--- PASS: TestShardDistribution (0.00s)
--- PASS:
TestShardDistribution/1_000_000_capacity,_100_shards,_12%_tolerance,_16_key_length
(0.84s)
--- PASS:
TestShardDistribution/1000_capacity,_2_shards,_12%_tolerance,_14_key_length
(0.00s)
FAIL
FAIL github.com/viccon/sturdyc 7.926s
? github.com/viccon/sturdyc/examples/basic [no test files]
? github.com/viccon/sturdyc/examples/batch [no test files]
? github.com/viccon/sturdyc/examples/buffering [no test files]
? github.com/viccon/sturdyc/examples/distributed-early-refreshes [no
test files]
? github.com/viccon/sturdyc/examples/distribution [no test files]
? github.com/viccon/sturdyc/examples/generics [no test files]
? github.com/viccon/sturdyc/examples/missing [no test files]
? github.com/viccon/sturdyc/examples/permutations [no test files]
? github.com/viccon/sturdyc/examples/refreshes [no test files]
FAIL
dh_auto_test: error: cd debian/_build && go test -vet=off -v -p 1
github.com/viccon/sturdyc github.com/viccon/sturdyc/examples/basic
github.com/viccon/sturdyc/examples/batch github.com/viccon/sturdyc/examples/buffering
github.com/viccon/sturdyc/examples/distributed-early-refreshes
github.com/viccon/sturdyc/examples/distribution
github.com/viccon/sturdyc/examples/generics github.com/viccon/sturdyc/examples/missing
github.com/viccon/sturdyc/examples/permutations
github.com/viccon/sturdyc/examples/refreshes returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit
status 2
--------------------------------------------------------------------------------From: Santiago Vila <[email protected]>
Subject: Skip TestTimeBasedEviction
Bug: https://github.com/viccon/sturdyc/issues/47
--- a/cache_test.go
+++ b/cache_test.go
@@ -56,6 +56,7 @@
}
func TestTimeBasedEviction(t *testing.T) {
+ t.Skip("flaky")
t.Parallel()
capacity := 10_000
numShards := 100