Skip to content

fix(pr-reviews): address the unprocessed review findings of the validate-audit-record change - #2657

Merged
josecelano merged 7 commits into
torrust:developfrom
josecelano:fix/pr-2641-review-follow-up
Oct 26, 2026
Merged

josecelano merged 7 commits into
torrust:developfrom
josecelano:fix/pr-2641-review-follow-up

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Follow-up for the review of #2641 (review 5640012066, submitted 2026-10-24 21:01 UTC, before that pull request merged at 2026-10-25 06:25 UTC, and unprocessed when it merged). The maintainer approved the follow-up: #2641 (comment). No new issue or specification; the work relates to #2606, which #2641 closed.

Finding Change
F1 (Minor) A missing gh now exits 2 and names the commits endpoint, like a failed call; the help text and the skill say gh is needed even with --comments-file; the spec's Risks line is corrected.
F2 (Major) The two tracked __pycache__/*.pyc files are removed and __pycache__/ is git-ignored. The blobs stay in the history of develop.
F3 (Minor) The test that could not fail is replaced by CheckRowTest, which calls check_row with an exact match and with near-miss subjects (other case, prefix, suffix).
F4 (Nit) The failure text names the three sources and keeps "not a commit subject".
F5 (Nit) Stale statements in the archived #2606 spec and evidence file are corrected (completion review, recheck status, "fails on the current code"). related-pr and last-updated-utc were already fixed by the archive.
F6 (Nit) The "11 of 157" wording now says what was counted (the 157 PR-REVIEW.md files that contain the word FIXED) and cites the reviewer's 148 files with a FIXED row. I did not recount it.

The audit record docs/pr-reviews/pr-2641-review/PR-REVIEW.md is added in the last commit.

Validation

  • python3 -m unittest discover -s .github/skills/dev/pr-reviews/process-pr-review/scripts: 9 tests pass. The missing-gh test was red before the fix (FileNotFoundError); the check_row tests guard existing behavior.
  • linter all and the pre-commit hook pass for each commit.

josecelano and others added 4 commits October 26, 2026 15:44
…gh as a usage error

Red: a missing gh raises FileNotFoundError instead of exiting 2. The
near-miss tests replace the one that could not fail and guard existing
behavior.

Co-authored-by: Copilot <[email protected]>
@josecelano
josecelano requested a review from a team as a code owner October 26, 2026 15:50
Copilot AI balanced review requested due to automatic review settings October 26, 2026 15:50

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.

🟢 Approval recommended

The focused changes have no identified blocking regression; the remaining documentation wording correction is non-blocking.

1 open issue
What changed in this PR

This follow-up addresses unprocessed feedback on #2641, which updated the review-audit validator to accept fixes merged outside the local commit range.

Changes:

  • Handles a missing gh during commit lookup and clarifies dependency requirements and validation errors.
  • Adds meaningful rejection tests and ignores Python cache directories.
  • Corrects archived verification records and adds the #2641 review audit.
File Description
project-words.txt Adds pycache to the spelling dictionary.
docs/​pr-reviews/​pr-2641-review/​PR-REVIEW.md Records six findings and their follow-up dispositions.
docs/​issues/​closed/​2606-2278-validate-audit-record-merged-fix-subjects/​manual-verification-evidence.md Corrects recheck status and explains audit counts.
docs/​issues/​closed/​2606-2278-validate-audit-record-merged-fix-subjects/​ISSUE.md Updates completion records, test history, and dependency risks.
.gitignore Ignores Python cache directories.
.github/​skills/​dev/​pr-reviews/​process-pr-review/​SKILL.md Clarifies that captured comments do not remove the gh requirement.
.github/​skills/​dev/​pr-reviews/​process-pr-review/​scripts/​validate-audit-record.py Handles process-launch errors and names accepted subject sources.
.github/​skills/​dev/​pr-reviews/​process-pr-review/​scripts/​test_validate_audit_record.py Tests missing gh and exact versus near-miss subject matching.

Review effort: Balanced

@josecelano josecelano self-assigned this Oct 26, 2026
@josecelano
josecelano requested a review from da2ce7 October 26, 2026 16:40
@josecelano

Copy link
Copy Markdown
Member Author

ACK 5de6253

@josecelano
josecelano merged commit 54eabcb into torrust:develop Oct 26, 2026
21 checks passed
josecelano added a commit that referenced this pull request Oct 26, 2026
…ter its follow-up merged

6295926 docs(pr-reviews): close the loop on the PR 2641 audit after its follow-up merged (Jose Celano)

Pull request description:

  Closes the review loop for #2641 after its follow-up #2657 merged (merge commit `54eabcbf4`), as the process-pr-review skill requires for post-merge feedback.

  - Moves the six rows of `docs/pr-reviews/pr-2641-review/PR-REVIEW.md` from `FOLLOW_UP`/`OPEN` to `FIXED`/`RESOLVED`, with the fixing commit subjects as resolution references and the merge recorded in the Processing Log.
  - The consolidated response is #2641 (comment), and the six threads on #2641 are resolved (a GraphQL fetch shows all six `isResolved: true`).

  Validation: `validate-audit-record.py --pr-number 2641 --base torrust/develop` reports 6 rows, 4 log entries, 0 failures; the pre-commit hook passed.

ACKs for top commit:
  josecelano:
    ACK 6295926

Tree-SHA512: 1c4caa4ad27060531672ba59d2dff9b9a9437e466af5dc391b0dec9c31827643a9ec103b36ea74b3c13ab4a6209e3de16c4bd9e043f05948fd4564ac3bc9adca

@da2ce7 da2ce7 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.

Reviewed at 5de6253f24e765f1b3fdac6c6ce84570dbc088f0 (post-merge). Recomputed from the bytes at the merged head, against the base 3b781c628; the PR merged on 2026-10-26 at 17:59:45Z as 54eabcbf4.

Label: POST_MERGE_FINDINGS — Review requested at 2026-10-26T16:40:00Z; the PR merged before this round ran. The findings below stand at the merged head for a follow-up PR. No ACK follows a merged PR.

Change: both tracked bytecode files are deleted, and the directory ignore rule matches a new cache path. The commit-list lookup catches missing-executable errors and reports exit 2 with the endpoint. The three-source failure text and the comments-file dependency explanation match the code. The ordinary comment-fetch path still has its pre-existing uncaught missing-executable error; the repaired path is specifically commit listing.

Tests: the nine Python tests pass locally with process calls mocked and bytecode disabled. Applying the new tests to the base validator produces the expected missing-executable error; disabling subject rejection in memory makes all three near-miss cases fail. Thus the replacement tests exercise rejection, while the exact-match test protects acceptance. No network or executable API client was used.

Records and bot: the six earlier concerns have corresponding code, test, or text changes. Their audit remains FOLLOW_UP/OPEN before this follow-up merges, as required; PR 2660 performs the later closure. The one bot finding in review 5655168094 is retained as F5, and the first-three/first-two correction is present. Its reply belongs to the captured source thread, which is resolved. The original PR 2641 comment capture is not supplied, so its approval and six external reply URLs cannot be independently authenticated here.

Hygiene and dependencies: seven commits and eleven changed files, including two binary deletions. Subjects are Conventional and scoped; attribution footer lines are present without an inspected prohibition. The closing-keyword scan finds no issue closure. Relative Markdown file targets resolve. This change relies on PR 2655 having archived the spec; the archive-era unchecked checkpoint is historical, not a claim about the eventual state after PR 2660. The description's claim that the PR 2641 audit is in the last commit is stale: it is in 0c8c40eca, followed by two commits.

Findings: none introduced by the scoped implementation.

Checked, no finding: cache removal and ignore behavior, meaningful near-miss rejection, commit-fetch failure mapping, corrected regression-case count, and retaining pending dispositions until the follow-up merge.

Checks

On the loop's compute hub at the merged head, against the base 3b781c628 (receipt server-gates-sojka-490; the PR merged as 54eabcbf4): pre-commit profile gate exit 0 (93 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 16 errors / 4 warnings at the merged head and 16 / 4 at the base re-measured, the same 20 diagnostics by path and category; the audit validator over docs/pr-reviews/pr-2657-review/PR-REVIEW.md with the review comments and commit list captured at gate time: ok, 1 rows, 2 log entries, 0 failures. GitHub checks at this head at posting time: "Publish (Development): completed/skipped; Publish (Release): completed/skipped; Context: completed/success; Unit (stable): completed/success; Layer Boundary Bans: completed/success; Unit (nightly): completed/success; Documented Clippy Allows: completed/success; Workspace Packaging: completed/success; Docker E2E: completed/skipped; Test (Docker) (release): completed/success; Package Coverage (${{ matrix.package }}): completed/skipped; Package Coverage Regression: completed/success; Generate Coverage Report: completed/success; Build on windows-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Discover Package Coverage: completed/success; Docs Lint: completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (stable): completed/success". At posting, develop is 968099d93.

This branch was previously deployed

1 inactive deployment
coverage — 5de6253f Deployed Oct 26, 2026 by josecelano via Generate Coverage Report #2816
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.

3 participants