Commit f9e7241
fix(pipelinerun): add missing sort logic for childRefs array
The previous cherry-pick (#9314) 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 #9295.
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 04f74ed commit f9e7241
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 | | |
| |||
1899 | 1900 | | |
1900 | 1901 | | |
1901 | 1902 | | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
1902 | 1915 | | |
1903 | 1916 | | |
1904 | 1917 | | |
| |||
0 commit comments