Skip to content

Conversation

@varin-nair-factory
Copy link
Collaborator

Problem

The update-comment-link.ts step fails with exit code 1 when the tracking comment (created at the start of a Droid run) no longer exists by the time the job finishes. This can happen when:
• A user manually deletes the comment
• GitHub's spam filter removes it
• Another automation cleans it up

This causes the entire workflow to be marked as failed even though the actual review/action completed successfully.

Solution

Add graceful handling for 404 errors when fetching the tracking comment. When the comment is not found:
• Log an informational message explaining the situation
• Exit with code 0 (success) instead of failing

This ensures the workflow status reflects the actual outcome of the Droid execution rather than failing on a non-critical post-processing step.

@varin-nair-factory varin-nair-factory self-assigned this Jan 29, 2026
@varin-nair-factory varin-nair-factory merged commit 8f95e2b into dev Jan 29, 2026
4 of 5 checks passed
@varin-nair-factory varin-nair-factory deleted the vn/graceful-exit branch January 29, 2026 19:38
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