[PR #1873] [MERGED] Report Bunny provider failures #5328

Closed
opened 2026-10-22 04:15:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1873
Author: @Promansis
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @Promansis

Base: refactor ← Head: feature/bunny-review-provider-failure-status


📝 Commits (1)

  • 3512433 Report Bunny provider failures

📊 Changes

1 file changed (+57 additions, -17 deletions)

View changed files

📝 .github/bunny-review/bunny_review.py (+57 -17)

📄 Description

Linked issue

Closes #

Why this change

  • Prevents Bunny Review from appearing stuck on “running” when the model provider rejects the request, such as an invalid API token.
  • Lets the normal render/post path publish a failed review status instead of aborting before posting anything.

What changed

  • Added provider/model exception handling around the model review passes.
  • On failure, Bunny now writes a review.json with a failing pre-merge check and PR metadata, then exits produce cleanly so render/post can publish the failure.
  • Preserves the existing missing-API-key skipped-review behavior.

Refactor impact

Primary owner:

  • GitHub workflow automation / Bunny Review runner.

Impact areas reviewed:

  • Bunny Review model call failure path.
  • Review JSON rendering and posting path after provider failure.

Boundary notes:

  • No app source, engine, React feature, shared API, Tauri, storage, provider, or remote-runtime product boundary is touched.

Pressure points touched:

  • Bunny Review provider failure handling and generated review status payloads.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Agent ran python3 -m py_compile .github/bunny-review/bunny_review.py.
  • Agent ran pnpm check:docs.
  • Agent smoke-tested the provider failure payload path locally with an openai import stub.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • GitHub workflow failure handling only; no in-app user-discoverable behavior is added.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • N/A. No app UI changes.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1873 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `feature/bunny-review-provider-failure-status` --- ### 📝 Commits (1) - [`3512433`](https://github.com/Pasta-Devs/Marinara-Engine/commit/351243396fe98328e67049d0df99021b9df95c97) Report Bunny provider failures ### 📊 Changes **1 file changed** (+57 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `.github/bunny-review/bunny_review.py` (+57 -17) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes # ## Why this change - Prevents Bunny Review from appearing stuck on “running” when the model provider rejects the request, such as an invalid API token. - Lets the normal render/post path publish a failed review status instead of aborting before posting anything. ## What changed - Added provider/model exception handling around the model review passes. - On failure, Bunny now writes a `review.json` with a failing pre-merge check and PR metadata, then exits produce cleanly so render/post can publish the failure. - Preserves the existing missing-API-key skipped-review behavior. ## Refactor impact Primary owner: - GitHub workflow automation / Bunny Review runner. Impact areas reviewed: - Bunny Review model call failure path. - Review JSON rendering and posting path after provider failure. Boundary notes: - No app source, engine, React feature, shared API, Tauri, storage, provider, or remote-runtime product boundary is touched. Pressure points touched: - Bunny Review provider failure handling and generated review status payloads. ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Agent ran `python3 -m py_compile .github/bunny-review/bunny_review.py`. - Agent ran `pnpm check:docs`. - Agent smoke-tested the provider failure payload path locally with an `openai` import stub. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - GitHub workflow failure handling only; no in-app user-discoverable behavior is added. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - N/A. No app UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5328
No description provided.