Repository navigation
Fix review dependencies on buffered inline comments - #77232
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🔬 Test Quality Sentinel is analyzing test quality on this pull request... |
|
🚀 PR Specification Reviewer has started processing this pull request |
|
🔍 Design Decision Gate 🏗️ is checking for design decision records on this pull request... |
|
✂️ Ponytail Reviewer has started processing this pull request |
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
There was a problem hiding this comment.
🟡 Changes recommended
The output guard can publish comments without their review body when a prerequisite is still pending or dependencies are invalid, risking body loss and requiring regression coverage.
1 open issue
What changed in this PR
This PR updates gh-aw safe-output processing so a review can publish its body together with buffered inline comments it depends on, addressing #77220.
Changes:
- Allow same-PR comment prerequisites to participate in their review’s submission while other dependents wait for publication.
- Add batch suppression and fallback checks to preserve required inline comments.
- Add regression coverage and document review dependency behavior.
| File | Description |
|---|---|
docs/src/content/docs/specs/safe-outputs-specification.md |
Defines the same-review publication exception. |
docs/src/content/docs/reference/safe-outputs.md |
Explains dependencies, batching, and fallback behavior. |
actions/setup/js/submit_pr_review.cjs |
Exposes review target resolution to dependency processing. |
actions/setup/js/safe_output_outcomes.test.cjs |
Adds end-to-end review dependency scenarios. |
actions/setup/js/safe_output_handler_manager.cjs |
Coordinates prerequisite handling and protected review batches. |
actions/setup/js/safe_output_dependencies.test.cjs |
Tests provisional acceptance of buffered comment prerequisites. |
actions/setup/js/safe_output_dependencies.cjs |
Allows eligible comments to unblock their own review. |
actions/setup/js/pr_review_buffer.test.cjs |
Tests required-comment preservation during fallback. |
actions/setup/js/pr_review_buffer.cjs |
Guards required comments and selectively drains review batches. |
Review effort: Balanced (auto)
| const failedDependency = result && (!result.success || result.skipped) && dependencyPlan.prerequisites[i].size > 0; | ||
| return key && !published.has(key) && (dependsOnOwnComment || failedDependency) ? [key] : []; |
|
@copilot run pr-finisher skill |
Finisher checks: formatting and lint passed; impacted Go tests found no changed Go files. JavaScript CI passed on this HEAD. One review thread remains unresolved, so the PR is not ready to merge. Earlier review-automation runs failed on a missing firewall checksum pin; the base merge includes that pin, but those runs have not been reverified. |
|
🎉 This pull request is included in a new release. Release: |

A review depending on its own buffered comment could never become ready, causing the comment to be published in a footer-only review while the review body was lost.