Skip to content

fix: check both formatters in the test recipe - #513

Merged
retr0h merged 3 commits into
mainfrom
fix/test-recipe-covers-formatters
Sep 18, 2026
Merged

retr0h merged 3 commits into
mainfrom
fix/test-recipe-covers-formatters

Conversation

@retr0h

@retr0h retr0h commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

just test checked justfile formatting only. Markdown and the Docusaurus site were covered by CI alone.

That is fine for an ordinary pull request — Markdown Lint and Docusaurus Lint both run on pull_request. It is not fine for a fix merged from a security advisory's private fork: those forks run no Actions at all (GET /repos/osapi-io/osapi-ghsa-…/actions/runs returns 404), so the fix's first CI run happens on main, after the merge. For those changes this recipe is the only pre-merge gate.

Three advisory fixes each edited a page under docs/ and left five unformatted, so Docusaurus Lint failed on main from a48daffe8 until #512.

test now runs md-fmt-check and docusaurus-fmt-check alongside just-fmt-check, with a comment saying why. Both pass on current main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FuKUsHFG1EqZXamffh9M2c

just test verified justfile formatting only. Markdown and the docs site
were covered by CI alone, which is enough for an ordinary pull request
but not for a fix merged from a security advisory's private fork: those
forks run no Actions, so this recipe is the only gate such a change
gets before it reaches main.

Three advisory fixes each edited pages under docs/ and left five of them
unformatted, so Docusaurus Lint failed on main from a48daff until
#512. Both checks now run here, where they would have caught it.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
retr0h and others added 2 commits September 17, 2026 14:34
md-fmt-check runs mdformat through uvx, and the Go workflow installs Go,
Node, bun and just but not uv, so just test failed with uvx: not found.
Markdown Lint already runs that check in a job that installs uv.

docusaurus-fmt-check stays: bun is installed in the Go workflow and the
recipe installs the site dependencies itself, and that is the check whose
absence let five unformatted pages reach main.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #513   +/-   ##
=======================================
  Coverage   99.90%   99.90%           
=======================================
  Files         489      489           
  Lines       23174    23174           
=======================================
  Hits        23153    23153           
  Misses         21       21           

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 684b31b...6772f68. Read the comment docs.

🚀 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.

@retr0h
retr0h merged commit b240cb0 into main Sep 18, 2026
12 checks passed
@retr0h
retr0h deleted the fix/test-recipe-covers-formatters branch September 18, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant