[llvm] [DirectX][ObjectYAML] Attempt to fix flaky PRIVPart.yaml (PR #206278)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 27 12:22:05 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-objectyaml
Author: Vladislav Dzhidzhoev (dzhidzhoev)
<details>
<summary>Changes</summary>
This test was meant to round-trip YAML twice, to ensure correct processing of non-4-byte-padded PRIV section.
However, second invocation of yaml2obj had wrong arguments (it was reading from test file instead of stdin). Fix that.
Also, round-trips were split into two RUN lines, to make it clear on which line an error occurs if the test is still flaky.
---
Full diff: https://github.com/llvm/llvm-project/pull/206278.diff
1 Files Affected:
- (modified) llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml (+2-1)
``````````diff
diff --git a/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml b/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml
index 0d429a1381413..72db3f55b37b4 100644
--- a/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml
+++ b/llvm/test/tools/obj2yaml/DXContainer/PRIVPart.yaml
@@ -2,7 +2,8 @@
## part size is not a multiple of 4. The pipeline is run twice to ensure obj2yaml
## output with a non-multiple-of-4 FileSize can be fed back through yaml2obj.
-# RUN: yaml2obj %s 2>&1 | obj2yaml 2>&1 | yaml2obj %s 2>&1 | obj2yaml 2>&1 | FileCheck %s
+# RUN: yaml2obj %s 2>&1 | obj2yaml -o %t.yaml
+# RUN: yaml2obj %t.yaml 2>&1 | obj2yaml 2>&1 | FileCheck %s
--- !dxcontainer
Header:
``````````
</details>
https://github.com/llvm/llvm-project/pull/206278
More information about the llvm-commits
mailing list