[devel] Q: энтропия на сборочнице [bolt-0.9.1-alt1: Sisyphus/i586 test rebuild failed]

Konstantin Lepikhov lakostis на altlinux.org
Пн Мар 1 20:10:32 MSK 2021


Привет!

Давно мучает меня эта "ошибка" пересборки

Код теста:

static void
test_strv_permute (TestRng *tt, gconstpointer user_data)
{
  g_auto(GStrv) tst = NULL;
  const char *ref[] = {"a", "b", "c", "d", NULL};
  char *empty[] = {NULL};
  guint N;
  guint k = 0;

  bolt_strv_permute (NULL);
  bolt_strv_permute (empty);

  g_assert_cmpuint (bolt_strv_length (empty), ==, 0U);

  tst = g_strdupv ((char **) ref);

  /* there are 4! = 24 possible permutations, do it
   * at least N = 4! and pick a rather large threshold
   * instead of a larger N */
  N = (4 * 3 * 2 * 1);

  for (guint i = 0; i < N; i++)
    {
      bolt_strv_permute (tst);
      if (bolt_strv_equal ((char **) ref, (char **) tst))
        k++;
    }

  g_debug ("permutation-test: %u of %u were equal", k, N);
  g_assert_cmpuint (k, <, 5);
}

...

У меня есть смутные подозрения, что в какой-то момент в сборочнице
кончается энтропия и начинается фигня

----- Forwarded message from ALT beekeeper <hiver на altlinux.org> -----

Date: Mon,  1 Mar 2021 15:48:15 +0000 (UTC)
From: ALT beekeeper <hiver на altlinux.org>
To: lakostis на altlinux.org
CC: hiver на altlinux.org
Subject: bolt-0.9.1-alt1: Sisyphus/i586 test rebuild failed

Package: bolt-0.9.1-alt1
Status: Sisyphus/i586 test rebuild failed
Cannot build this package.
Please investigate.
Excerpt from build log:

....

Bail out! ERROR:../tests/test-common.c:2141:test_strv_permute: assertion failed (k < 5): (5 < 5)
stderr:
**
ERROR:../tests/test-common.c:2141:test_strv_permute: assertion failed (k < 5): (5 < 5)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

13/17 test-exported OK               0.21s
14/17 test-udev     OK               0.07s
15/17 test-power    OK               0.11s
16/17 test-sysfs    OK               0.12s
17/17 test-reaper   OK               0.52s

Summary of Failures:

12/17 test-common   FAIL             0.29s   killed by signal 6 SIGABRT

Ok:                 16  
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /usr/src/RPM/BUILD/bolt-0.9.1/i586-alt-linux/meson-logs/testlog.txt
FAILED: meson-test 
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
error: Bad exit status from /usr/src/tmp/rpm-tmp.7416 (%check)

RPM build errors:
    Bad exit status from /usr/src/tmp/rpm-tmp.7416 (%check)
Command exited with non-zero status 1
40.56user 3.99system 0:19.74elapsed 225%CPU (0avgtext+0avgdata 62568maxresident)k
0inputs+0outputs (0major+1547522minor)pagefaults 0swaps
hsh-rebuild: rebuild of `bolt-0.9.1-alt1.src.rpm' failed.
Command exited with non-zero status 1

-- 
Sincerely yours,
ALT beekeeper

----- End forwarded message -----

-- 
WBR et al.


Подробная информация о списке рассылки Devel