[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1093147: elixir-lang:FTBFS:build failed ([31m** (ExUnit.TimeoutError) test timed out after 60000ms)



Source: elixir-lang
Version:  1.18.1.dfsg-1
Severity: serious
Tags: FTBFS, patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear elixir-lang maintainer,
The package elixir-lang build failed on riscv64.The crucial buildd log below:
```
1) test in/2 too large list in guards (KernelTest)
      [1m [30mtest/elixir/kernel_test.exs:481 [0m
      [31m** (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).
      [0m
      [36mcode:  [0mdefmodule TooLargeList do
      [36mstacktrace: [0m
       (elixir 1.18.1) src/elixir_erl_compiler.erl:15: :elixir_erl_compiler.spawn/1
       (elixir 1.18.1) src/elixir_module.erl:160: :elixir_module.compile/7
       (elixir 1.18.1) src/elixir_lexical.erl:13: :elixir_lexical.run/3
       test/elixir/kernel_test.exs:482: (test)
       (ex_unit 1.18.1) lib/ex_unit/runner.ex:511: ExUnit.Runner.exec_test/2
       (stdlib 6.2) timer.erl:595: :timer.tc/2
       (ex_unit 1.18.1) lib/ex_unit/runner.ex:433: anonymous fn/6 in ExUnit.Runner.spawn_test_monitor/4
```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=elixir-lang&arch=riscv64&ver=1.18.1.dfsg-1&stamp=1736917615&raw=0
My solution to this issue:
  The error occurs because the related tests on RISC-V require more time. Therefore, it can be resolved by increasing the timeout threshold for RISC-V.I have tried to fix that, the debpatch is in the attachment. Please let me know whether it can be accepted.

Attachment: fix_elixir-lang_test_timeout_on_riscv.patch
Description: Binary data


Reply to: