Skip to content

Commit 159b055

Browse files
committed
Split docs validation from Rust fast CI
1 parent 202f37e commit 159b055

4 files changed

Lines changed: 56 additions & 3 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Docs Validate
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "develop"
7+
paths:
8+
- ".github/workflows/docs-validate.yml"
9+
- "docs/**"
10+
- "rust-rewrite/docs-site-strategy.md"
11+
- "rust-rewrite/docs-site-vercel-plan.md"
12+
push:
13+
branches:
14+
- "develop"
15+
- "rust-rewrite"
16+
paths:
17+
- ".github/workflows/docs-validate.yml"
18+
- "docs/**"
19+
- "rust-rewrite/docs-site-strategy.md"
20+
- "rust-rewrite/docs-site-vercel-plan.md"
21+
workflow_dispatch:
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
mintlify:
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 5
30+
steps:
31+
- name: Check out repository
32+
uses: actions/checkout@v4
33+
34+
- name: Set up Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: "22"
38+
39+
- name: Validate Mintlify build
40+
working-directory: docs
41+
run: npx --yes mintlify@latest validate
42+
43+
- name: Check Mintlify links
44+
working-directory: docs
45+
run: npx --yes mintlify@latest broken-links

.github/workflows/rust-rewrite-fast.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ on:
99
- "Cargo.lock"
1010
- "Cargo.toml"
1111
- "crates/**"
12-
- "rust-rewrite/**"
12+
- "rust-rewrite/golden/**"
13+
- "rust-rewrite/p0-parity-coverage.json"
14+
- "rust-rewrite/supported-subset.json"
15+
- "rust-rewrite/tools/**"
1316
- "src/graph_sitter/codebase/**"
1417
- "src/graph_sitter/configs/models/codebase.py"
1518
- "src/graph_sitter/core/codebase.py"
@@ -29,7 +32,10 @@ on:
2932
- "Cargo.lock"
3033
- "Cargo.toml"
3134
- "crates/**"
32-
- "rust-rewrite/**"
35+
- "rust-rewrite/golden/**"
36+
- "rust-rewrite/p0-parity-coverage.json"
37+
- "rust-rewrite/supported-subset.json"
38+
- "rust-rewrite/tools/**"
3339
- "src/graph_sitter/codebase/**"
3440
- "src/graph_sitter/configs/models/codebase.py"
3541
- "src/graph_sitter/core/codebase.py"

rust-rewrite/docs-site-strategy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,5 +267,5 @@ Rules:
267267

268268
- [ ] Ensure PyPI package metadata points to the final docs and landing URLs. owner: unclaimed.
269269
- [ ] Ensure the public setup path does not claim `uvx graph-sitter ...` until clean package validation passes. owner: unclaimed.
270-
- [ ] Add a docs validation CI or release gate for `mintlify validate`. owner: unclaimed.
270+
- [x] Add a docs validation CI or release gate for `mintlify validate`. owner: codex. Result: `.github/workflows/docs-validate.yml` runs Mintlify validate and broken-link checks for docs changes.
271271
- [ ] Add a site build CI or release gate for `npm --prefix site ci && npm --prefix site run build`. owner: unclaimed.

rust-rewrite/strategy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ Recommended task format:
154154
- [x] Add a minimal debug API returning engine version and enabled features. owner: Beauvoir. Result: added Rust `Engine::debug_info` and feature-gated PyO3 bindings.
155155
- [x] Add CI job that builds the Rust extension on supported Python versions. owner: codex. Result: `.github/workflows/rust-rewrite-extension.yml` builds/tests the PyO3 extension on Python 3.12 and 3.13 across Linux/macOS, imports `graph_sitter_py`, runs a compact Python indexing smoke, then builds a wheel and proves `uvx --from dist/<wheel>.whl graph-sitter parse --backend rust --fallback error`.
156156
- [x] Add fast Rust rewrite PR CI lane. owner: codex. Result: `.github/workflows/rust-rewrite-fast.yml` runs `rust-rewrite/tools/check_fast.sh` for full ruff, Rust fmt/tests, PyO3 binding checks, live Python/Rust fixture parity, focused py_compile, and focused Rust-backend pytest without running large pinned repo benchmarks.
157+
- [x] Keep docs-only work out of the Rust fast lane. owner: codex. Result: `.github/workflows/docs-validate.yml` validates Mintlify docs and broken links, while `rust-rewrite-fast.yml` now watches Rust/code/proof inputs instead of all `rust-rewrite/**` markdown ledgers.
157158
- [x] Add tiny CLI smoke CI lane for the `uvx graph-sitter` surface. owner: codex. Result: `.github/workflows/rust-rewrite-cli-smoke.yml` runs `rust-rewrite/tools/check_cli_smoke.sh` for focused ruff/py_compile, command help, and parse/run/transform unit tests when CLI files change.
158159
- [x] Harden Linux PyO3 CI against missing uv libpython loader paths. owner: codex. Result: `check_fast.sh` and `check_extension_build.sh` export the active Python `LIBDIR` through `LD_LIBRARY_PATH` before running linked PyO3 test binaries.
159160
- [x] Fix large-repo workflow validation before job startup. owner: codex. Result: moved `runner.temp`-derived pinned-check env vars from job-level env to the run step where the runner context is valid.
@@ -596,3 +597,4 @@ Default-backend promotion criteria:
596597
- [x] 2026-06-19: Added installed-wheel registered run proof. owner: codex. Notes: the wheel smoke now runs target-owned registered codemods through `uvx --from dist/<wheel>.whl` in strict Rust `--check`, `--write`, and scoped `--subdir --check` modes.
597598
- [x] 2026-06-19: Documented setup and `uvx` workflows. owner: codex. Notes: added `docs/cli/uvx.mdx`, linked it from CLI nav, modernized installation quickstart around `graph-sitter`, and kept PyPI-backed Rust claims blocked on published-package validation.
598599
- [x] 2026-06-19: Published benchmark and correctness docs. owner: codex. Notes: added docs pages for pinned Airflow/Next.js benchmark evidence and parity status, linked them from `uvx` and the overview, and softened broad correctness claims in public copy.
600+
- [x] 2026-06-19: Split docs validation from Rust fast CI. owner: codex. Notes: added a lightweight Mintlify validate/broken-links workflow and narrowed Rust fast-check path filters so docs/strategy-only edits no longer spend the full Rust check budget.

0 commit comments

Comments
 (0)