Skip to content

Prevent review failures from failing the calling workflow#52

Merged
derekmisler merged 1 commit intodocker:mainfrom
derekmisler:never-fail-the-workflow
Feb 24, 2026
Merged

Prevent review failures from failing the calling workflow#52
derekmisler merged 1 commit intodocker:mainfrom
derekmisler:never-fail-the-workflow

Conversation

@derekmisler
Copy link
Copy Markdown
Contributor

@derekmisler derekmisler commented Feb 23, 2026

Summary

Adds continue-on-error: true to the PR review steps in the workflow to prevent review failures from blocking the calling workflow. Also removes complex review verification logic that was attempting to detect token expiry issues.

Changes

  • .github/workflows/review-pr.yml: Added continue-on-error: true to both PR review steps (member and slash-command paths)
  • review-pr/action.yml: Removed 77 lines of review verification logic including timestamp tracking, review posting verification, and conditional reaction handling based on review state
  • review-pr/action.yml: Simplified post-summary step to show "Review completed" instead of "Review posted successfully" and removed token expiry fallback comments
  • review-pr/action.yml: Removed review-posted output that was tracking verification status

Breaking Changes

  • Removed output: review-posted output is no longer available from the review-pr action
  • Changed behavior: Review failures will no longer fail the workflow; they will be logged but allow the workflow to continue

How to Test

  • Trigger a PR review that would normally fail (e.g., with invalid inputs or API errors)
  • Verify the workflow completes successfully despite the review failure
  • Check that appropriate error messages are still logged and visible in the workflow run

@derekmisler
Copy link
Copy Markdown
Contributor Author

/describe

@docker-agent
Copy link
Copy Markdown
Contributor

docker-agent bot commented Feb 23, 2026

✅ PR description has been generated and updated!

@derekmisler derekmisler marked this pull request as ready for review February 23, 2026 23:56
@derekmisler derekmisler requested a review from a team as a code owner February 23, 2026 23:56
Copy link
Copy Markdown
Contributor

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

APPROVED - No issues found.

This PR appropriately adds continue-on-error: true to both PR review steps in the workflow. The change is straightforward, safe, and accomplishes its stated goal of preventing review failures from blocking the calling workflow. The implementation is consistent across both the member and non-member review paths.

@derekmisler derekmisler force-pushed the never-fail-the-workflow branch from a5c8b42 to a1230a7 Compare February 24, 2026 00:00
@derekmisler derekmisler marked this pull request as draft February 24, 2026 00:00
@derekmisler derekmisler marked this pull request as ready for review February 24, 2026 00:00
@derekmisler derekmisler force-pushed the never-fail-the-workflow branch from a1230a7 to a432aa3 Compare February 24, 2026 00:01
@docker docker deleted a comment from github-actions bot Feb 24, 2026
Copy link
Copy Markdown
Contributor

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

✅ This PR looks good! The changes correctly add continue-on-error: true to prevent review failures from blocking the workflow.

Minor Observation

The jq command refactoring (replacing --arg with direct variable substitution) technically deviates from jq best practices, but poses minimal practical risk since PRE_REVIEW_TS is a controlled timestamp variable. The code will work correctly under normal conditions.

Signed-off-by: Derek Misler <derek.misler@docker.com>
@derekmisler derekmisler force-pushed the never-fail-the-workflow branch from a432aa3 to 3cbf6c7 Compare February 24, 2026 00:03
@docker docker deleted a comment from github-actions bot Feb 24, 2026
@derekmisler derekmisler marked this pull request as draft February 24, 2026 00:03
@derekmisler derekmisler marked this pull request as ready for review February 24, 2026 00:03
Copy link
Copy Markdown
Contributor

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

✅ This PR successfully simplifies the review workflow by removing non-functional verification logic and adding continue-on-error to prevent review failures from blocking calling workflows.

Analysis

I reviewed the changes and found that the removed code (review-posted output, verify-review step, timestamp recording) was either non-functional or redundant:

  • The review-posted output referenced a non-existent verify-review step output
  • The timestamp recording was never actually used
  • The review verification logic relied on steps that don't exist in the current architecture

The PR correctly delegates review posting verification to the cagent agent itself, which handles it internally. The continue-on-error: true addition is appropriate for ensuring workflow resilience.

Note: One minor breaking change: The review-posted output was removed from the action's public interface. While this output was non-functional, any external workflows referencing it will need to be updated to use the exit-code output instead.

@derekmisler derekmisler marked this pull request as draft February 24, 2026 00:09
@derekmisler derekmisler marked this pull request as ready for review February 24, 2026 00:09
@docker docker deleted a comment from github-actions bot Feb 24, 2026
Copy link
Copy Markdown
Contributor

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This PR introduces changes that improve workflow resilience but also creates potential issues around observability and backward compatibility.

Critical Concern: The removal of the review-posted output is a breaking API change that could impact existing workflows consuming this action.

Notable Concern: The combination of continue-on-error: true and removal of verification logic means workflows will succeed even when reviews fail to post, reducing observability.

@docker docker deleted a comment from github-actions bot Feb 24, 2026
@derekmisler derekmisler enabled auto-merge (squash) February 24, 2026 00:18
@derekmisler
Copy link
Copy Markdown
Contributor Author

/describe

@docker-agent
Copy link
Copy Markdown
Contributor

docker-agent bot commented Feb 24, 2026

✅ PR description has been generated and updated!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the PR review workflow to make it more resilient by preventing review failures from blocking calling workflows. It adds continue-on-error: true to review steps and removes complex verification logic that attempted to detect token expiry issues.

Changes:

  • Added continue-on-error: true to PR review steps in both auto-review and manual-review jobs
  • Removed review verification logic that tracked timestamps and verified review posting
  • Simplified post-review reactions to only distinguish between failure (confused) and success (thumbs up)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
.github/workflows/review-pr.yml Added continue-on-error: true to both review step invocations to prevent workflow failures
review-pr/action.yml Removed review-posted output, pre-review timestamp tracking, review verification step, and simplified reaction logic; changed token usage in post-review steps from github.token to resolved token

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@derekmisler derekmisler merged commit 7fc3032 into docker:main Feb 24, 2026
26 checks passed
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