Skip to content

Cherry-pick #49640: Improve custom host vital missing-value error message - #49649

Merged
nulmete merged 1 commit into
rc-minor-fleet-v4.90.0from
nulmete/improve-vital-error-msg-cp
Jul 21, 2026
Merged

Cherry-pick #49640: Improve custom host vital missing-value error message#49649
nulmete merged 1 commit into
rc-minor-fleet-v4.90.0from
nulmete/improve-vital-error-msg-cp

Conversation

@nulmete

@nulmete nulmete commented Jul 21, 2026

Copy link
Copy Markdown
Member

Cherry-pick of #49640 into the RC branch.

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #44954

When a custom host vital referenced in a script or profile has no value
set for a host, the delivery failure detail didn't name the vital,
making it hard for admins to tell which one needed a value. The message
now includes both the vital's name and its `$FLEET_HOST_VITAL_<id>`
token.

## Testing

- [x] Added/updated automated tests

- [x] QA'd all new/changed functionality manually


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Improved missing custom host vital error messages by including both
the vital name and its corresponding environment variable identifier.
- Updated the wording to be clearer about why values can’t be populated
when no value is set for the host.
- Kept singular vs. plural messaging correct when one or multiple vital
values are missing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@nulmete
nulmete requested a review from a team as a code owner July 21, 2026 13:56
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.90.0@e01f52f). Learn more about missing BASE report.

Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.90.0   #49649   +/-   ##
=========================================================
  Coverage                          ?   67.86%           
=========================================================
  Files                             ?     3890           
  Lines                             ?   248173           
  Branches                          ?    12969           
=========================================================
  Hits                              ?   168426           
  Misses                            ?    64544           
  Partials                          ?    15203           
Flag Coverage Δ
backend 69.27% <100.00%> (?)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nulmete
nulmete merged commit 040908f into rc-minor-fleet-v4.90.0 Jul 21, 2026
34 of 35 checks passed
@nulmete
nulmete deleted the nulmete/improve-vital-error-msg-cp branch July 21, 2026 14:35
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.

2 participants