Repository navigation
Read an Uppercase Markdown Suffix as Markdown at Every Prose Gate Branch - #3096
Conversation
check_file and comment_wrap_findings compared the suffix to ".md" case-sensitively at each Markdown-only branch, while syntax_for lowercases it. A file named NOTES.MD therefore had its comments extracted as Markdown but skipped dead-path, sentence-split, sentence-length, semicolon, dash, and quote-stripping, and drew comment-case on an unpunctuated HTML comment that NOTES.md is exempt from. Both functions now read the lowercased suffix once and use it at every comparison. Tests pin a constructed NOTES.MD against each branch, and fail with the fix reverted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
is_markdown reads the suffix in any case, and the five sites that spelled the test inline now call it, so the next one cannot drift back to a case-sensitive comparison. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified, and regression coverage is included.
0 open findings
What changed in this PR
Updates the prose gate to treat uppercase Markdown suffixes as Markdown across all relevant branches.
Changes:
- Adds centralized, case-insensitive Markdown detection.
- Applies it across Markdown-specific checks.
- Adds regression tests, including dead-path coverage.
| File | Summary |
|---|---|
tests/test_prose_lint.py |
Adds uppercase .MD regression tests. |
.github/actions/prose-gate/prose_lint.py |
Centralizes Markdown suffix detection across prose checks. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3096 +/- ##
========================================
Coverage 61.21% 61.21%
========================================
Files 17 17
Lines 9062 9062
========================================
Hits 5547 5547
Misses 3515 3515
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
… Fixes to Main (#3146) - #3135 makes `gh-write-guard` read a gh write's subcommand and target the way gh parses them: the subcommand is found past flags before the command and before the subcommand, an `R` inside a short-option cluster is read as a target, `GH_REPO` is read as a target, a run-time repository owner on a write fails closed, and a run-time word where `pr` or `merge` goes fails closed beside `--admin` or where word splitting may split it - #3139 releases the bootstrap lock when a `bootstrap.ps1` run ends rather than when its process does, so a second run typed at the same pwsh prompt is no longer refused the lock - #3130 matches tool names and the `all` keyword by case in the Windows agents loaders, as the Linux loaders already do - #3128 reads CodeRabbit's rate limit on a reply to an explicit review command in `pr_review.py` - #3126 reconciles VSCode-Server-DotNetCore in the hub after its resync - #3124 logs the Docker task's build-base leg in to Docker Hub - #3122 names the carried skill and the skipped review correctly - #3120 states the subprocess encoding rule in `CODESTYLE.md`, where carriers read Python style - #3118 and #3111 move the release-guard tests' workflow-command checks onto `runner_commands`, and test the alternatives wiring at the `audit_repo` and `fidelity_pass` call sites - #3116 stops the doc gates' printed names forging workflow commands - #3113 adds a catalog snippet for the release-with-smoke caller - #3109 moves the `workflow_reuse` fetch onto `audit.contents_text` - #3105 accepts `.codecov.yml` as an alternative to `codecov.yml` - #3103 adds a pip ecosystem to the carried Dependabot snippet - #3100 prefers the venv's ruff and pyright for a declared pip directory - #3098 tracks composite action pins in Dependabot - #3096 reads an uppercase Markdown suffix as Markdown at every prose gate branch After this merges, the host-safety installer payload changes, so the maintainer runs the installer after promotion. Closes #1416 Closes #1425 Closes #1578 Closes #1874 Closes #1892 Closes #1899 Closes #2804 Closes #2850 Closes #2852 Closes #2854 Closes #2996 Closes #3065 Closes #3067 Closes #3069 Closes #3079 Closes #3080 Closes #3089 Closes #3093 Closes #3101 Closes #3106 Closes #3107 Closes #3137 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a pull-request smoke build that runs when relevant release files change and reports the combined validation and build status. * Repository audits now recognize `.codecov.yml` as an alternative to `codecov.yml`. * **Improvements** * Python linting and type checks use tools from declared project environments when available, with fallbacks for missing tools. * Workflow and lint reports safely display unusual filenames and command-like text. * GitHub write-target checks now account for additional command forms and fail closed when targets cannot be verified. * Rate-limit detection now recognizes another CodeRabbit response format. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
check_fileandcomment_wrap_findingsin.github/actions/prose-gate/prose_lint.pycompared the suffix to.mdcase-sensitively at each Markdown-only branch, whilesyntax_forlowercases it. A file namedNOTES.MDtherefore had its comments extracted as Markdown and then skippeddead-path,sentence-split,sentence-length,semicolon,dash, and quote-stripping, and drewcomment-caseon an unpunctuated HTML commentNOTES.mdis exempt from.A new
is_markdown(path)reads the suffix in any case, and every Markdown suffix test in the file now calls it, the two broken functions and the three sites that already lowercased (is_instruction_text,comment_added_findings,issue_ref_findings), so no later site can drift back to a case-sensitive comparison. The now-redundantelif path.suffix.lower() != ".md"in thesentence-lengthbranch becomes a plainelse.Tests
TestAnUppercaseMarkdownSuffixIsMarkdownruns a constructed case per Markdown-only branch against bothnotes.mdandNOTES.MD, including<!-- group header -->drawing nocomment-caseand a quoted duplicate inside an HTML comment that quote-stripping exempts.TestDeadPath.test_an_uppercase_markdown_suffix_is_judged_for_dead_pathspins thedead-pathbranch.test_prose_lintsuite passes with it.Closes on promotion: #2804
🤖 Generated with Claude Code
Summary by CodeRabbit
.mdextensions.