- Notifications
You must be signed in to change notification settings - Fork1k
Commitd6766f7
authored
fix: sort provisioner key tags in cli output (#14875)
I'm seeing flakes like``` provisionerkeys_test.go:68: 2024-09-30 05:58:44.686: cmd: matched newline = "CREATED AT NAME TAGS " provisionerkeys_test.go:72: 2024-09-30 05:58:44.686: cmd: matched newline = "2024-09-30T05:58:44Z dont-test-me my=way foo=bar " provisionerkeys_test.go:74: Error Trace:/Users/runner/work/coder/coder/enterprise/cli/provisionerkeys_test.go:74 Error: "2024-09-30T05:58:44Z dont-test-me my=way foo=bar " does not contain "foo=bar my=way" Test: TestProvisionerKeys/CRUD```e.g.https://github.com/coder/coder/actions/runs/11100237276/job/30835714478?pr=14855Since the tags are a map, we weren't outputting them in a consistentorder on the CLI, leading to flakes.This sorts the tags by key when converting to a string, for aconsistent, canonical output.1 parentba90bb0 commitd6766f7
1 file changed
+6
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
15 | 17 |
| |
16 | 18 |
| |
17 | 19 |
| |
| |||
278 | 280 |
| |
279 | 281 |
| |
280 | 282 |
| |
| 283 | + | |
| 284 | + | |
281 | 285 |
| |
282 |
| - | |
283 |
| - | |
| 286 | + | |
| 287 | + | |
284 | 288 |
| |
285 | 289 |
| |
286 | 290 |
| |
|
0 commit comments
Comments
(0)