[Mlir-commits] [mlir] [mlir][python] Correctly handle python passes that emit errors without signalling failure. (PR #96996)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Mar 17 07:12:19 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 4090 tests passed
* 201 tests skipped
All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.
<details>
<summary>tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlirDialectsTransform.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o</summary>
```
FAILED: tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlirDialectsTransform.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o
sccache /opt/llvm/bin/clang++ -DMLIRPythonModules_extension__mlirDialectsTransform_dso_EXPORTS -DMLIR_BINDINGS_PYTHON_DOMAIN=mlir -DMLIR_INCLUDE_TESTS -DMLIR_PYTHON_PACKAGE_PREFIX=mlir. -DNB_DOMAIN=mlir -DNB_SHARED -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /usr/include/python3.12 -isystem /home/gha/.local/lib/python3.12/site-packages/nanobind/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -UNDEBUG -fno-stack-protector -Os -Wno-c++98-compat-extra-semi -Wno-cast-qual -Wno-covered-switch-default -Wno-deprecated-literal-operator -Wno-nested-anon-types -Wno-unused-parameter -Wno-zero-length-array -Wno-missing-field-initializers -frtti -fexceptions -MD -MT tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlirDialectsTransform.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o -MF tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlirDialectsTransform.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o.d -o tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlirDialectsTransform.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp:273:23: error: use of undeclared identifier 'py'
273 | throw py::error_already_set();
| ^
1 error generated.
```
</details>
<details>
<summary>tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o</summary>
```
FAILED: tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o
sccache /opt/llvm/bin/clang++ -DMLIRPythonModules_extension__mlir_dso_EXPORTS -DMLIR_BINDINGS_PYTHON_DOMAIN=mlir -DMLIR_INCLUDE_TESTS -DMLIR_PYTHON_PACKAGE_PREFIX=mlir. -DNB_DOMAIN=mlir -DNB_SHARED -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /usr/include/python3.12 -isystem /home/gha/.local/lib/python3.12/site-packages/nanobind/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -UNDEBUG -fno-stack-protector -Os -Wno-c++98-compat-extra-semi -Wno-cast-qual -Wno-covered-switch-default -Wno-deprecated-literal-operator -Wno-nested-anon-types -Wno-unused-parameter -Wno-zero-length-array -Wno-missing-field-initializers -frtti -fexceptions -MD -MT tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o -MF tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o.d -o tools/mlir/python/CMakeFiles/MLIRPythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp:273:23: error: use of undeclared identifier 'py'
273 | throw py::error_already_set();
| ^
1 error generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/96996
More information about the Mlir-commits
mailing list