Repository navigation
[IsolationSession] Fork availability checks, error handling, and process-option building into Preview and GA paths - #1938
Draft
Dom Giandinoto (daamenik) wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Availability probing ignores the explicit new-implementation selection and still uses the legacy branch, leaving the intended CLI path unexercised.
1 open issue
What changed in this PR
Prepares MXC’s IsolationSession backend for GA migration by separating legacy and new implementation helpers.
Changes:
- Split availability probes and caches by implementation.
- Move WinRT error handling and process-option construction into each manager.
- Add a selected-cache unit test.
| File | Description |
|---|---|
src/mxc-sdk/src/backends/isolation_session/common/process_options.rs |
Retains internal options and shares redirect constants. |
src/mxc-sdk/src/backends/isolation_session/common/manager_new.rs |
Adds implementation-local WinRT helpers. |
src/mxc-sdk/src/backends/isolation_session/common/manager_legacy.rs |
Adds legacy WinRT helpers. |
src/mxc-sdk/src/backends/isolation_session/common/error.rs |
Keeps shared error classification separate from WinRT calls. |
src/mxc-sdk/src/backends/isolation_session/common/availability.rs |
Separates probes and caches; adds cache-selection coverage. |
Review effort: Max
| } else { | ||
| mxc_sdk::mxc_common::models::ExecutionRequest::default() | ||
| }; | ||
| request.use_new_isosession = Some(cli.use_new_isosession); |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📖 Description
Phase 5 of implementing the GA Migration framework for the IsoSession backend.
PRs #1871 and #1931 forked some areas of the IsoSession backend into paths for the GA and Preview implementations to be developed separately. Bindings to OS APIs are used in the following other areas of MXC's IsoSession backend, and are split in this PR:
Availability (
availability.rs)probe_feature_level(), which has been split into one function per implementation.is_isolation_session_available()had to branch into separate paths in order to check the runtime being used and call the correspondingprobe_feature_level*()function. The cached value for the feature level result has also been split for each implementation.--probeprobes for the legacy implementation;--probe --experimental --use-new-isosessionchecks for the new implementation.Errors (
error.rs)format_iso_error()(which usesIsoSessionError) andcheck_result()(which usesIsoSessionResult). These are public methods, but their only callers areIsolationSessionManagermethods. I have thus moved them into each manager implementation file.Remarks on
check_result()Preview impl can remain the same; GA impl will need supplemental
check_result()methods to deal with the new GA result types, or refactoring to take inIsoError()instead. Implementation out of scope of this change, but worth noting.Process Options (
process_options.rs)build_iso_process_options()is the only OS API caller. It translates an MXC-internalProcessOptionsobject (gathered from anExecutionRequest) into anIsoSessionProcessOptionsobject to send to the IsoSession service. Its only caller isIsolationSessionManager::start_process(). Like the methods in the Errors section, I moved it to each manager implementation file.🔗 References
Resolves #1858.
🔍 Validation
✅ Checklist
feature-acceptedCargo.lock, thedependency-feed-checkcheck passes (see pull request builds)📋 Issue Type
Microsoft Reviewers: Open in CodeFlow