Skip to content

Bring the Renamed Shell Scripts to the Shell and Prose Style Rules - #1102

Merged
ptr727 merged 3 commits into
developfrom
fix/shell-style-1101
Oct 30, 2026
Merged

ptr727 merged 3 commits into
developfrom
fix/shell-style-1101

Conversation

@ptr727

@ptr727 ptr727 commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

The 3.23 promotion pull request #1098 reads every renamed shell script in full against main, so the comments those scripts kept unchanged reached the prose and shell style gates there for the first time.

No executable line changes. git diff -w shows only comment and blank lines.

Verification

  • prose_lint.py --diff origin/develop, with --check sentence-length and without it: clean apart from comment-added, which the comments label covers.
  • prose_lint.py --diff origin/main Docker RegressionTests/regression-test.sh, which is the promotion scope: clean.
  • shellcheck and shfmt -d over Docker/*.sh and RegressionTests/*.sh: clean.
  • Local strict review: round 1 found five comment statements that were untrue of the code, fixed in b708a52. Round 2 found nothing. The Copilot fixes in f7fa39d had their own pass, which found nothing.

Relates to #1101, which closes when the promotion merges.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 30, 2026 08:15
Each Docker script gets a header comment above `set -Eeuo pipefail`, and the comments in
`regression-test.sh`, `build.sh`, and `counters.sh` are rewritten one sentence per line, so the
promotion diff against main passes the prose gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 30, 2026
Copilot AI lite review requested due to automatic review settings October 30, 2026 15:24
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

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

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d68a393d-0f4a-4abf-9edb-e17740c52ae9
Commits

Reviewing files that changed from the base of the PR and between b708a52 and f7fa39d.

Files selected for processing: 2
  • Docker/build.sh
  • RegressionTests/regression-test.sh

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 7d4b2e0a-6503-440b-9436-87b1f0042cca
Commits

Reviewing files that changed from the base of the PR and between 303ef98 and b708a52.

Files selected for processing: 6
  • Docker/build.sh
  • Docker/counters.sh
  • Docker/install-debug-tools.sh
  • Docker/test.sh
  • Docker/version.sh
  • RegressionTests/regression-test.sh

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

Comments now describe the tasks performed by Docker helper scripts and the regression-test harness. The commands, processing options, and other executable behavior remain unchanged.

Changes: Script documentation

Layer / File(s) Summary
Docker helper script comments
Docker/build.sh, Docker/counters.sh, Docker/install-debug-tools.sh, Docker/test.sh, Docker/version.sh
Comments describe each script’s build, test, monitoring, tool installation, or version-reporting tasks. The dotnet test --project command is unchanged.
Regression harness comments
RegressionTests/regression-test.sh
Comments describe harness flow, dataset setup and cleanup, processing options, run metadata, and plugin build and execution steps. Executable code is unchanged.

Priority: Low

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

Change: Other

Possibly related issues

  • ptr727/PlexCleaner#1101 — The issue describes the same Docker script comments and regression-test prose updates.
  • ptr727/PlexCleaner#1085 — The handoff identifies #1101 as a required fix and names the same comment changes.

Possibly related PRs

  • ptr727/PlexCleaner#1065 — It changes the same scripts and adds the headers and argument handling described by this PR.
Merge Risk: Minimal · previous review b708a

The changes clarify script comments without reported executable changes. No actionable merge-blocking risk is identified; merge after normal checks pass.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: updating renamed shell scripts to follow shell and prose style rules.
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 with cyclomatic complexity of at least 2. Documentat…
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

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 4 functions across 6 files.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can route each severity your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Align renamed shell scripts with shell and prose style rules

📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Add required header comments to four Docker scripts before their strict-mode settings.
• Rewrite Docker and regression-harness comments to satisfy prose rules and accurately describe
 current behavior.
• Leave executable lines unchanged so the promotion's full-file lint checks can pass.
Diagram

graph TD
  D["Docker scripts"] --> P["Prose lint"] --> C["Promotion checks"]
  R["Regression harness"] --> P
Loading
High-Level Assessment

Correcting the comments in place is appropriate: it preserves behavior while addressing the style failures exposed by the promotion diff. Excluding renamed scripts from lint would hide the issue rather than resolve it.

Files changed (6) +46 / -54

Documentation (6) +46 / -54
build.shAdd a script header and clarify the test-command comment +4/-6

Add a script header and clarify the test-command comment

• Adds a purpose comment before strict mode. Condenses the explanation for using 'dotnet test --project' while retaining the relevant SDK and builder-directory context.

Docker/build.sh

counters.shRewrite host invocation examples as sentences +2/-3

Rewrite host invocation examples as sentences

• Rephrases the live-monitor and pass-through command examples to follow prose style. The command behavior is unchanged.

Docker/counters.sh

install-debug-tools.shDescribe the debug-tools installer before strict mode +2/-0

Describe the debug-tools installer before strict mode

• Adds a header comment identifying the tools installed into the final image.

Docker/install-debug-tools.sh

test.shDescribe the container test script before strict mode +2/-0

Describe the container test script before strict mode

• Adds a header comment explaining that the script runs PlexCleaner commands against test media.

Docker/test.sh

version.shDescribe the version-reporting script before strict mode +2/-0

Describe the version-reporting script before strict mode

• Adds a header comment listing the version information printed inside the container.

Docker/version.sh

regression-test.shBring regression-harness comments in line with prose rules +34/-45

Bring regression-harness comments in line with prose rules

• Rewrites the dataset, results, plugin, and processing explanations as clearer sentences and removes retired-flow narrative. Corrects the documented run order without changing executable lines.

RegressionTests/regression-test.sh

Copilot AI 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.

🟡 Changes recommended

Active nit findings require replacing misleading header comments with rationale for strict-mode error handling and correcting the reduced-corpus output-path description.

6 open issues
What changed in this PR

This pull request updates comments in six renamed shell scripts to comply with the repository’s shell and prose style rules without changing executable behavior.

Changes:

  • Adds rationale comments above strict-mode setup in Docker scripts.
  • Rewrites regression, counters, and build-script comments as concise, sentence-based prose.
  • Removes outdated regression-flow narrative and clarifies dataset-processing details.
File Review notes
RegressionTests/​regression-test.sh Nit: Explain the purpose of strict mode, remove the flow-summary header, document the reduced-corpus suffix, and accurately describe dataset provisioning and restoration.
Docker/​version.sh Nit: Replace the file summary with a rationale for strict mode and failing fast on version-inspection errors.
Docker/​test.sh Nit: Replace the file summary with a rationale for strict mode and failing fast on test-command errors.
Docker/​install-debug-tools.sh Nit: Replace the file summary with a rationale for strict mode and failing fast on installation errors.
Docker/​counters.sh Nit: Explain the rationale for default monitor selection and preservation of arbitrary verbs, or remove redundant comments.
Docker/​build.sh Nit: Replace the file summary with a rationale for strict mode and failing fast on build and test errors.

Review effort: Lite

Comment thread Docker/build.sh Resolved
Comment thread Docker/install-debug-tools.sh Resolved
Comment thread Docker/test.sh Resolved
Comment thread Docker/version.sh Resolved
Comment thread RegressionTests/regression-test.sh Resolved
Comment thread RegressionTests/regression-test.sh Resolved
The shell codestyle places set -Eeuo pipefail after any header comment and requires none, while the comment rules forbid a file summary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 30, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head f7fa39df154a779bde0f9abab3dbfb9db59685c5, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 7dfff29 into develop Oct 30, 2026
23 checks passed
@ptr727
ptr727 deleted the fix/shell-style-1101 branch October 30, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants