[DRE-maint] Bug#1024871: ruby-stackprof: FTBFS on riscv64 (flaky test)

Eric Long i at hack3r.moe
Sun Nov 27 09:27:20 GMT 2022


Source: ruby-stackprof
Version: 0.2.21-2
Severity: normal
Tags: ftbfs patch
User: debian-riscv at lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: i at hack3r.moe, debian-riscv at lists.debian.org

Dear maintainer(s),

ruby-stackprof failed to build on riscv64 due to flaky test `test_walltime`:

```
  1) Failure:
StackProfTest#test_walltime [/<<PKGBUILDDIR>>/test/test_stackprof.rb:106]:
Expected |200 - 51| (149) to be <= 25.

29 runs, 84 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_middleware.rb" "test/test_report.rb" "test/test_stackprof.rb" "test/test_truffleruby.rb" -v]
/usr/share/rubygems-integration/all/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
```

Full buildd log: https://buildd.debian.org/status/fetch.php?pkg=ruby-stackprof&arch=riscv64&ver=0.2.21-2&stamp=1668442680&raw=0

Since this test asserts the number of samples in a certain period of time (if
I guess correctly) in delta, it should be safe to exclude this test on riscv64,
which I've included a patch to do so.

If more help is needed, please let me know.

Cheers,
Eric
-------------- next part --------------
--- a/test/test_stackprof.rb
+++ b/test/test_stackprof.rb
@@ -93,6 +93,10 @@
   end
 
   def test_walltime
+    if ENV["DEB_HOST_ARCH"] == "riscv64"
+        return
+    end
+
     profile = StackProf.run(mode: :wall) do
       idle
     end


More information about the Pkg-ruby-extras-maintainers mailing list