Skip to content

Conversation

@cfsmp3
Copy link
Contributor

@cfsmp3 cfsmp3 commented Dec 27, 2025

Summary

  • Add retry logic to the final GitHub status update when tests complete

Problem

When a test finishes (either successfully or with failures), the Sample Platform updates the GitHub commit status. However, if this API call fails (rate limiting, network issues, etc.), the status remains stuck in "pending" showing "Tests queued" on GitHub even though the test actually completed.

This was observed on CCExtractor/ccextractor#1913 where the Linux test completed with results visible on the Sample Platform, but GitHub still showed "Tests queued".

Solution

Apply the same retry logic we added to mark_test_failed() in PR #976 to the normal test completion path in progress_type_request().

The status update now uses retry_with_backoff() with 3 retries and 2-second initial backoff.

Test plan

  • Existing test_progress_reporter_finish_type passes
  • isort check passes

🤖 Generated with Claude Code

The final GitHub status update in progress_type_request() was not using
retry logic, causing tests to complete but remain stuck in "pending" state
on GitHub if the status update failed (e.g., due to rate limiting or
network issues).

This is the same fix applied to mark_test_failed() in PR #976, now applied
to the normal test completion path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sonarqubecloud
Copy link

@cfsmp3 cfsmp3 merged commit 6b211b8 into master Dec 27, 2025
6 checks passed
@cfsmp3 cfsmp3 deleted the fix/retry-final-status-update branch December 27, 2025 14:29
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