Skip to content

fix: log rollback errors instead of silently swallowing them - #3926

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/rollback-log-errors
Open

fix: log rollback errors instead of silently swallowing them#3926
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/rollback-log-errors

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

_rollback() caught and discarded all exceptions during component removal. If a rollback step fails, the user has no indication the rollback was incomplete.

Fix

Add debug logging so failures are visible.

_rollback() caught and discarded all exceptions during component
removal. If a rollback step fails, the user has no indication the
rollback was incomplete. Add debug logging so failures are visible.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds debug diagnostics for failed best-effort bundle rollbacks.

Changes:

  • Imports Python logging.
  • Logs exceptions raised while removing rollback components.
Show a summary per file
File Description
src/specify_cli/bundler/services/installer.py Adds rollback failure logging.

Review details

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment on lines 258 to +259
except Exception: # noqa: BLE001 - best-effort rollback
logger.debug("rollback failed for %s: %s", component, exc_info=True)
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.

3 participants