Subject: [Cuirass] Failed dependency reported as failed build

From: Ludovic Courtès <[email-masked]>
Date: Fri, 09 Jul 2021 15:00:09 +0200

Hello Guix!

Look at this build (‘python-jupyter-sphinx-0.3.2’ on i686-linux):

  https://ci.guix.gnu.org/build/658660/details

Its status is “Failed” and all the dependencies shown on that page have
a green tick.  But!  The build log linked from the page suggests a
dependency failed to build:

--8<---------------cut here---------------start------------->8---
gcc -pthread -shared -Wl,-rpath=/gnu/store/jkngay2hcmxzi5y35hajq6ak6flh2108-python-3.8.2/lib build/temp.linux-i686-3.8/build/__native_other.o -L/gnu/store/jkngay2hcmxzi5y35hajq6ak6flh2108-python-3.8.2/lib -o build/lib.linux-i686-3.8/other__mypyc.cpython-38-i386-linux-gnu.so
building 'other' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/gnu/store/jkngay2hcmxzi5y35hajq6ak6flh2108-python-3.8.2/include/python3.8 -c build/other.c -o build/temp.linux-i686-3.8/build/other.o -O0 -Werror -Wno-unused-function -Wno-unused-label -Wno-unreachable-code -Wno-unused-variable -Wno-unused-command-line-argument -Wno-unknown-warning-option -Wno-unused-but-set-variable
gcc -pthread -shared -Wl,-rpath=/gnu/store/jkngay2hcmxzi5y35hajq6ak6flh2108-python-3.8.2/lib build/temp.linux-i686-3.8/build/other.o -L/gnu/store/jkngay2hcmxzi5y35hajq6ak6flh2108-python-3.8.2/lib -o build/lib.linux-i686-3.8/other.cpython-38-i386-linux-gnu.so
copying build/lib.linux-i686-3.8/native__mypyc.cpython-38-i386-linux-gnu.so -> 
copying build/lib.linux-i686-3.8/native.cpython-38-i386-linux-gnu.so -> 
copying build/lib.linux-i686-3.8/other__mypyc.cpython-38-i386-linux-gnu.so -> 
copying build/lib.linux-i686-3.8/other.cpython-38-i386-linux-gnu.so -> 

*** Exit status: 1
----------------------------- Captured stderr call -----------------------------
Expected:
  1
  2
  1                                             (diff)
  2                                             (diff)
Actual:
  1
  2
  Traceback (most recent call last):            (diff)
    File "driver.py", line 8, in <module>       (diff)
      assert b.foo(o) == id(o)                  (diff)
  AssertionError                                (diff)

=============================== warnings summary ===============================
mypyc/test/test_run.py: 30 warnings
  /gnu/store/jkngay2hcmxzi5y35hajq6ak6flh2108-python-3.8.2/lib/python3.8/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED mypyc/test/test_run.py::TestRun::testSubclassSpecialize2
FAILED mypyc/test/test_run.py::TestRun::testSubclassSpecialize1
FAILED mypyc/test/test_run.py::TestRun::testMultiModuleSpecialize
FAILED mypyc/test/test_run.py::TestRunMultiFile::testMultiModuleSpecialize_multi
FAILED mypyc/test/test_run.py::TestRunSeparate::testMultiModuleSpecialize_separate
============ 5 failed, 556 passed, 1 skipped, 30 warnings in 30.63s ============
command "pytest" "mypyc" failed with status 1
builder for `/gnu/store/14kd1mvq6mcasvlr1sf7h1x28yha59qp-python-mypy-0.790.drv' failed with exit code 1
@ build-failed /gnu/store/14kd1mvq6mcasvlr1sf7h1x28yha59qp-python-mypy-0.790.drv - 1 builder for `/gnu/store/14kd1mvq6mcasvlr1sf7h1x28yha59qp-python-mypy-0.790.drv' failed with exit code 1
cannot build derivation `/gnu/store/cc89r7dka9ahbzf8nikpw9a5phqvss6p-python-nbclient-0.5.3.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/9nx8ppvcf0kx3zaq9pkcx6hbz19vp2zx-python-nbconvert-6.0.7.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/2ghjgkgf5mzhryjl6sijr1n7l0qm77kc-python-notebook-6.3.0.drv': 2 dependencies couldn't be built
cannot build derivation `/gnu/store/xi0bghlnim4c8d62mpqdbpmfwhjgksf5-python-widgetsnbextension-3.5.1.drv': 3 dependencies couldn't be built
cannot build derivation `/gnu/store/01b8d919ng9hds5zh7c5i26l4zmcmxwc-python-ipywidgets-7.6.3.drv': 4 dependencies couldn't be built
cannot build derivation `/gnu/store/rfl9m7xq5njxw28dji6602w843qy3kzj-python-jupyter-sphinx-0.3.2.drv': 5 dependencies couldn't be built
--8<---------------cut here---------------end--------------->8---

‘python-mypy’ is not listed under “Dependencies” on the page above,
presumably because it’s an indirect dependency:

--8<---------------cut here---------------start------------->8---
$ guix graph --path python-jupyter-sphinx python-mypy
[email-masked]
[email-masked]
[email-masked]
[email-masked]
--8<---------------cut here---------------end--------------->8---

But ‘python-nbconvert’ is not listed either.

There’s no substitute though, so it can’t be that the thing got rebuilt
behind Cuirass’s back somehow:

--8<---------------cut here---------------start------------->8---
$ wget -O - https://ci.guix.gnu.org/wwyflf4kpazzv2nk4s7zqyhpy1i2x3i8.narinfo
--2021-07-09 14:59:13--  https://ci.guix.gnu.org/wwyflf4kpazzv2nk4s7zqyhpy1i2x3i8.narinfo
Ni solvigas ci.guix.gnu.org (ci.guix.gnu.org)... 141.80.181.40
Konektado al ci.guix.gnu.org (ci.guix.gnu.org)|141.80.181.40|:443... konektita.
HTTP peto sendita, ni atendas respondon... 404 Not Found
2021-07-09 14:59:13 ERARO 404: Not Found.
--8<---------------cut here---------------end--------------->8---

Thoughts?

Thanks,
Ludo’.