Skip to content

[RPC]: deliver infos for missing packs#2463

Merged
edriouk merged 8 commits into
mainfrom
missing-packs-rpc
Apr 30, 2026
Merged

[RPC]: deliver infos for missing packs#2463
edriouk merged 8 commits into
mainfrom
missing-packs-rpc

Conversation

@edriouk

@edriouk edriouk commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Fixes

Changes

Checklist

  • 🤖 This change is covered by unit tests (if applicable).
  • 🤹 Manual testing has been performed (if necessary).
  • 🛡️ Security impacts have been considered (if relevant).
  • 📖 Documentation updates are complete (if required).
  • 🧠 Third-party dependencies and TPIP updated (if required).

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 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 GetPacksInfo to 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.

Comment thread tools/projmgr/src/ProjMgrWorker.cpp
Comment thread tools/projmgr/src/ProjMgrRpcServer.cpp
Comment thread tools/projmgr/src/ProjMgrRpcServer.cpp
@github-actions

github-actions Bot commented Apr 28, 2026

Copy link
Copy Markdown

Test Results

    3 files   -    55     21 suites   - 155   16m 50s ⏱️ - 4m 25s
  462 tests  -   450    462 ✅  -   433  0 💤  - 17  0 ❌ ±0 
1 386 runs   - 1 487  1 386 ✅  - 1 419  0 💤  - 68  0 ❌ ±0 

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.
AuxCmdTests ‑ MkdirCmdTest
AuxCmdTests ‑ RmdirCmdTest
AuxCmdTests ‑ TouchCmdTest
BuildSystemGeneratorTests ‑ GenAuditFile
BuildSystemGeneratorTests ‑ GenAuditFile_WithOut_Existing_Audit_File
BuildSystemGeneratorTests ‑ GenAuditFile_With_Existing_Audit_File
BuildSystemGeneratorTests ‑ GetString
BuildSystemGeneratorTests ‑ StrConv
BuildSystemGeneratorTests ‑ StrNorm
CBuildGCCTests ‑ Asm
…
ProjMgrRpcTests ‑ RpcGetPacksInfoMissing

♻️ This comment has been updated with latest results.

Comment thread tools/projmgr/src/ProjMgrRpcServer.cpp Outdated

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

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.

Comment thread tools/projmgr/src/ProjMgrRpcServer.cpp Outdated
brondani
brondani previously approved these changes Apr 30, 2026

@brondani brondani left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

codecov Bot commented Apr 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.36585% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.95%. Comparing base (d511ad6) to head (01746a0).

Files with missing lines Patch % Lines
tools/projmgr/src/ProjMgrRpcServer.cpp 85.29% 2 Missing and 3 partials ⚠️
tools/projmgr/src/ProjMgrWorker.cpp 85.71% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
projmgr-cov 87.89% <85.36%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tools/projmgr/include/ProjMgrWorker.h 83.33% <ø> (ø)
tools/projmgr/src/ProjMgrWorker.cpp 87.36% <85.71%> (+0.01%) ⬆️
tools/projmgr/src/ProjMgrRpcServer.cpp 85.49% <85.29%> (-0.05%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@edriouk edriouk merged commit beb9bb8 into main Apr 30, 2026
33 checks passed
@edriouk edriouk deleted the missing-packs-rpc branch April 30, 2026 09:35
@codecov

codecov Bot commented Apr 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.36585% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.95%. Comparing base (d511ad6) to head (01746a0).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tools/projmgr/src/ProjMgrRpcServer.cpp 85.29% 2 Missing and 3 partials ⚠️
tools/projmgr/src/ProjMgrWorker.cpp 85.71% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
projmgr-cov 87.89% <85.36%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tools/projmgr/include/ProjMgrWorker.h 83.33% <ø> (ø)
tools/projmgr/src/ProjMgrWorker.cpp 87.36% <85.71%> (+0.01%) ⬆️
tools/projmgr/src/ProjMgrRpcServer.cpp 85.49% <85.29%> (-0.05%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants