Skip to content

fix(scripts): repoint checks at the .adoc files that exist - #84

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/repoint-scripts-at-adoc
Aug 26, 2026
Merged

fix(scripts): repoint checks at the .adoc files that exist#84
hyperpolymath merged 2 commits into
mainfrom
fix/repoint-scripts-at-adoc

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

The .md.adoc documentation migration moved these files but never updated the scripts that read them, so every check naming a .md has been operating on a file that no longer exists.

Repointed: CHANGELOG.md->CHANGELOG.adoc CODE_OF_CONDUCT.md->CODE_OF_CONDUCT.adoc CONTRIBUTING.md->CONTRIBUTING.adoc docs/PLUGIN_DEVELOPMENT.md->docs/PLUGIN_DEVELOPMENT.adoc docs/QUICKSTART.md->docs/QUICKSTART.adoc docs/TPCF.md->docs/TPCF.adoc MAINTAINERS.md->MAINTAINERS.adoc PROJECT_SUMMARY.md->PROJECT_SUMMARY.adoc README.md->README.adoc SECURITY.md->SECURITY.adoc

Three failure modes were in play across the estate, all fixed by the same change:

shape effect
check "X.md exists" "[ -f X.md ]" hard fail — can never pass
[ -f X.md ] && ((doc_score++)) silently scores lower
if [ -f X.md ]; then …greps… fi silent skip — the block never runs, so the gate reports success by not checking

Labels are repointed too, so failure messages name the file actually inspected. Where a script did git add … X.md, that is fixed as well — it would have failed at release time.

Only tokens whose .adoc twin exists here were rewritten; anything without a twin was left for separate triage.

Found by an estate-wide sweep of 454 repos: 56 such checks across 18 repos. Same class as hyperpolymath/Axiom.jl#82.

The .md -> .adoc documentation migration moved these files but never updated
the scripts that READ them, so every check naming a .md has been operating on
a file that no longer exists.

Repointed: CHANGELOG.md->CHANGELOG.adoc CODE_OF_CONDUCT.md->CODE_OF_CONDUCT.adoc CONTRIBUTING.md->CONTRIBUTING.adoc docs/PLUGIN_DEVELOPMENT.md->docs/PLUGIN_DEVELOPMENT.adoc docs/QUICKSTART.md->docs/QUICKSTART.adoc docs/TPCF.md->docs/TPCF.adoc MAINTAINERS.md->MAINTAINERS.adoc PROJECT_SUMMARY.md->PROJECT_SUMMARY.adoc README.md->README.adoc SECURITY.md->SECURITY.adoc

Three failure modes were in play across the estate, all fixed by the same
change:
  * hard fail   - 'check "X.md exists" "[ -f X.md ]"' can never pass
  * wrong score - '[ -f X.md ] && ((doc_score++))' silently scores lower
  * SILENT SKIP - 'if [ -f X.md ]; then ...greps... fi' skips the whole block,
                  so the checks inside never run and the gate reports success
                  by not checking at all

Human-readable labels are repointed too, so failure messages name the file that
is actually inspected. Where a script did 'git add ... X.md', that is fixed as
well - it would have failed at release time.

Only tokens whose .adoc twin exists in this repository were rewritten; anything
without a twin was left untouched for separate triage.

Found by an estate-wide sweep of 454 repos: 56 such checks across 18 repos.
Same defect class as hyperpolymath/Axiom.jl#82.
@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

Next included review available in 34 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1bc289b8-bf50-42bb-b24c-b95d6fdca318

📥 Commits

Reviewing files that changed from the base of the PR and between 3595fcc and eefc998.

📒 Files selected for processing (1)
  • scripts/release.sh

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 52994252-682e-49d1-aef4-042db991a902

📥 Commits

Reviewing files that changed from the base of the PR and between 2337a69 and 3595fcc.

📒 Files selected for processing (2)
  • scripts/release.sh
  • scripts/verify-rsr.sh

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (2)
scripts/release.sh (1)

