Skip to content

Don't fail Compose performance review workflow on transient Gemini 50… - #1746

Merged
MagicalMeghan merged 2 commits into
mainfrom
MagicalMeghan-patch-1
Dec 1, 2026
Merged

MagicalMeghan merged 2 commits into
mainfrom
MagicalMeghan-patch-1

Conversation

@MagicalMeghan

@MagicalMeghan MagicalMeghan commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Prevents the compose-performance-review GitHub Actions job from failing PRs when the Gemini API returns transient capacity/availability errors (e.g., 503 Service Unavailable / "This model is currently experiencing high demand").

  • Sets continue-on-error: true on Run Jetpack Compose Performance Skill (gemini_review).
  • Adds a Check Gemini Review Failure step that inspects steps.gemini_review.outputs.error and the tail of gemini-artifacts/stderr.log:
    • Emits a ::warning:: and job summary note and exits 0 for transient capacity/availability errors (503/429, UNAVAILABLE, RESOURCE_EXHAUSTED, RetryableQuotaError, experiencing high demand, model is overloaded, service unavailable, TypeError: fetch failed).
    • Still exits 1 for non-transient failures (e.g., auth/config errors) so real workflow breakage isn't hidden.
  • Guards Post Findings on Pull Request with steps.gemini_review.outcome == 'success' so failed runs never post partial comments.

…3/high-demand errors

Prevents the `compose-performance-review` GitHub Actions job from failing PRs when the Gemini API returns transient capacity/availability errors (e.g., `503 Service Unavailable` / `"This model is currently experiencing high demand"`).

- Sets `continue-on-error: true` on `Run Jetpack Compose Performance Skill` (`gemini_review`).
- Adds a `Check Gemini Review Failure` step that inspects `steps.gemini_review.outputs.error` and the tail of `gemini-artifacts/stderr.log`:
  - Emits a `::warning::` and job summary note and exits `0` for transient capacity/availability errors (`503`/`429`, `UNAVAILABLE`, `RESOURCE_EXHAUSTED`, `RetryableQuotaError`, `experiencing high demand`, `model is overloaded`, `service unavailable`, `TypeError: fetch failed`).
  - Still exits `1` for non-transient failures (e.g., auth/config errors) so real workflow breakage isn't hidden.
- Guards `Post Findings on Pull Request` with `steps.gemini_review.outcome == 'success'` so failed runs never post partial comments.
@MagicalMeghan
MagicalMeghan requested a review from a team as a code owner December 1, 2026 16:37
jobs:
build:
name: build
name: build / build

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this because build / build (required by branch protection) never triggers on PRs that only touch .github/workflows/ — default-check.yml ran as build, leaving build / build permanently stuck on Expected — Waiting for status to be reported. Renaming the job to build / build satisfies the required check.

@MagicalMeghan
MagicalMeghan merged commit 396b91a into main Dec 1, 2026
9 checks passed
@MagicalMeghan
MagicalMeghan deleted the MagicalMeghan-patch-1 branch December 1, 2026 17:45
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