Skip to content

Read an Absolute-URL Thread Link in pr_review.py's Overview Sections - #2678

Merged
ptr727 merged 3 commits into
developfrom
feature/auto-2676
Oct 9, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/auto-2676

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Widen DISCUSSION_LINK in scripts/pr_review.py so an open-findings entry linking its thread by an absolute pull request URL ending in #discussion_r<id> reads as linked, keeping the fragment-relative form.
  • The URL's pull request is not compared with the one being read. An id linking a thread this pull request does not carry is still counted unthreaded by open_entry_ids against the thread ids, so the widening hides no finding.
  • Add two tests with a constructed example-owner/example-repo URL: every entry linked absolutely prints no FINDINGS WITH NO THREAD block, and an absolutely linked id no thread carries is still counted. Both fail with the fix reverted.

Closes on promotion: #2676

Verification

  • python3 -m unittest discover -s tests -p 'test_*.py': 2411 tests, OK.
  • Fix reverted: both new tests fail.
  • ruff format --check, ruff check, mypy, spec/validate.py: clean.
  • local-strict-review pass recorded on the pushed content.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 9, 2026 13:06
Copilot's open-findings section now links each entry to its thread by an
absolute pull request URL ending in #discussion_r<id>, which the
relative-only DISCUSSION_LINK pattern did not match, so every such entry
read as unlinked and status printed a false FINDINGS WITH NO THREAD block.

The pattern now also accepts a github.com pull request URL before the
fragment. The URL's pull request is not compared with the one being read,
since an id no thread here carries is still counted unthreaded by its id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Give the test helper a link base, defaulting to the relative form, so the
new tests write absolute links directly instead of replacing the relative
ones after the fact.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 9, 2026 20:11
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

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 11 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 139bd16f-35ae-46e2-8001-a4ebcc6f3ad0

📥 Commits

Reviewing files that changed from the base of the PR and between eef6e5d and 84a9eac.


📒 Files selected for processing (2)
  • scripts/pr_review.py
  • tests/test_pr_review.py


  • 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.

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

🟢 Approval recommended

No approval-blocking issues were identified; the remaining comment is a minor documentation nit.

1 open finding
What changed in this PR

Updates pr_review.py to recognize absolute pull-request discussion URLs while preserving relative links.

Changes:

  • Expanded discussion-link parsing.
  • Added regression tests for linked and unthreaded absolute URLs.
File Description
tests/​test_pr_review.py Covers absolute-link behavior.
scripts/​pr_review.py Recognizes absolute discussion URLs.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/test_pr_review.py Resolved
@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@eef6e5d). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2678   +/-   ##
==========================================
  Coverage           ?   59.58%           
==========================================
  Files              ?       16           
  Lines              ?     8317           
  Branches           ?        0           
==========================================
  Hits               ?     4956           
  Misses             ?     3361           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 59.58% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 1a44ea4 into develop Oct 9, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/auto-2676 branch October 9, 2026 20:34
ptr727 added a commit that referenced this pull request Oct 9, 2026
…ain (#2683)

## Summary

Promotes develop to main. It carries five changes:

- #2673 Adds the removal of the `push:` block to the Docker delta list
in `docs/reusable-workflows.md` "Adopting the Release Chain".
- #2675 Mounts a snapshot of tracked files, rather than the live
checkout, into `docker_lint.py` lint containers, so git-ignored files
and build output never reach a linter.
- #2684 Drops tracked files deleted from disk from `docker_lint.py`'s
lint targets, answering this pull request's review finding.
- #2678 Reads an absolute-URL thread link in `pr_review.py`'s overview
sections.
- #2661 Stops calling closed issues #699 and #700 open in
`docs/fleet-map.md`.

Fixes #1497
Fixes #1090
Fixes #1185
Fixes #2676
Fixes #2659

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants