Commit 14b2f49
fix(pipelinerun): add missing sort logic for childRefs array
The previous cherry-pick (tektoncd#9312) only included the test file changes
(removing cmpopts.SortSlices) but not the actual sorting logic in
pipelinerun.go. This caused tests to fail because they expected sorted
output but the production code wasn't sorting.
This commit adds the missing sort.Slice call that sorts childRefs by
PipelineTaskName, then Name, then Kind to prevent excessive status
updates caused by unordered arrays.
Cherry-pick of the missing part from tektoncd#9295.
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ce3a889 commit 14b2f49
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
1748 | 1749 | | |
1749 | 1750 | | |
1750 | 1751 | | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1751 | 1764 | | |
1752 | 1765 | | |
1753 | 1766 | | |
| |||
0 commit comments