8000 feat(health): reserve the KVP report key before provisioning by peytonr18 · Pull Request #364 · Azure/azure-init · GitHub
[go: up one dir, main page]

Skip to content

feat(health): reserve the KVP report key before provisioning - #364

Draft
Peyton Robertson (peytonr18) wants to merge 2 commits into
Azure:mainfrom
peytonr18:probertson-reserve-inprogress
Draft

Peyton Robertson (peytonr18) wants to merge 2 commits into
Azure:mainfrom
peytonr18:probertson-reserve-inprogress

Conversation

@peytonr18
Copy link
Copy Markdown
Contributor

Summary

Final health reporting can be rejected at the KVP store's 1,024-key limit when PROVISIONING_REPORT does not already exist. This PR reserves that key before provisioning, allowing the final success/failure report to update it even if diagnostics add more keys later.

The initial value is a typed in_progress report with a fresh timestamp and no previous failure context. The new state is supported in report encoding, parsing, and parsed CLI output. Only actual provisioning attempts write it; cleanup and already-provisioned paths remain unchanged.

Relies on PR #363 to be merged in first, as these changes depend on the initial health wiring.

Testing done

Write an in_progress report before provisioning to clear previous failure
context and reserve the key for the final update. This avoids new-key
limit failures caused by later diagnostic growth.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.12195% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.91%. Comparing base (26e98be) to head (c0e8683).

Files with missing lines Patch % Lines
src/main.rs 94.05% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
+ Coverage   97.73%   97.91%   +0.17%     
==========================================
  Files          29       29              
  Lines       10176    10475     +299     
==========================================
+ Hits         9946    10257     +311     
+ Misses        230      218      -12     

☔ 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.

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

0