Conversation
Test Results 2 files 14 suites 14m 6s ⏱️ Results for commit 30949a6. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved diagnostic formatting and RPC description-propagation issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Improves component dependency diagnostics by simplifying wording and adding component descriptions.
Changes:
- Captures descriptions for selectable and conflicting components.
- Updates diagnostic wording and expected tests.
- Adapts RPC aggregate handling.
File summaries
| File | Summary |
|---|---|
tools/projmgr/test/src/ProjMgrUnitTests.cpp |
Updates diagnostic output expectations. |
tools/projmgr/src/ProjMgrWorker.cpp |
Formats enhanced diagnostics; YAML component syntax and empty-description handling need correction. |
tools/projmgr/src/ProjMgrRpcServer.cpp |
Adapts aggregate data; description propagation and the aggrehateIds identifier need correction. |
tools/projmgr/include/ProjMgrWorker.h |
Updates aggregate storage to include descriptions. |
libs/rtemodel/src/RteCondition.cpp |
Revises dependency explanation wording. |
libs/rtemodel/include/RteCondition.h |
Updates the explanation API. |
Review details
Suppressed comments (3)
tools/projmgr/src/ProjMgrRpcServer.cpp:752
- This newly introduced local repeats the
aggrehateIdstypo; useaggregateIdshere as well.
auto aggrehateIds = key_set(condition.aggregates);
tools/projmgr/src/ProjMgrRpcServer.cpp:743
- The formatter now relies on the map value to emit the PDSC description, but this conversion immediately discards every value and sends only IDs through
ValidateComponents. As a result, the RPC/Components and Problems consumers cannot reproduce the new# <description>diagnostics (or the shared message text), so the terminal and RPC output remain unsynchronized as required by issue #2543; carry the description/message data through the RPC contract and update its consumers/tests.
auto aggrehateIds = key_set(validation.aggregates);
r.aggregates = vector<string>(aggrehateIds.begin(), aggrehateIds.end());
tools/projmgr/src/ProjMgrWorker.cpp:4808
- This output is not pasteable into a
.cproject.yml: component entries use thecomponent:mapping key (seeProjMgrYamlParser::ParseComponents), but this emits- component <id>. Copying the suggested line therefore produces a scalar entry thatParseString(..., YAML_COMPONENT, ...)does not read. Emit- component: <id> # <description>and update the expected diagnostic accordingly.
ss << "- component " << id << " # " << RteDependencyResult::GetAggregateExplanationText(result, desc);
- Files reviewed: 6/6 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.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2616 +/- ##
==========================================
- Coverage 78.68% 71.39% -7.29%
==========================================
Files 197 185 -12
Lines 32778 29304 -3474
Branches 19152 17361 -1791
==========================================
- Hits 25790 20923 -4867
- Misses 4662 6072 +1410
+ Partials 2326 2309 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Fixes
Changes
Examples:
Checklist