[RPC]: deliver infos for missing packs#2463
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the ProjMgr RPC GetPacksInfo behavior so that pack info entries are also returned for packs that are referenced/required but not installed, enabling better UI presentation for missing packs (fixes #2461).
Changes:
- Track a resolved pack ID during pack requirement collection (
PackageItem::resolvedTo) and use it for RPC pack references. - Extend
GetPacksInfoto append entries for unresolved (missing) pack references. - Update/extend unit + RPC tests and PackMissing test data to cover missing-pack scenarios.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/projmgr/src/ProjMgrWorker.cpp | Stores resolved pack ID during PDSC resolution; relaxes pack-loading failure behavior in RPC mode. |
| tools/projmgr/include/ProjMgrWorker.h | Adds PackageItem::resolvedTo to carry resolved pack ID for RPC/UI. |
| tools/projmgr/src/ProjMgrRpcServer.cpp | Uses resolvedTo for pack references and appends unresolved pack infos in GetPacksInfo. |
| tools/projmgr/test/src/ProjMgrRpcTests.cpp | Adds RpcGetPacksInfoMissing coverage for missing packs returned by GetPacksInfo. |
| tools/projmgr/test/src/ProjMgrUnitTests.cpp | Ensures PackMissing tests start from a clean state by removing generated cbuild-pack file. |
| tools/projmgr/test/data/TestSolution/PackMissing/missing_pack.csolution.yml | Adds a Miss context and additional pack requirements to exercise missing-pack reporting. |
| tools/projmgr/test/data/TestSolution/PackMissing/ref/missing_pack.cbuild-idx.yml | Updates expected cbuild-idx output to include the new context and info messages. |
| tools/projmgr/test/data/TestSolution/PackMissing/ref/missing_pack_specific_context.cbuild-idx.yml | Updates expected metadata to match current generator output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Test Results 3 files - 55 21 suites - 155 16m 50s ⏱️ - 4m 25s Results for commit 01746a0. ± Comparison against base commit d511ad6. This pull request removes 451 and adds 1 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2463 +/- ##
==========================================
+ Coverage 64.93% 64.95% +0.02%
==========================================
Files 145 145
Lines 26321 26351 +30
Branches 15902 15923 +21
==========================================
+ Hits 17091 17117 +26
- Misses 7063 7065 +2
- Partials 2167 2169 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2463 +/- ##
==========================================
+ Coverage 64.93% 64.95% +0.02%
==========================================
Files 145 145
Lines 26321 26351 +30
Branches 15902 15923 +21
==========================================
+ Hits 17091 17117 +26
- Misses 7063 7065 +2
- Partials 2167 2169 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Fixes
Changes
Checklist