Skip to content

docs: check documented flags against the binary in CI - #4041

Open
Giri-Aayush wants to merge 1 commit into
NethermindEth:mainfrom
Giri-Aayush:docs/flag-check
Open

docs: check documented flags against the binary in CI#4041
Giri-Aayush wants to merge 1 commit into
NethermindEth:mainfrom
Giri-Aayush:docs/flag-check

Conversation

@Giri-Aayush

Copy link
Copy Markdown
Contributor

Make CI prove the docs and the binary agree about flags.

Reason

CI only checked that the site builds. This checks every documented flag exists in the binary and the config table is complete, on docs PRs only, so Go PRs are never blocked. Its first run caught --log-port, renamed in v0.14.4 and still on the live monitoring page. Fixes included.

@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.17%. Comparing base (121146c) to head (159018e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4041      +/-   ##
==========================================
- Coverage   79.31%   79.17%   -0.15%     
==========================================
  Files         464      464              
  Lines       35793    35787       -6     
==========================================
- Hits        28389    28333      -56     
- Misses       7395     7445      +50     
  Partials        9        9              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to add the job to docs-test.yml

Comment thread docs/docs/monitoring.md
Comment on lines +206 to +209
:::note
These flags were renamed from `--log-host` and `--log-port` in v0.14.4. When running in a container, set `--http-update-host=0.0.0.0`; the default binds localhost.
:::

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Comment thread docs/docs/monitoring.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

Comment thread docs/check-flags.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems awfully complicated and unnecessary. Why does this do?

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.

2 participants