Skip to content

NAS-142202 / 27.0.0-BETA.1 / Name the API error when the reviewer died before producing output - #10

Merged
william-gr merged 1 commit into
masterfrom
fix/surface-api-errors
Aug 17, 2026
Merged

NAS-142202 / 27.0.0-BETA.1 / Name the API error when the reviewer died before producing output#10
william-gr merged 1 commit into
masterfrom
fix/surface-api-errors

Conversation

@william-gr

Copy link
Copy Markdown
Contributor

Summary

A truenas-file-manager review died in 415ms with zero cost: the org API key had hit its monthly usage limit (API Error: 400 You have reached your specified API usage limits. You will regain access on 2026-09-01...). The gate's annotation said only "the review produced no structured output — check the review step above", while the execution log's terminal result entry named the cause exactly.

Now, when there is no structured output, check-review-threshold.mjs reads the execution log (new EXECUTION_FILE env, from the action's execution_file output) and, if the reviewer terminated on an API error (terminal_reason: "api_error" / api_error_status), the annotation carries the API's own message and says plainly this is not a finding in the PR.

Behavior is otherwise unchanged: fails closed with the existing guidance when the log is missing or shows no API error, and scoring with findings present is untouched (verified on all three paths locally, including a replica of the real failure artifact).

A usage-limit 400 killed a file-manager review in 415ms, and the gate
answered "produced no structured output — check the review step",
sending the reader hunting for a cause the execution log's result
entry already stated. When there are no findings, read that entry and
put the API error text in the annotation. Still fails closed either
way.
@bugclerk bugclerk changed the title Name the API error when the reviewer died before producing output NAS-142202 / 27.0.0-BETA.1 / Name the API error when the reviewer died before producing output Aug 17, 2026
@bugclerk

Copy link
Copy Markdown
Contributor

@william-gr
william-gr merged commit 116d4ff into master Aug 17, 2026
6 of 8 checks passed
@william-gr
william-gr deleted the fix/surface-api-errors branch August 17, 2026 10:00
@bugclerk

Copy link
Copy Markdown
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@iXsystems iXsystems locked as resolved and limited conversation to collaborators Aug 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants