Skip to content

ci: deterministic MLIR acceptance output and stable LLVM runner - #1645

Merged
godofecht merged 6 commits into
mainfrom
fix/ci-mlir-test-order-20261102
Nov 2, 2026
Merged

godofecht merged 6 commits into
mainfrom
fix/ci-mlir-test-order-20261102

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Failure reproduced

MLIR command goldens (no Python) failed on the existing Ubuntu 24.04 pin PR (#1627), not because any MLIR case failed, but because parallel flow test-mlir printed the six successful test completions in a different order (basic_arith.flow moved from third to first). The fixture golden asserted this incidental completion order. On ubuntu-latest (26.04), apt.llvm.org's LLVM 22 packages have also produced libxml2/dependency configuration errors in CI.

Fix

  • Canonicalize MLIR test completion output only when every retained output line is a successful test completion (✅ ✓); preserve failure and diagnostic lines in original order.
  • Record the six expected passing results in canonical lexicographic order.
  • Pin the LLVM-dependent Flow tier-2, MLIR goldens, native tools, bpfel and wasm32 CI jobs to Ubuntu 24.04, avoiding the known 26.04 LLVM 22 packaging incompatibility.

Validation

The new golden contains exactly the same six expected passing cases and no suppressed failures. The previous LLVM runner pin (#1627) failed exclusively in the nondeterministic test_mlir golden step; this PR includes both changes from current main so that CI can validate the combination. This PR does not weaken parity gates, change compiler behavior, or claim that unexecuted CI has passed.

Related: #1627.

@godofecht
godofecht added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit fa4ade2 Nov 2, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant