ROX-33649: Fix misleading MISSING_SCAN_DATA message#19947
ROX-33649: Fix misleading MISSING_SCAN_DATA message#19947
Conversation
ROX-33649: The missingScanData message incorrectly referenced "base OS information" when MISSING_SCAN_DATA is set for any scan failure (network errors, layer fetch failures, etc.), not just OS detection. A separate OS_UNAVAILABLE note already handles the OS-specific case. Update to generic messaging that matches the existing node scan pattern. Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
|
Skipping CI for Draft Pull Request. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19947 +/- ##
=======================================
Coverage 49.55% 49.56%
=======================================
Files 2764 2764
Lines 208346 208357 +11
=======================================
+ Hits 103254 103269 +15
+ Misses 97437 97436 -1
+ Partials 7655 7652 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 Build Images ReadyImages are ready for commit 4af2dfb. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-614-g4af2dfbaf6 |
|
@sachaudh: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
Description
Jira: ROX-33649
The
MISSING_SCAN_DATAimage note is set for any scan failure (network errors, layer fetchfailures, no scanner configured, etc.), but the UI message incorrectly said "Failed to get the
base OS information." This misleads users into investigating OS-related issues. A separate
OS_UNAVAILABLEnote already handles the OS-specific case.missingScanDataheader to "Failed to get scan data."missingScanDatabody to generic, actionable guidanceosUnavailablemessage unchangedNote: This is a targeted fix to stop users from going down the wrong path when investigating scan failures. It removes the misleading OS-specific wording but doesn't tell users the exact failure reason. A larger effort to improve scan error messaging (e.g. passing more specific error context from the backend through scan notes) should be tracked separately.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
WorkloadCvesandVulnMgmtpass without modification (17/17 tests pass)imageScanMessages.missingScanDataby object reference, not string valueScreenshots