-
Notifications
You must be signed in to change notification settings - Fork 57
chore: run the release-notes vale check in /pre-ci #10266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ Run all locally-executable CI checks to catch issues before pushing. | |
|
|
||
| **Options:** | ||
|
|
||
| - `--fast` — Run only formatting and fast lint checks (~20s). Skips backend lint (ty/mypy), Betterer, docs lint, generated file and doc validation, schema validation, and unit tests. | ||
| - `--fast` — Run only formatting and fast lint checks (~20s). Skips backend lint (ty/mypy), Betterer, docs lint, generated file and doc validation, schema validation, release notes style, and unit tests. | ||
|
|
||
| ## Phase 1 — Auto-fix formatting (sequential) | ||
|
|
||
|
|
@@ -65,7 +65,7 @@ Auto-fixes formatting and lint issues in TypeScript/TSX files. If Biome reports | |
|
|
||
| ## Phase 3 — Slow checks (parallel) | ||
|
|
||
| **IMPORTANT: Send ALL 7 commands below in a SINGLE message with 7 parallel Bash tool calls.** Do NOT run them one at a time. | ||
| **IMPORTANT: Send ALL 8 commands below in a SINGLE message with 8 parallel Bash tool calls.** Do NOT run them one at a time. | ||
|
|
||
| 1. `uv run invoke backend.lint` — Run separately from main.lint to avoid `uv run invoke lint` which includes a `yamllint -s .` step that fails on vendored packages in `.venv`. If ruff reports issues, they were not auto-fixable — report them to the user. | ||
| 2. `cd frontend/app && npx betterer` — Ensures no new TypeScript errors are introduced. The issue count must stay the same or decrease. If it increases, report the new issues to the user. | ||
|
|
@@ -74,6 +74,7 @@ Auto-fixes formatting and lint issues in TypeScript/TSX files. If Biome reports | |
| 5. `uv run invoke schema.validate-graphqlschema` — Ensures `schema/schema.graphql` is up to date. Regenerates the file then checks for uncommitted diffs. If validation fails, the correct file is already on disk — just stage and commit it. | ||
| 6. `uv run invoke schema.validate-jsonschema` — Ensures `schema/openapi.json` is up to date. Same approach as GraphQL schema validation. | ||
| 7. `uv run invoke docs.validate` — Ensures generated reference documentation (CLI, schema, events, repository config, config) is up to date. Regenerates the docs then checks for uncommitted diffs. If validation fails, the correct files are already on disk — stage and commit them. | ||
| 8. `uv run invoke release.vale` - Runs the same vale check as CI's `validate-release-notes-style` job, covering `changelog/`, `docs/docs/release-notes/infrahub/` and `CHANGELOG.md`. Catches prose style errors in towncrier fragments before they reach CI, since a fragment's text becomes the release notes. Only errors fail the check; warnings are reported but do not. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Item 8 silently no-ops when the Prompt for AI agents |
||
|
|
||
| ## Phase 4 — Unit tests | ||
|
|
||
|
|
@@ -104,6 +105,7 @@ Summarize results in a table: | |
| | GraphQL schema validation | ... | | ||
| | JSON schema validation | ... | | ||
| | Generated docs validation | ... | | ||
| | Release notes style | ... | | ||
| | Unit tests | ... | | ||
|
|
||
| If `--fast` was used, show skipped checks as "skipped". | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: The final sentence of item 8 is truncated: "Only errors fail the check; warnings are reported but do not." It should read "...but do not fail the check." As written it leaves the condition on warnings unfinished and confusing for a developer who relies on it to know whether warnings block a push.
Prompt for AI agents