Skip to content

Add missing 'title' field in check run error handler output dicts - #1432

Open
sbrunner wants to merge 1 commit into
masterfrom
fix-check-run-title-missing
Open

Add missing 'title' field in check run error handler output dicts#1432
sbrunner wants to merge 1 commit into
masterfrom
fix-check-run-title-missing

Conversation

@sbrunner

Copy link
Copy Markdown
Member

Summary

Add the required title field to output dicts in three check run error handlers in process_queue.py, and fix a stray extra closing parenthesis.

Context

The GitHub Checks API returns 422 Unprocessable Entity when updating a check run with an output dict that lacks a title field. This caused cascading failures: when a transient httpx.ReadError occurred during the in_progress update, the error handler tried to mark the check run as failure, but that request also failed with 422 because title was missing.

Observed in production: https://geoservices-int.camptocamp.com/github/logs/2593757

Implementation Details

  • Added "title": "Job failed" to the three error-handler output dicts (lines ~608, ~643, ~673).
  • Fixed extra ) in the logs URL of the generic Exception handler.
  • The success-path output dict (line ~518) already had title and was not affected.

Impact/Risks

  • Low risk: only affects error-handling paths that were previously broken.
  • No backward compatibility concerns.

The GitHub Checks API requires a 'title' field when providing 'output'
in check run update requests. Three error handlers were missing this
field, causing 422 Unprocessable Entity errors when trying to mark
failed jobs on the check run.

Also fix a stray extra closing parenthesis in one error message URL.
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