Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Failed executions can appear as successful #7

Description

@meletis

We notice that things can fail if the PR is a big one, but the problem is that the workflow is not marked as failed in these cases.

In fact, it shows up as successful:

Starting review for PR #74
Repository: *****/******
Action: opened
Environment variable GITHUB_WEBHOOK_SECRET not found, keeping placeholder
Fetching diff content from GitHub API...
Retrieved diff content (165308 chars)
Calling reviewDiff() for job action-1763643692260-74
[Amp] Starting thread...
[Amp] Started thread: T-b25191b6-147d-4a6d-84b5-a547333420af
[Amp] Review completed successfully
Error starting thread: Error: Amp review failed
[Amp] Iterator completed
Review job action-1763643692260-74 failed with exception: Error: Failed to start thread: Error: Amp review failed
    at reviewDiff (file:///app/dist/review/reviewer.js:70:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async processReview (file:///app/dist/github/process-review.js:73:30)
    at async main (file:///app/dist/bin/review-action.js:26:9)
Review completed successfully

Is this intentional?

Activity

  1. Felipe-RA commented on Nov 24, 2025

    @Felipe-RA

    Hi, this has happened to me as well.

    Although this review was just a few lines of code, so it does not seem to be a problem related to how big the PR is.

    Starting review for PR #71
    Repository: #######
    Action: opened
    Environment variable GITHUB_WEBHOOK_SECRET not found, keeping placeholder
    Fetching diff content from GitHub API...
    Retrieved diff content (2359 chars)
    Calling reviewDiff() for job action-1764001324044-71
    [Amp] Starting thread...
    [Amp] Started thread: T-dbe51b33-7ef7-4862-a3e3-dbb4dae5741a
    [Amp] Review completed successfully
    Error starting thread: Error: Amp review failed
    [Amp] Iterator completed
    Review job action-1764001324044-71 failed with exception: Error: Failed to start thread: Error: Amp review failed
        at reviewDiff (file:///app/dist/review/reviewer.js:70:15)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async processReview (file:///app/dist/github/process-review.js:73:30)
        at async main (file:///app/dist/bin/review-action.js:26:9)
    Review completed successfully
  2. Felipe-RA commented on Nov 24, 2025

    @Felipe-RA

    Ok so this was blocking multiple Amp reviews in one of my repos due to a specific edge case I identified:

    When the AI agent uses only toolbox functions (leave_inline_comment, leave_general_comment) without returning additional text, result becomes an empty string. Since empty strings are falsy in JavaScriptt, the check failed even though the review succeeded (thread was created, comments were written to the JSONL file).

    I checked the internals, downloaded the Docker image locally, reproduced the bug, and confirmed the fix resolves the issue.

    Created PR #8 with the fix.

    @sayansisodiya @karlclement

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions