Skip to content

Lazy-load session backends and monitors - #1382

Merged
Zhipeng Wang (timenick) merged 2 commits into
mainfrom
zhiwang/fix-session-lazy-imports
Sep 2, 2026
Merged

Lazy-load session backends and monitors#1382
Zhipeng Wang (timenick) merged 2 commits into
mainfrom
zhiwang/fix-session-lazy-imports

Conversation

@timenick

Copy link
Copy Markdown
Contributor

Summary

  • Lazy-load the session, monitor, and sysinfo public facades while preserving their existing exports.
  • Defer QAIRT and provider-specific monitor modules until the matching backend is selected.
  • Add subprocess import-isolation coverage for Runtime, GenAI, QNN, OpenVINO, VitisAI, and QAIRT, including actionable missing-dependency diagnostics.

Closes #1381

Validation

  • 15 import-isolation tests passed.
  • CI-equivalent commands/session shard: 3667 passed.
  • CI-equivalent remaining shard: 960 passed.
  • Mypy checked 441 source files.
  • Pre-commit passed.

@timenick
Zhipeng Wang (timenick) requested a review from a team as a code owner September 1, 2026 09:02

@xieofxie xieofxie 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.

Reviewed the changes and found no actionable issues.

@timenick
Zhipeng Wang (timenick) merged commit 4160abb into main Sep 2, 2026
9 checks passed
@timenick
Zhipeng Wang (timenick) deleted the zhiwang/fix-session-lazy-imports branch September 2, 2026 06:10
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.

Lazy-load session backends and monitors to avoid unrelated optional dependencies

2 participants