Skip to content

Fix review dependencies on buffered inline comments - #77232

Merged
pelikhan merged 5 commits into
mainfrom
copilot/fix-review-comment-submission
Nov 13, 2026
Merged

pelikhan merged 5 commits into
mainfrom
copilot/fix-review-comment-submission

Conversation

Copilot AI commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Dependencies: Allow same-PR comments to be submitted with their dependent review; other dependents still wait for publication.
  • Failure handling: Suppress incomplete review batches and preserve required comments during fallback.
  • Documentation: Clarify review dependency and batching behavior.

Copilot AI and others added 3 commits November 12, 2026 22:56
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>
Copilot AI changed the title [WIP] Fix submit_pull_request_review handling of buffered comments Fix review dependencies on buffered inline comments Nov 12, 2026
Copilot AI requested a review from pelikhan November 12, 2026 23:03
@pelikhan
pelikhan marked this pull request as ready for review November 12, 2026 23:21
Copilot AI adaptive review requested due to automatic review settings November 12, 2026 23:21
@github-actions

Copy link
Copy Markdown
Contributor

🔬 Test Quality Sentinel is analyzing test quality on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR Specification Reviewer has started processing this pull request

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Design Decision Gate 🏗️ is checking for design decision records on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor

✂️ Ponytail Reviewer has started processing this pull request

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

Copy link
Copy Markdown
Contributor

🔎 PR Code Quality Reviewer is reviewing code quality for this pull request...

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.

🟡 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)

Comment on lines +1052 to +1053
const failedDependency = result && (!result.success || result.skipped) && dependencyPlan.prerequisites[i].size > 0;
return key && !published.has(key) && (dependsOnOwnComment || failedDependency) ? [key] : [];
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot run pr-finisher skill

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

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

@pelikhan
pelikhan merged commit 198883b into main Nov 13, 2026
34 checks passed
@pelikhan
pelikhan deleted the copilot/fix-review-comment-submission branch November 13, 2026 04:55
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

submit_pull_request_review with depends-on a buffered review comment is skipped, and the comment is posted in a footer-only review

3 participants