Parallel test improvements #3865
Merged
GitHub Actions / Firedrake real
failed
Nov 14, 2024 in 0s
8087 tests run, 7297 passed, 789 skipped, 1 failed.
Annotations
Check failure on line 143 in tests/demos/test_demos_run.py
github-actions / Firedrake real
test_demos_run.test_serial_demo[multigrid/geometric_multigrid]
petsc4py.PETSc.Error: error code -1
[0] SNESSolve() at /home/firedrake/petsc/src/snes/interface/snes.c:4842
[0] SNESSolve_KSPONLY() at /home/firedrake/petsc/src/snes/impls/ksponly/ksponly.c:49
[0] KSPSolve() at /home/firedrake/petsc/src/ksp/ksp/interface/itfunc.c:1075
[0] KSPSolve_Private() at /home/firedrake/petsc/src/ksp/ksp/interface/itfunc.c:826
[0] KSPSetUp() at /home/firedrake/petsc/src/ksp/ksp/interface/itfunc.c:415
[0] PCSetUp() at /home/firedrake/petsc/src/ksp/pc/interface/precon.c:1071
[0] PCSetUp_FieldSplit() at /home/firedrake/petsc/src/ksp/pc/impls/fieldsplit/fieldsplit.c:1056
[0] KSPSetFromOptions() at /home/firedrake/petsc/src/ksp/ksp/interface/itcl.c:356
[0] PCSetFromOptions() at /home/firedrake/petsc/src/ksp/pc/interface/pcset.c:156
Raw output
> ???
petsc4py/PETSc/PETSc.pyx:348:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/PETSc.pyx:348: in petsc4py.PETSc.PetscPythonErrorHandler
???
petsc4py/PETSc/libpetsc4py.pyx:1365: in petsc4py.PETSc.PCSetFromOptions_Python
???
petsc4py/PETSc/libpetsc4py.pyx:1236: in petsc4py.PETSc.PCPythonSetType_PYTHON
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E ModuleNotFoundError: No module named '__main__.Mass'; '__main__' is not a package
petsc4py/PETSc/libpetsc4py.pyx:274: ModuleNotFoundError
The above exception was the direct cause of the following exception:
demo = Demo(loc=('multigrid', 'geometric_multigrid'), requirements=['vtk'])
env = {'CI': 'true', 'COMPLEX': '', 'FIREDRAKE_CI_TESTS': '1', 'FIREDRAKE_TSFC_KERNEL_CACHE_DIR': '/__w/firedrake/firedrake_venv/.cache/tsfc', ...}
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f62b256e300>
tmpdir = local('/tmp/pytest-of-firedrake/pytest-0/popen-gw0/test_serial_demo_multigrid_geo0')
@pytest.mark.skipcomplex
@pytest.mark.parametrize("demo", SERIAL_DEMOS, ids=["/".join(d.loc) for d in SERIAL_DEMOS])
def test_serial_demo(demo, env, monkeypatch, tmpdir):
_maybe_skip_demo(demo)
py_file = _prepare_demo(demo, monkeypatch, tmpdir)
> _exec_file(py_file)
/__w/firedrake/firedrake/tests/demos/test_demos_run.py:152:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/__w/firedrake/firedrake/tests/demos/test_demos_run.py:143: in _exec_file
importlib.import_module(py_file.with_suffix("").name)
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:935: in _load_unlocked
???
<frozen importlib._bootstrap_external>:995: in exec_module
???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
???
/tmp/pytest-of-firedrake/pytest-0/popen-gw0/test_serial_demo_multigrid_geo0/geometric_multigrid.py:200: in <module>
solve(a == L, u, bcs=bcs, solver_parameters=parameters)
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
???
/__w/firedrake/firedrake/firedrake/adjoint_utils/solving.py:57: in wrapper
output = solve(*args, **kwargs)
/__w/firedrake/firedrake/firedrake/solving.py:141: in solve
_solve_varproblem(*args, **kwargs)
/__w/firedrake/firedrake/firedrake/solving.py:178: in _solve_varproblem
solver.solve()
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
???
/__w/firedrake/firedrake/firedrake/adjoint_utils/variational_solver.py:101: in wrapper
out = solve(self, **kwargs)
/__w/firedrake/firedrake/firedrake/variational_solver.py:324: in solve
self.snes.solve(None, work)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E petsc4py.PETSc.Error: error code -1
E [0] SNESSolve() at /home/firedrake/petsc/src/snes/interface/snes.c:4842
E [0] SNESSolve_KSPONLY() at /home/firedrake/petsc/src/snes/impls/ksponly/ksponly.c:49
E [0] KSPSolve() at /home/firedrake/petsc/src/ksp/ksp/interface/itfunc.c:1075
E [0] KSPSolve_Private() at /home/firedrake/petsc/src/ksp/ksp/interface/itfunc.c:826
E [0] KSPSetUp() at /home/firedrake/petsc/src/ksp/ksp/interface/itfunc.c:415
E [0] PCSetUp() at /home/firedrake/petsc/src/ksp/pc/interface/precon.c:1071
E [0] PCSetUp_FieldSplit() at /home/firedrake/petsc/src/ksp/pc/impls/fieldsplit/fieldsplit.c:1056
E [0] KSPSetFromOptions() at /home/firedrake/petsc/src/ksp/ksp/interface/itcl.c:356
E [0] PCSetFromOptions() at /home/firedrake/petsc/src/ksp/pc/interface/pcset.c:156
petsc4py/PETSc/SNES.pyx:1724: Error
Loading