Source: elixir-lang
Version: 1.17.3.dfsg-1
Severity: serious
Tags: ftbfs patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear Maintainer,

Now elixir-lang has one ftbfs issue due to timeout on test:


```
  1) test --listen-on-stdin does not exit on compilation failure 
(Mix.Tasks.TestTest)
     /<<PKGBUILDDIR>>/lib/mix/test/mix/tasks/test_test.exs:287
     ** (ExUnit.TimeoutError) test timed out after 60000ms. You can change the 
timeout:

       1. per test by setting "@tag timeout: x" (accepts :infinity)
       2. per test module by setting "@moduletag timeout: x" (accepts :infinity)
       3. globally via "ExUnit.start(timeout: x)" configuration
       4. by running "mix test --timeout x" which sets timeout
       5. or by running "mix test --trace" which sets timeout to infinity
          (useful when using IEx.pry/0)

     where "x" is the timeout given as integer in milliseconds (defaults to 
60_000).

     stacktrace:
       test/mix/tasks/test_test.exs:612: 
Mix.Tasks.TestTest.receive_until_match/3
       test/mix/tasks/test_test.exs:336: anonymous fn/0 in 
Mix.Tasks.TestTest."test --listen-on-stdin does not exit on compilation 
failure"/1
       (elixir 1.17.3) lib/file.ex:1665: File.cd!/2
       test/test_helper.exs:156: MixTest.Case.in_fixture/3
       test/mix/tasks/test_test.exs:288: (test)
       (ex_unit 1.17.3) lib/ex_unit/runner.ex:485: ExUnit.Runner.exec_test/2
       (stdlib 6.1.2) timer.erl:590: :timer.tc/2
       (ex_unit 1.17.3) lib/ex_unit/runner.ex:407: anonymous fn/6 in 
ExUnit.Runner.spawn_test_monitor/4
...
Finished in 1226.6 seconds (47.0s on load, 1.2s async, 1178.4s sync)
6 doctests, 838 tests, 1 failure
make[2]: *** [Makefile:114: test_mix] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j4 test returned exit code 2
Killed
epmd: Wed Dec  4 23:49:21 2024: got KILL_REQ - terminates normal
```

See:
https://buildd.debian.org/status/fetch.php?pkg=elixir-lang&arch=riscv64&ver=1.17.3.dfsg-1&stamp=1733357952&raw=0

I have increased the timeout on riscv64 to 120000ms from 60000ms and the
test cases passed on my local Unmatched board.

Could you have a look at this? 

-- 
Regards,
--
  Bo YU

diff -Nru elixir-lang-1.17.3.dfsg/debian/changelog 
elixir-lang-1.17.3.dfsg/debian/changelog
--- elixir-lang-1.17.3.dfsg/debian/changelog    2024-12-03 14:44:43.000000000 
+0000
+++ elixir-lang-1.17.3.dfsg/debian/changelog    2024-12-10 13:40:45.000000000 
+0000
@@ -1,3 +1,10 @@
+elixir-lang (1.17.3.dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Increase the timeout on riscv64. (Closes: #-1)
+
+ -- Bo YU <tsu.y...@gmail.com>  Tue, 10 Dec 2024 13:40:45 +0000
+
 elixir-lang (1.17.3.dfsg-1) unstable; urgency=medium
 
   * New upstream release (closes: #1078070).
diff -Nru elixir-lang-1.17.3.dfsg/debian/patches/increase-timeout-on-rv64.patch 
elixir-lang-1.17.3.dfsg/debian/patches/increase-timeout-on-rv64.patch
--- elixir-lang-1.17.3.dfsg/debian/patches/increase-timeout-on-rv64.patch       
1970-01-01 00:00:00.000000000 +0000
+++ elixir-lang-1.17.3.dfsg/debian/patches/increase-timeout-on-rv64.patch       
2024-12-10 12:52:33.000000000 +0000
@@ -0,0 +1,26 @@
+Description: increasing the timeout on riscv64
+Author: Bo YU <tsu.y...@gmail.com>
+Bug: 
https://buildd.debian.org/status/fetch.php?pkg=elixir-lang&arch=riscv64&ver=1.17.3.dfsg-1&stamp=1733357952&raw=0
+Forwarded: not-needed
+Last-Update: 2024-12-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: b/lib/mix/test/mix/tasks/test_test.exs
+===================================================================
+--- a/lib/mix/test/mix/tasks/test_test.exs
++++ b/lib/mix/test/mix/tasks/test_test.exs
+@@ -284,6 +284,14 @@
+     end
+ 
+     @tag :unix
++    @tag timeout:
++           if(
++             :erlang.system_info(:system_architecture)
++             |> to_string()
++             |> String.contains?("riscv64"),
++             do: 120_000,
++             else: 60_000
++           )
+     test "does not exit on compilation failure" do
+       in_fixture("test_stale", fn ->
+         File.write!("lib/b.ex", """
diff -Nru elixir-lang-1.17.3.dfsg/debian/patches/series 
elixir-lang-1.17.3.dfsg/debian/patches/series
--- elixir-lang-1.17.3.dfsg/debian/patches/series       2024-12-03 
14:44:43.000000000 +0000
+++ elixir-lang-1.17.3.dfsg/debian/patches/series       2024-12-10 
08:55:45.000000000 +0000
@@ -1,3 +1,4 @@
 fix-tests-under-erlang-27.1.patch
 remove-utf8-warning.patch
 erlang-24.1.patch
+increase-timeout-on-rv64.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to