Skip to content

Add pt.(zeros|ones)_like #3524

Add pt.(zeros|ones)_like

Add pt.(zeros|ones)_like #3524

Triggered via pull request May 23, 2025 18:04
Status Failure
Total duration 17m 7s
Artifacts

ci.yml

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

Annotations

10 errors and 52 warnings
basedpyright: pytato/cmath.py#L267
Cannot access attribute "dtype" for class "int"   Attribute "dtype" is unknown (reportAttributeAccessIssue)
basedpyright: pytato/cmath.py#L267
Cannot access attribute "dtype" for class "float"   Attribute "dtype" is unknown (reportAttributeAccessIssue)
basedpyright: pytato/cmath.py#L267
Cannot access attribute "dtype" for class "complex"   Attribute "dtype" is unknown (reportAttributeAccessIssue)
basedpyright: pytato/cmath.py#L267
Cannot access attribute "dtype" for class "bool"   Attribute "dtype" is unknown (reportAttributeAccessIssue)
basedpyright: test/test_codegen.py#L2104
Argument of type "dict[str, ArrayOrScalar]" cannot be assigned to parameter "result" of type "Array | DictOfNamedArrays | dict[str, Array]" in function "generate_loopy"   Type "dict[str, ArrayOrScalar]" is not assignable to type "Array | DictOfNamedArrays | dict[str, Array]"     "dict[str, ArrayOrScalar]" is not assignable to "Array"     "dict[str, ArrayOrScalar]" is not assignable to "DictOfNamedArrays"     "dict[str, ArrayOrScalar]" is not assignable to "dict[str, Array]"       Type parameter "_VT@dict" is invariant, but "ArrayOrScalar" is not the same as "Array"       Consider switching from "dict" to "Mapping" which is covariant in the value type (reportArgumentType)
basedpyright: test/test_codegen.py#L2108
Cannot access attribute "shape" for class "int"   Attribute "shape" is unknown (reportAttributeAccessIssue)
basedpyright: test/test_codegen.py#L2108
Cannot access attribute "shape" for class "float"   Attribute "shape" is unknown (reportAttributeAccessIssue)
basedpyright: test/test_codegen.py#L2108
Cannot access attribute "shape" for class "complex"   Attribute "shape" is unknown (reportAttributeAccessIssue)
basedpyright: test/test_codegen.py#L2108
Cannot access attribute "shape" for class "bool"   Attribute "shape" is unknown (reportAttributeAccessIssue)
basedpyright: test/test_codegen.py#L2109
Cannot access attribute "shape" for class "int"   Attribute "shape" is unknown (reportAttributeAccessIssue)
Tests for downstream project mirgecom
No point in testing mirgecom at the moment, see https://github.com/illinois-ceesd/mirgecom/pull/898. Test not performed.
Ruff
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
basedpyright: pytato/cmath.py#L267
Argument type is partially unknown   Argument corresponds to parameter "ret_dtype" in function "_apply_elem_wise_func"   Argument type is "dtype[Any] | Unknown | dtype[integer[Any]] | dtype[inexact[Any, float | complex]] | dtype[numpy.bool[builtins.bool]]" (reportUnknownArgumentType)
basedpyright: pytato/cmath.py#L267
Type of "dtype" is partially unknown   Type of "dtype" is "dtype[Any] | Unknown | dtype[integer[Any]] | dtype[inexact[Any, float | complex]] | dtype[numpy.bool[builtins.bool]]" (reportUnknownMemberType)
basedpyright: test/test_codegen.py#L2092
Type of parameter "ctx_factory" is unknown (reportUnknownParameterType)
basedpyright: test/test_codegen.py#L2092
Type annotation is missing for parameter "ctx_factory" (reportMissingParameterType)
basedpyright: test/test_codegen.py#L2096
Type of "ctx" is unknown (reportUnknownVariableType)
basedpyright: test/test_codegen.py#L2097
Type of "cq" is unknown (reportUnknownVariableType)
basedpyright: test/test_codegen.py#L2097
Type of "CommandQueue" is unknown (reportUnknownMemberType)
basedpyright: test/test_codegen.py#L2104
Type of "generate_loopy" is partially unknown   Type of "generate_loopy" is "(result: Array | DictOfNamedArrays | dict[str, Array], target: LoopyTarget | None = None, options: Options | None = None, *, function_name: str = "_pt_kernel", cl_device: Unknown | None = None, array_tag_t_to_not_propagate: frozenset[type[Tag]] = frozenset([ImplStored, Named, PrefixNamed]), axis_tag_t_to_not_propagate: frozenset[type[Tag]] = frozenset()) -> BoundProgram" (reportUnknownMemberType)
basedpyright: test/test_codegen.py#L2105
Type of "_" is Any (reportAny)
basedpyright: test/test_codegen.py#L2105
Type of "pt_out" is Any (reportAny)
Tests for downstream project arraycontext: arraycontext/.conda-root/envs/testing/lib/python3.13/site-packages/loopy/transform/realize_reduction.py#L1848
in kernel frozen_result: Empty reduction found (no inames to reduce over). Eliminating. (add 'empty_reduction' to silenced_warnings kernel attribute to disable)
Tests for downstream project arraycontext: arraycontext/.conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/__init__.py#L519
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Tests for downstream project arraycontext: arraycontext/.conda-root/envs/testing/lib/python3.13/site-packages/loopy/transform/realize_reduction.py#L1848
in kernel frozen_result: Empty reduction found (no inames to reduce over). Eliminating. (add 'empty_reduction' to silenced_warnings kernel attribute to disable)
Tests for downstream project arraycontext: arraycontext/.conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/__init__.py#L519
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Tests for downstream project arraycontext: arraycontext/.conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/__init__.py#L519
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Tests for downstream project arraycontext: arraycontext/.conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/__init__.py#L519
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Tests for downstream project arraycontext: arraycontext/arraycontext/impl/jax/fake_numpy.py#L116
ravel with order='A' not supported by JAX, using order=C.
Tests for downstream project arraycontext: arraycontext/arraycontext/impl/jax/fake_numpy.py#L116
ravel with order='A' not supported by JAX, using order=C.
Tests for downstream project arraycontext: arraycontext/arraycontext/impl/jax/fake_numpy.py#L116
ravel with order='A' not supported by JAX, using order=C.
Tests for downstream project arraycontext: arraycontext/arraycontext/impl/jax/fake_numpy.py#L116
ravel with order='A' not supported by JAX, using order=C.
Conda Pytest: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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: pytato/target/loopy/__init__.py#L246
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.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
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 grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> 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 grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
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 grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
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 grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> 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 grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> 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 grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
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 meshmode: meshmode/test/test_array.py#L55
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
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 meshmode: meshmode/test/test_array.py#L55
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
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 meshmode: meshmode/test/test_array.py#L55
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.