Skip to content

ci(ENG-4588): complete a test report check the reporter left in progress - #265

Merged
vgoat21 merged 1 commit into
stagingfrom
joshuavillaltaesp/eng-4588-complete-stuck-report-check-staging
Nov 16, 2026
Merged

vgoat21 merged 1 commit into
stagingfrom
joshuavillaltaesp/eng-4588-complete-stuck-report-check-staging

Conversation

@vgoat21

@vgoat21 vgoat21 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Follow-up to ENG-4588 (CI flakes).

Problem

dorny/test-reporter creates the Tests (Ghidra X) check run, then updates it with the results about half a second later. That update sometimes fails with HttpError: Not Found, because GitHub hasn't made the new check run visible yet.

continue-on-error keeps the build job green, but nothing completes the check run. It stays in progress for good, so the PR never shows all checks finished. PR #264 has three stuck this way: 11.4.3, 12.0.2 and 12.1.3. Every build job passed, and the reporter logged ##[error]HttpError: Not Found right after Updating check run conclusion (success) and output.

Fix

A new step runs only when the report step failed. It:

  1. looks up any Tests (Ghidra X) check run for the PR head commit that isn't completed;
  2. completes it with the outcome of Run tests (success or failure), with a summary pointing at the test step and the results artifact;
  3. retries for up to about 25 s while the check run becomes visible.

The step is also continue-on-error. Like the report, it is display only and can never fail a build.

The lookup uses filter=all. With filter=latest, the endpoint returned no check runs at all for two of PR #264's three stuck checks. With filter=all it finds all three (133192112819, 133192119584, 133191933258).

Testing

  • The workflow parses as YAML, and the step script passes bash -n.
  • The read-only lookup was run by hand against PR fix(ENG-4588): don't let a late status from a cancelled wait resume it #264's head commit and found exactly the three stuck check runs.
  • The completing PATCH runs with the job's GITHUB_TOKEN. That is the same token, from the same app, that the reporter uses to create and update its check runs.
  • The new step only runs when the reporter fails, so it can't be forced on this PR. It is a no-op on a normal run.

dorny/test-reporter creates its check run and updates it with the
results a moment later. That update intermittently 404s, because the new
check run is not visible to the API yet; continue-on-error keeps the job
green, but the check run stays in progress for good, so the PR never
shows all checks finished.

When the report step fails, find any 'Tests (Ghidra X)' check run for the
head commit that is not completed, retrying while it becomes visible, and
complete it with the outcome of the Run tests step. Look them up with
filter=all: with filter=latest the endpoint returned no runs at all for
two of the three stuck checks.
@vgoat21
vgoat21 requested a review from a team as a code owner November 16, 2026 09:39
@vgoat21
vgoat21 merged commit 03da3b9 into staging Nov 16, 2026
28 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.

1 participant