Skip to content

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

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

fix(scripts): repoint checks at the .adoc files that exist#56
hyperpolymath merged 1 commit 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: README.md->README.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: README.md->README.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

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: bee43d2c-a0b3-493f-99af-4d379e72aa48

📥 Commits

Reviewing files that changed from the base of the PR and between a76ff82 and 281eb22.

📒 Files selected for processing (1)
  • install.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 (1)
install.sh (1)

103-103: LGTM!


📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Installation now correctly includes the available AsciiDoc README file when present.

Walkthrough

The installer now checks for README.adoc and copies it when present. The previous README.md copy path was removed.

Changes

Documentation installation

Layer / File(s) Summary
Update documentation copy path
install.sh
copy_files now conditionally copies README.adoc instead of README.md.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 281eb

The change only repoints an installation check from README.md to the existing README.adoc file; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: metadatastician

Poem

A rabbit checks the reading file
README.adoc hops into place
The installer follows its trail
README.md leaves no trace
Clean docs now join the case

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the README.md to README.adoc updates and the affected script checks.
Title check ✅ Passed The title clearly summarises the main change: repointing script checks to existing .adoc files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
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.
✨ 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

@sonarqubecloud

Copy link
Copy Markdown

@codacy-production

Copy link
Copy Markdown

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

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 updates the install.sh script to reference README.adoc instead of README.md, ensuring compatibility with the project's migration to AsciiDoc. Codacy analysis indicates the change is up to standards. However, there is a significant discrepancy between the PR description, which claims to address 56 checks across 18 repositories, and the provided diff, which contains only one change in a single file. Furthermore, while the repointing is correct, no automated tests were included to verify the script's behavior with the new file extension.

About this PR

  • There is a mismatch between the PR description and the actual changes. The description outlines a wide-scale fix across 18 repositories and 56 checks, but the diff only shows one change in install.sh. Please verify if other changes were intended to be part of this PR.
  • No automated unit or integration tests were provided to verify that the script correctly handles the existence and copying of the .adoc file. Consider adding basic verification to ensure the installation process remains robust.

Test suggestions

  • Verify that README.adoc is successfully copied to the installation directory when it exists.
  • Verify that the installation script does not fail if README.adoc is absent.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that README.adoc is successfully copied to the installation directory when it exists.
2. Verify that the installation script does not fail if README.adoc is absent.

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

@hyperpolymath
hyperpolymath merged commit 2e3be02 into main Aug 26, 2026
19 of 34 checks passed
@hyperpolymath
hyperpolymath deleted the fix/repoint-scripts-at-adoc branch August 26, 2026 16:17
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