Skip to content

ci: run the docs validator test suite - #440

Open
HugoFernandezz wants to merge 1 commit into
flipperdevices:public-releasefrom
HugoFernandezz:ci/run-validate-docs-tests
Open

ci: run the docs validator test suite#440
HugoFernandezz wants to merge 1 commit into
flipperdevices:public-releasefrom
HugoFernandezz:ci/run-validate-docs-tests

Conversation

@HugoFernandezz

Copy link
Copy Markdown

What's wrong

tools/test_validate_docs.py has never run in CI. test-open-tasks-generator.yml runs mypy over every file in tools/validate_docs.py included — but only executes test_generate_open_tasks.py. The validator's 37 tests are dead weight, so a regression in the tool that gates every pull request from the Validate workflow would go unnoticed.

How to reproduce

.github/workflows/test-open-tasks-generator.yml has a single test step, python3 tools/test_generate_open_tasks.py. Nothing anywhere in .github/workflows/ mentions test_validate_docs.py.

The fix

One extra step next to the existing one. Both suites are stdlib unittest and need no new dependencies; together they run in well under a second. The workflow already triggers on tools/**, which is exactly when these tests need to run.

Note for maintainers

The workflow is still called "Test Open Tasks generator" though it already covers all of tools/. Renaming it would be tidier, but it changes the check name and could break branch protection rules, so I left it alone — happy to rename in a follow-up if you'd prefer.

Checks

  • python3 tools/test_generate_open_tasks.py → 11 tests OK
  • python3 tools/test_validate_docs.py → 37 tests OK (on this branch, without PR Pull request for Flipper One Docs #1's changes)

tools/test_validate_docs.py has never run in CI. The workflow runs mypy
over every file in tools/ (validate_docs.py included) but only executes
the generator's tests, so the validator's 37 tests were dead weight --
a regression in the tool that gates every pull request would have gone
unnoticed.

Add a step alongside the generator test. Both suites are stdlib
unittest and need no extra dependencies; the whole job stays under a
second.

Signed-off-by: HugoFernandezz <104948166+HugoFernandezz@users.noreply.github.com>
@HugoFernandezz
HugoFernandezz force-pushed the ci/run-validate-docs-tests branch from dbec0bc to ccb2a15 Compare August 25, 2026 15:35
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