Commit 27fa591
recipe: sort the two map iterations whose keys reach the report
Go randomises map order, and two loops in the recipe validator walked a
map to name unknown keys as problems. A recipe with two bad keys in a
contains entry, or two bad keys inside an expectation, could print its
problems in a different order on two runs of the same file.
No file bytes were affected - this is the report, not the output - but
RC7 promises every problem at once, and a list whose order moves between
runs is a poor way to keep that promise. A test asserting on the whole
message would also have been flaky for a reason nobody would find.
Checked all twelve map iterations in product code rather than these two.
Ten already sorted, including the one behind `tfg formats` and the one
behind the closed reason list, and one of them carries a comment saying
why. So the convention was already here and these two were the exception
rather than a decision. They now go through one shared sortedKeys.
Also fixed: the doc comment on Parse had come adrift from Parse when
MaxBytes was added above it, and was documenting the constant instead.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent a2d4a31 commit 27fa591
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
| |||
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
564 | 578 | | |
565 | 579 | | |
566 | 580 | | |
| |||
639 | 653 | | |
640 | 654 | | |
641 | 655 | | |
642 | | - | |
| 656 | + | |
643 | 657 | | |
644 | 658 | | |
645 | 659 | | |
| |||
0 commit comments