Skip to content

type-c-services/tests: Convert std/unconstrained example to test#887

Open
RobertZ2011 wants to merge 2 commits into
OpenDevicePartnership:stable-v0.1.yfrom
RobertZ2011:type-c-back-port-unconstrained
Open

type-c-services/tests: Convert std/unconstrained example to test#887
RobertZ2011 wants to merge 2 commits into
OpenDevicePartnership:stable-v0.1.yfrom
RobertZ2011:type-c-back-port-unconstrained

Conversation

@RobertZ2011

Copy link
Copy Markdown
Contributor

No description provided.

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

This PR backports and formalizes Type‑C “unconstrained power” behavior by adding an integration test to the type-c-service test harness, adjusting test timing, and cleaning up an outdated std example.

Changes:

  • Added a new integration test (tests/unconstrained.rs) validating unconstrained state propagation across multiple Type‑C ports.
  • Increased the shared Type‑C integration test timeout window and ensured log feature propagation to power-policy-service for std/test builds.
  • Removed the old type-c-unconstrained std example binary and its Cargo bin entry.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
type-c-service/tests/unconstrained.rs Adds an integration test for unconstrained-power behavior across 3 mocked ports.
type-c-service/tests/common/mod.rs Extends the default integration test timeout window used by the Type‑C test harness.
type-c-service/Cargo.toml Ensures power-policy-service/log is enabled when type-c-service is built with log.
examples/std/src/bin/type_c/unconstrained.rs Removes an obsolete std example that is superseded by the new integration test.
examples/std/Cargo.toml Removes the type-c-unconstrained bin target entry.

Comment thread type-c-service/tests/unconstrained.rs
Comment thread type-c-service/tests/unconstrained.rs Outdated
Comment thread type-c-service/tests/unconstrained.rs Outdated
Comment thread type-c-service/tests/unconstrained.rs Outdated
Comment thread type-c-service/tests/unconstrained.rs Outdated
@RobertZ2011 RobertZ2011 self-assigned this Jun 11, 2026
@RobertZ2011 RobertZ2011 force-pushed the type-c-back-port-unconstrained branch from e8d59ce to 4efaf8f Compare June 11, 2026 17:22
@RobertZ2011 RobertZ2011 changed the title Type c back port unconstrained type-c-services/tests: Convert std/unconstrained example to test Jun 11, 2026
@RobertZ2011 RobertZ2011 marked this pull request as ready for review June 11, 2026 17:28
@RobertZ2011 RobertZ2011 requested review from a team as code owners June 11, 2026 17:28
@RobertZ2011 RobertZ2011 enabled auto-merge (squash) June 11, 2026 18:45
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.

4 participants