Skip to content

Implement kernel rewriting #2117

Implement kernel rewriting

Implement kernel rewriting #2117

Triggered via pull request September 12, 2026 16:31
Status Failure
Total duration 6h 0m 27s
Artifacts –

ci.yml

on: pull_request
Matrix: downstream_tests
Fit to window
Zoom out
Zoom in

Annotations

38 errors and 50 warnings
basedpyright: sumpy/kernel_rewrite.py#L391
Argument of type "Matrix" cannot be assigned to parameter "iter1" of type "Iterable[_T1@__new__]" in function "__new__"   "MutableDenseMatrix" is incompatible with protocol "Iterable[_T1@__new__]"     "__iter__" is not present (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L391
Argument of type "zip[Unknown]" cannot be assigned to parameter "iterable" of type "Iterable[list[bytes]]" in function "__init__"   "zip[Unknown]" is incompatible with protocol "Iterable[list[bytes]]"     "__iter__" is an incompatible type       Type "() -> zip[Unknown]" is not assignable to type "() -> Iterator[_T_co@Iterable]"         Function return type "zip[Unknown]" is incompatible with type "Iterator[_T_co@Iterable]"           "zip[Unknown]" is incompatible with protocol "Iterator[_T_co@Iterable]" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L391
No overloads for "__init__" match the provided arguments (reportCallIssue)
basedpyright: sumpy/kernel_rewrite.py#L317
Argument of type "Rational | NaN | ComplexInfinity" cannot be assigned to parameter "value" of type "float" in function "__setitem__"   Type "Rational | NaN | ComplexInfinity" is not assignable to type "float"     "ComplexInfinity" is not assignable to "float" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L313
Argument of type "One | NegativeOne | Zero | Integer" cannot be assigned to parameter "value" of type "float" in function "__setitem__"   Type "One | NegativeOne | Zero | Integer" is not assignable to type "float"     "Integer" is not assignable to "float" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L287
No parameter named "prec" (reportCallIssue)
basedpyright: sumpy/kernel_rewrite.py#L252
Argument of type "list[Expression]" cannot be assigned to parameter "coeffs" of type "Sequence[ArithmeticExpression]" in function "__init__" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L194
Argument of type "Unknown | SparseMatrix" cannot be assigned to parameter "expr" of type "Basic" in function "simplify"   Type "Unknown | SparseMatrix" is not assignable to type "Basic"     "MutableSparseMatrix" is not assignable to "Basic" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L194
No overloads for "simplify" match the provided arguments (reportCallIssue)
basedpyright: sumpy/kernel_rewrite.py#L50
Import "sumpy.expansions.diff_op" could not be resolved (reportMissingImports)
Conda Pytest
The job has exceeded the maximum execution time of 6h0m0s
Conda Pytest
The operation was canceled.
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L143
test_rewrite_using_base_kernel_lu_stokeslet_biharmonic[3] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L143
test_rewrite_using_base_kernel_lu_stokeslet_biharmonic[2] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L124
test_rewrite_using_base_kernel_lu_laplace_biharmonic[3] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L124
test_rewrite_using_base_kernel_lu_laplace_biharmonic[2] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine with Loopy FFT
The job has exceeded the maximum execution time of 6h0m0s
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L239
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[3] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl3D_00(mu, k) in terms of YukKnl3D(k)
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L239
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[2] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl2D_00(mu, k) in terms of YukKnl2D(k)
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L219
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[3] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L219
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L201
test_rewrite_using_base_kernel_fourier_laplace_biharmonic[3] ImportError: cannot import name 'PymbolicToSympyMapperWithSymbols' from 'sumpy.symbolic' (/home/runner/work/sumpy/sumpy/sumpy/symbolic.py)
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L198
test_rewrite_using_base_kernel_fourier_laplace_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L143
test_rewrite_using_base_kernel_lu_stokeslet_biharmonic[3] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L143
test_rewrite_using_base_kernel_lu_stokeslet_biharmonic[2] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L124
test_rewrite_using_base_kernel_lu_laplace_biharmonic[3] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L124
test_rewrite_using_base_kernel_lu_laplace_biharmonic[2] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine
The job has exceeded the maximum execution time of 6h0m0s
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L239
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[3] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl3D_00(mu, k) in terms of YukKnl3D(k)
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L239
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[2] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl2D_00(mu, k) in terms of YukKnl2D(k)
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L219
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[3] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L219
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L201
test_rewrite_using_base_kernel_fourier_laplace_biharmonic[3] ImportError: cannot import name 'PymbolicToSympyMapperWithSymbols' from 'sumpy.symbolic' (/home/runner/work/sumpy/sumpy/sumpy/symbolic.py)
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L198
test_rewrite_using_base_kernel_fourier_laplace_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L143
test_rewrite_using_base_kernel_lu_stokeslet_biharmonic[3] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L143
test_rewrite_using_base_kernel_lu_stokeslet_biharmonic[2] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L124
test_rewrite_using_base_kernel_lu_laplace_biharmonic[3] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L124
test_rewrite_using_base_kernel_lu_laplace_biharmonic[2] AttributeError: module 'sumpy.symbolic' has no attribute 'SympyToPymbolicMapperWithSymbols'
basedpyright: sumpy/kernel_rewrite.py#L179
Type of "inv" is partially unknown   Type of "inv" is "(method: Unknown | None = None, iszerofunc: Unknown = _iszero, try_block_diag: bool = False) -> Unknown" (reportUnknownMemberType)
basedpyright: sumpy/kernel_rewrite.py#L155
Stub file not found for "sympy" (reportMissingTypeStubs)
basedpyright: sumpy/kernel_rewrite.py#L115
"atol" is not accessed (reportUnusedParameter)
basedpyright: sumpy/kernel_rewrite.py#L107
Argument type is partially unknown   Argument corresponds to parameter "iterable" in function "join"   Argument type is "list[Unknown]" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L105
Type of "append" is partially unknown   Type of "append" is "(object: Unknown, /) -> None" (reportUnknownMemberType)
basedpyright: sumpy/kernel_rewrite.py#L102
Argument type is unknown   Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L101
Argument type is unknown   Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L99
Argument type is partially unknown   Argument corresponds to parameter "iter1" in function "__new__"   Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L99
Type of "mis" is partially unknown   Type of "mis" is "Sequence[Unknown]" (reportUnknownMemberType)
basedpyright: sumpy/kernel_rewrite.py#L97
Type of "append" is partially unknown   Type of "append" is "(object: Unknown, /) -> None" (reportUnknownMemberType)
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/mesh/__init__.py#L1125
Unimplemented: Cannot check element orientation for a mesh with mesh.dim != mesh.ambient_dim
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/mesh/__init__.py#L1125
Unimplemented: Cannot check element orientation for a mesh with mesh.dim != mesh.ambient_dim
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Conda Pytest Symengine with Loopy FFT: test/sumpy/tools.py#L1104
TranslationUnit.__call__ is uncached as of 2025, meaning it will incur possibly substantial compilation cost with every invocation. Use TranslationUnit.executor to obtain an object that holds longer-lived caches.
Conda Pytest Symengine with Loopy FFT: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine with Loopy FFT: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine with Loopy FFT: test/sumpy/tools.py#L1104
TranslationUnit.__call__ is uncached as of 2025, meaning it will incur possibly substantial compilation cost with every invocation. Use TranslationUnit.executor to obtain an object that holds longer-lived caches.
Conda Pytest Symengine with Loopy FFT: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine with Loopy FFT: test/sumpy/tools.py#L1104
TranslationUnit.__call__ is uncached as of 2025, meaning it will incur possibly substantial compilation cost with every invocation. Use TranslationUnit.executor to obtain an object that holds longer-lived caches.
Conda Pytest Symengine with Loopy FFT: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/sumpy/tools.py#L1104
TranslationUnit.__call__ is uncached as of 2025, meaning it will incur possibly substantial compilation cost with every invocation. Use TranslationUnit.executor to obtain an object that holds longer-lived caches.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.
Conda Pytest Symengine: test/.conda-root/envs/testing/lib/python3.14/site-packages/loopy/schedule/tools.py#L830
Cannot enforce the constraint: itgt to be nested within itgt_box, as itgt_box is either a parallel loop or not an iname.