[Mlir-commits] [mlir] [mlir][linalg][test] Fix flaky test linalg-morph-multi-step.mlir (PR #152805)
Jordan Rupprecht
llvmlistbot at llvm.org
Fri Aug 8 14:41:11 PDT 2025
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/152805
This test runs `mlir-opt %s | mlir-opt %s | FileCheck` to test the round trip behavior, but the second command takes input from the pipe, not the lit test, so it should be `mlir-opt %s | mlir-opt | FileCheck`.
For some reason I haven't figured out, this causes ~50% flakiness when testing in certain environments (not reproducible in my shell, but reproduces in an internal buildbot), due to the pipeline raising `SIGPIPE`.
Test added in #148424.
>From c0166fbb3bf67771ce7414afdc5c05c565edffb1 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Fri, 8 Aug 2025 14:33:41 -0700
Subject: [PATCH] Remove %s
---
mlir/test/Dialect/Linalg/linalg-morph-multi-step.mlir | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/test/Dialect/Linalg/linalg-morph-multi-step.mlir b/mlir/test/Dialect/Linalg/linalg-morph-multi-step.mlir
index ab50a44a37067..bdd29b96346e1 100644
--- a/mlir/test/Dialect/Linalg/linalg-morph-multi-step.mlir
+++ b/mlir/test/Dialect/Linalg/linalg-morph-multi-step.mlir
@@ -1,5 +1,5 @@
// RUN: mlir-opt %s -linalg-morph-ops=named-to-generic | FileCheck %s --check-prefix=NAMED_TO_GENERIC
-// RUN: mlir-opt %s -linalg-morph-ops=named-to-generic | mlir-opt %s -linalg-morph-ops=generic-to-named | \
+// RUN: mlir-opt %s -linalg-morph-ops=named-to-generic | mlir-opt -linalg-morph-ops=generic-to-named | \
// RUN: FileCheck %s --check-prefix=ROUND_TRIP
func.func @exp(%A : tensor<16x8xf32>, %B : tensor<16x8xf32>) -> tensor<16x8xf32> {
More information about the Mlir-commits
mailing list