Commit 706ace9
authored
Validate generated reference docs in CI (#13451)
The check-doc CI step now validates generated markdown files, while a
new check-reference-help step validates reference documentation files
(help.txt.tmpl, help-all.txt.tmpl, config-descriptor.json,
mimir-flags-defaults.json). Both checks always run outside the
container.
## Why
Previously, operations/mimir/mimir-flags-defaults.json wasn't validated
in CI, leading to incorrect values being committed (e.g.,
9223372036854776000 instead of 9223372036854775807 for max int64).
The reference-help target needs to run outside the container since it
executes the compiled mimir binary and config-inspector tool directly.
Splitting it into a separate check makes the separation clear and allows
check-doc to continue running in the container for markdown validation.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds a CI step and Makefile target to validate generated reference
docs, corrects gRPC keepalive max int64 defaults, updates flaky-tests
ignored list, and removes redundant help/config descriptor tests.
>
> - **CI**:
> - Add `Check Reference Help Documentation` step in
`/.github/workflows/test-build-deploy.yml` running `make
BUILD_IN_CONTAINER=false check-reference-help`.
> - Update `/.github/workflows/flaky-tests.yml` to only ignore
`TestOurUpstreamTestCasesAreInSyncWithUpstream`.
> - **Build/Makefile**:
> - Introduce `check-reference-help` target to verify
`cmd/mimir/help.txt.tmpl`, `cmd/mimir/help-all.txt.tmpl`,
`cmd/mimir/config-descriptor.json`, and
`operations/mimir/mimir-flags-defaults.json` are up to date.
> - **Tests**:
> - Remove `TestHelp` in `cmd/mimir/main_test.go`.
> - Remove `tools/config-inspector/main_test.go` (config descriptor
up-to-date test).
> - **Data/Fixes**:
> - Correct max int64 values in
`operations/mimir/mimir-flags-defaults.json` for
`server.grpc.keepalive.*` defaults.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
32d5f93. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Signed-off-by: Dimitar Dimitrov <[email protected]>1 parent 98be465 commit 706ace9
File tree
6 files changed
+16
-88
lines changed- .github/workflows
- cmd/mimir
- operations/mimir
- tools/config-inspector
6 files changed
+16
-88
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
660 | 669 | | |
661 | 670 | | |
662 | 671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 251 | | |
310 | 252 | | |
311 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
This file was deleted.
0 commit comments