Skip to content

chore: add codegen docs auto-fix to formatting GitHub Action#2336

Merged
benfdking merged 1 commit intomainfrom
chore/autofix-codegen-docs
Feb 15, 2026
Merged

chore: add codegen docs auto-fix to formatting GitHub Action#2336
benfdking merged 1 commit intomainfrom
chore/autofix-codegen-docs

Conversation

@benfdking
Copy link
Collaborator

Summary

  • Add a cargo_run rule — a non-test executable variant of cargo_test that shares the same implementation but can be used with bazel run
  • Add a codegen_docs_fix target that builds the codegen binary and runs it from BUILD_WORKSPACE_DIRECTORY to regenerate reference docs in-place
  • Add a "Regenerate docs" step to the autofix workflow

Test plan

  • Verified bazel run //:codegen_docs_fix works locally — builds and regenerates docs
  • Tested by mangling docs/reference/cli.md and confirmed it gets regenerated correctly

🤖 Generated with Claude Code

Add a cargo_run rule (non-test variant of cargo_test) and a
codegen_docs_fix target that regenerates reference docs and writes them
back to the workspace using BUILD_WORKSPACE_DIRECTORY. Add it as a step
in the autofix workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@benfdking benfdking merged commit f5960fa into main Feb 15, 2026
24 of 27 checks passed
@benfdking benfdking deleted the chore/autofix-codegen-docs branch February 15, 2026 14:34
@github-actions
Copy link

Benchmark for 1ce5df9

Click to view benchmark
Test Base PR %
DepthMap::from_parent 52.0±0.77µs 51.2±0.89µs -1.54%
fix_complex_query 12.7±0.12ms 12.7±0.09ms 0.00%
fix_superlong 189.5±16.90ms 156.8±4.71ms -17.26%
parse_complex_query 4.0±0.03µs 4.1±0.07µs +2.50%
parse_expression_recursion 6.9±0.06µs 7.2±0.12µs +4.35%
parse_simple_query 1053.1±13.39ns 1036.8±20.51ns -1.55%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant