Commit df985d7
authored
YAML diagnostics collector should have stable output (#295)
YAML diagnostics collector should have stable output
### Motivation
Fixes #294.
Since we're running generation in parallel now, the order of diagnostics depends on the racing of the cores, resulting in unstable output.
### Modifications
Sort the diagnostics before writing them to file, making the output stable again.
### Result
Stable YAML diagnostics file.
### Test Plan
N/A, the order isn't significant, so we're not testing the details of the sorting function, we just care about it being stable.
Reviewed by: dnadoba
Builds:
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (compatibility test) - Build finished.
✔︎ pull request validation (docc test) - Build finished.
✔︎ pull request validation (integration test) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
#2951 parent a359eab commit df985d7
File tree
1 file changed
+5
-2
lines changed- Sources/swift-openapi-generator
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments