Skip to content

Fix error handling and add signing - #20

Merged
marcomq merged 1 commit into
mainfrom
dev
Nov 13, 2026
Merged

marcomq merged 1 commit into
mainfrom
dev

Conversation

@marcomq

@marcomq marcomq commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Release builds can show full Python tracebacks and log detailed errors when explicitly enabled. Startup failures now include clearer context, with a Python-version hint for incompatible compiled modules.
  • Bug Fixes
    • Debug-profile binary linkage issues are reported as warnings; release-profile issues remain errors.
    • macOS signing now covers native modules and extensions in both bundled Python and the project’s Python source directory.
  • Documentation
    • Updated setup, compiled entry point, debugging, and macOS signing guidance.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The update changes Python traceback and startup-error reporting, expands CLI signing to native files in src-python, adjusts linkage diagnostics by build profile, and updates setup guidance and package metadata.

Changes: Python plugin updates

Layer / File(s) Summary
Runtime tracebacks and startup errors
src/lib.rs, src/tests.rs, src/unit_tests.rs
Tracebacks are enabled in debug builds or when TAURI_PLUGIN_PYTHON_TRACEBACK is set to 1 or true. Error logging follows that setting. Startup failures include entry context, and bad-magic-number errors include a Python-version hint. Tests cover traceback configuration and line reporting.
Native module signing and linkage checks
cli/lib/doctor.js, cli/lib/sign.js, README.md, cli/README.md, docs/deploy-macos.md
The signing command scans bundled Python and src-python for Mach-O files. Linkage failures warn for debug binaries and error for release binaries. The documentation describes signing compiled modules and .venv extensions after compiling them.
Setup instructions and release metadata
README.md, Cargo.toml, package.json, cli/package.json, .gitignore
Setup instructions add JavaScript API installation. Package versions change, async_py is updated, and .gitignore excludes the local Svelte test app.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Merge Risk: Minimal · up to 58f9c

This change adjusts Python error reporting, extends macOS signing to native files in src-python, and bumps versions. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Fix error handling and add signing" is partially related to the changeset. The diff does change error handling: src/lib.rs adds traceback control via TAURI_PLUGIN_PYTHON_TRACEBACK, replaces…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Fix error handling and add signing" is partially related to the changeset. The diff does change error handling: src/lib.rs adds traceback control via TAURI_PLUGIN_PYTHON_TRACEBACK, replaces some failures with startup_failed panics, and adds a Python-version hint for bad magic number errors. It also extends the sign command in cli/lib/sign.js to scan src-python and updates the signing docs. The title names both real aspects but does not name the largest change, and it omits the version bumps and the debug-versus-release traceback behavior.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3621f318-b421-4776-8781-c0b6f81c836a
Commits

Reviewing files that changed from the base of the PR and between 68ea4f7 and 58f9c67.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 12

  • .gitignore
  • Cargo.toml
  • README.md
  • cli/README.md
  • cli/lib/doctor.js
  • cli/lib/sign.js
  • cli/package.json
  • docs/deploy-macos.md
  • package.json
  • src/lib.rs
  • src/tests.rs
  • src/unit_tests.rs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@marcomq
marcomq merged commit f1b99e8 into main Nov 13, 2026
15 checks passed
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