Skip to content

Pull in Fix PD CFU timeout recovery- #129 - #133

Merged
RobertZ2011 merged 5 commits into
OpenDevicePartnership:mainfrom
RobertZ2011:pull-in-129
Sep 16, 2026
Merged

RobertZ2011 merged 5 commits into
OpenDevicePartnership:mainfrom
RobertZ2011:pull-in-129

Conversation

@RobertZ2011

Copy link
Copy Markdown
Contributor

No description provided.

asasine and others added 4 commits September 14, 2026 10:41
Publish interrupt flags before clearing W1C state so cancellation cannot
drop completions. Reconcile commands that finish at timeout and reserve
independent TFUc verification slack.

Assisted-by: GitHub Copilot:gpt-5.6-sol
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Return completed command values unchanged when timeout reconciliation
confirms that the device finished the command.

Assisted-by: GitHub Copilot:gpt-5.6-sol
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@RobertZ2011 RobertZ2011 self-assigned this Sep 14, 2026
Import the timeout duration in the extracted Embassy module and keep the ported regression tests formatted for the current main branch.

Assisted-by: GitHub Copilot:gpt-5.6-sol

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e056cc40-078a-46ce-8af7-2902eb5a828f
@RobertZ2011 RobertZ2011 changed the title Pull in 129 Pull in Fix PD CFU timeout recovery- #129 Sep 14, 2026
@RobertZ2011
RobertZ2011 requested a lite review from Copilot September 14, 2026 17:52

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.

🟡 Changes recommended

Unresolved critical timeout-reconciliation and public API compatibility issues remain.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Improves PD CFU timeout recovery, TFUc timeout handling, and interrupt-clear resilience.

Changes:

  • Adds TFUc verification timeout slack.
  • Tracks and retries pending interrupt clears.
  • Reconciles timed-out command results and adds tests.
File summaries
File Summary and findings
src/command/mod.rs Adjusts TFUc timeout calculation.
src/asynchronous/internal/mod.rs Tracks pending interrupt clears. Moderate (3 votes): Removing clear_interrupt breaks downstream users; retain a compatibility wrapper or document the breaking change.
src/asynchronous/embassy/mod.rs Adds timeout reconciliation and tests. Critical (2 votes): Reconciliation may read stale command status if submission did not complete; only reconcile after confirmed CMD1 submission.
src/asynchronous/embassy/interrupt.rs Publishes interrupts before clearing and adds retry handling.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment thread src/asynchronous/embassy/mod.rs
Comment thread src/asynchronous/internal/mod.rs
@RobertZ2011 RobertZ2011 added this to EC Sep 14, 2026
@RobertZ2011 RobertZ2011 moved this to In Progress in EC Sep 14, 2026
@RobertZ2011
RobertZ2011 marked this pull request as ready for review September 14, 2026 18:25
@RobertZ2011
RobertZ2011 requested a review from a team as a code owner September 14, 2026 18:25
@RobertZ2011
RobertZ2011 enabled auto-merge (squash) September 14, 2026 18:25
@RobertZ2011
RobertZ2011 marked this pull request as draft September 14, 2026 22:42
auto-merge was automatically disabled September 14, 2026 22:42

Pull request was converted to draft

@RobertZ2011
RobertZ2011 marked this pull request as ready for review September 15, 2026 15:50
Comment thread src/asynchronous/embassy/mod.rs
@RobertZ2011
RobertZ2011 enabled auto-merge (squash) September 16, 2026 18:04
@RobertZ2011
RobertZ2011 merged commit 6b94873 into OpenDevicePartnership:main Sep 16, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in EC Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants