Skip to content

Commit

Permalink
Ensure ERROR_CODES.md is kept up to date (#30715)
Browse files Browse the repository at this point in the history
* Slight update to error codes generation to use tabulate, however overall skip auto format because we want to script things

* Ensure we validate error codes codegen
  • Loading branch information
andy31415 authored and pull[bot] committed May 10, 2024
1 parent edb039d commit 5d38bb2
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 236 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
DEBIAN_FRONTEND=noninteractive apt-get install -fy --fix-missing openjdk-17-jre
- name: Generate all
run: ./scripts/run_in_build_env.sh scripts/tools/zap_regen_all.py
- name: Generate script-maintained items (ERROR_CODES.md)
run: ./scripts/run_in_build_env.sh "scripts/error_table.py > docs/ERROR_CODES.md"
- name: Ensure git works in current working directory
run: git config --global --add safe.directory `pwd`
- name: Check for uncommited changes
Expand Down
1 change: 1 addition & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ exclude:
- "scripts/setup/bootstrap.sh" # tries to quote loop variable
- "integrations/docker/build-all.sh" # tries to quote loop variable
- "scripts/setup/pigweed.json" # TODO(#29547). This file is temporary copy from pigweed repo that has minor edits. No restyle help in diff.
- "docs/ERROR_CODES.md" # generated by scripts, not easy to align tables

changed_paths:
maximum: 100000
Expand Down
Loading

0 comments on commit 5d38bb2

Please sign in to comment.