cfu-service: Create basic updater struct#809
Open
RobertZ2011 wants to merge 1 commit intoOpenDevicePartnership:v0.2.0from
Open
cfu-service: Create basic updater struct#809RobertZ2011 wants to merge 1 commit intoOpenDevicePartnership:v0.2.0from
RobertZ2011 wants to merge 1 commit intoOpenDevicePartnership:v0.2.0from
Conversation
fd96e99 to
80861a1
Compare
b85dac7 to
6ef757d
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Introduces a new fw-update-interface crate providing a minimal firmware update trait (plus mocks), and adds a “basic” CFU updater implementation in cfu-service that bridges CFU protocol messages to that trait (with customization + tests). Also updates CI clippy feature-powerset runs to avoid std/mock feature combos on non-std targets.
Changes:
- Add
fw-update-interfacecrate withbasic::FwUpdate+mockimplementations and unit tests. - Add
cfu-service::basicupdater + event receiver, plus aCustomizationtrait and mock to validate offers; add end-to-end tests for basic flows. - Update workspace/locks and tweak
cargo hackCI invocation for target-specific feature skipping.
Reviewed changes
Copilot reviewed 15 out of 18 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| fw-update-interface/src/lib.rs | New no_std interface crate root with optional mock module |
| fw-update-interface/src/basic.rs | Defines basic FW update trait + error type |
| fw-update-interface/src/mock/mod.rs | Exposes mock module |
| fw-update-interface/src/mock/basic.rs | Provides mock FwUpdate implementor + tests |
| fw-update-interface/Cargo.toml | New crate manifest + features/dev-deps |
| cfu-service/src/lib.rs | Exposes new basic/customization modules and optional mock |
| cfu-service/src/customization.rs | Defines common CFU offer validation trait |
| cfu-service/src/mock/mod.rs | Exposes CFU customization mock module |
| cfu-service/src/mock/customization.rs | Adds customization mock + tests |
| cfu-service/src/basic/mod.rs | Implements the basic CFU updater bridging to FwUpdate |
| cfu-service/src/basic/event_receiver.rs | Adds event receiver with timeout/recovery ticking + tests |
| cfu-service/src/basic/test.rs | Adds async integration-style tests for basic updater flows |
| cfu-service/Cargo.toml | Adds deps/features and dev-deps for new tests |
| Cargo.toml | Adds fw-update-interface to workspace members/deps |
| Cargo.lock | Updates workspace lockfile for new crate/deps |
| examples/std/Cargo.lock | Updates example lockfile to include new crate |
| examples/rt685s-evk/Cargo.lock | Updates example lockfile to include new crate |
| .github/workflows/check.yml | Adjusts clippy feature-powerset run to skip mock,std on non-std targets |
6ef757d to
2abeae8
Compare
2abeae8 to
a49c09b
Compare
34b7faa to
304882e
Compare
fa3e326 to
276c871
Compare
5f804a3 to
4ffaa68
Compare
7c10fad to
9119128
Compare
9119128 to
36810fe
Compare
36810fe to
0e9df88
Compare
Use the existing CFU logic in type-c-service to create a struct that can perform CFU updates on anything that implements a basic FW update trait.
0e9df88 to
b774d4d
Compare
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.
Use the existing CFU logic in type-c-service to create a struct that can perform CFU updates on anything that implements a basic FW update trait