38-38: LGTM!

Also applies to: 47-47

scripts/verify-rsr.sh (1)

68-78: LGTM!

Also applies to: 106-108, 132-134


📝 Walkthrough

Summary by CodeRabbit

  • Documentation

    • Updated release documentation guidance to use the AsciiDoc changelog format.
    • Documentation checks now consistently validate AsciiDoc files.
  • Chores

    • Improved release preparation and documentation validation to align with the current documentation format.

Walkthrough

The release script now uses CHANGELOG.adoc. The RSR verification script now checks AsciiDoc documentation paths for documentation, TPCF, and best-practice requirements.

Changes

AsciiDoc script updates

Layer / File(s) Summary
Release changelog paths
scripts/release.sh
The release prompt and release commit staging now reference CHANGELOG.adoc.
RSR AsciiDoc checks
scripts/verify-rsr.sh
Documentation, TPCF, and best-practice checks now read the corresponding AsciiDoc files.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 3595f

This localized script update restores documentation checks and release staging to the migrated .adoc files without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review.

Poem

A rabbit checks the changelog bright
AsciiDoc paths now point right
Release notes hop into place
RSR checks keep steady pace
Carrots celebrate the clean update

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarises the main change: updating scripts to reference existing .adoc files.
Description check ✅ Passed The description directly explains the .md to .adoc migration issue and the script updates that resolve it.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gitar-bot

gitar-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

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.

Pull Request Overview

This PR successfully updates the release and verification scripts to accommodate the migration from Markdown to AsciiDoc (.adoc) files. Codacy analysis indicates the changes are up to standards, but there are functional issues in the scripts that need addressing.

A critical issue exists in scripts/release.sh where the Cargo.lock file is updated during the build but omitted from the git staging command. This inconsistency will likely cause CI failures in environments enforcing locked dependencies. Additionally, documentation content validation in scripts/verify-rsr.sh is case-sensitive, which risks failing checks if documentation headers use Title Case. No automated tests were provided to validate these script modifications.

About this PR

  • The PR lacks automated tests for the modified shell scripts. Given the critical nature of release and compliance scripts, consider adding unit or integration tests to verify file paths and logic (e.g., grep commands) behave as expected with the new file format.

Test suggestions

  • Verify release.sh correctly prompts for and stages CHANGELOG.adoc during the release flow.
  • Verify verify-rsr.sh successfully identifies the presence of all required top-level .adoc documentation files.
  • Verify verify-rsr.sh correctly performs grep operations on README.adoc and CONTRIBUTING.adoc.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify release.sh correctly prompts for and stages CHANGELOG.adoc during the release flow.
2. Verify verify-rsr.sh successfully identifies the presence of all required top-level .adoc documentation files.
3. Verify verify-rsr.sh correctly performs grep operations on README.adoc and CONTRIBUTING.adoc.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread scripts/release.sh Outdated
Comment thread scripts/verify-rsr.sh
check "Contribution guidelines clear" "grep -q 'TPCF\|perimeter' CONTRIBUTING.md || grep -q 'contribution' CONTRIBUTING.md"
check "TPCF documented" "[ -f docs/TPCF.adoc ]"
check "Perimeter 3 (Community Sandbox) open" "grep -q 'Community Sandbox' docs/TPCF.adoc"
check "Contribution guidelines clear" "grep -q 'TPCF\|perimeter' CONTRIBUTING.adoc || grep -q 'contribution' CONTRIBUTING.adoc"

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.

⚪ LOW RISK

Suggestion: Documentation checks should be case-insensitive for better reliability. Update line 108 of scripts/verify-rsr.sh to use 'grep -qi' for both pattern checks in the 'Contribution guidelines clear' validation.

Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@hyperpolymath
hyperpolymath merged commit 6f14ecd into main Aug 26, 2026
30 of 40 checks passed
@hyperpolymath
hyperpolymath deleted the fix/repoint-scripts-at-adoc branch August 26, 2026 17:10
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