Skip to content

feat: Implement Automatic Configuration Backup during re-installs or upgrades#1793

Draft
Nandu-pns wants to merge 9 commits intomainfrom
pns/NR-520229
Draft

feat: Implement Automatic Configuration Backup during re-installs or upgrades#1793
Nandu-pns wants to merge 9 commits intomainfrom
pns/NR-520229

Conversation

@Nandu-pns
Copy link
Copy Markdown
Contributor

@Nandu-pns Nandu-pns commented Feb 19, 2026

Jira - https://new-relic.atlassian.net/browse/NR-520229

This PR implements an automatic, fail-safe configuration backup system that runs before any recipe is executed.

What changed

New package: internal/install/backup/

image

Test Results

Test Results have been updated here

image

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 25, 2026

Codecov Report

❌ Patch coverage is 42.43208% with 445 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.03%. Comparing base (4ed200d) to head (adf6459).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
internal/install/backup/restorer.go 0.00% 131 Missing ⚠️
internal/install/backup/detector.go 57.92% 66 Missing and 3 partials ⚠️
internal/install/command.go 8.00% 69 Missing ⚠️
internal/install/backup/creator.go 65.00% 42 Missing and 14 partials ⚠️
internal/install/backup/orchestrator.go 48.42% 43 Missing and 6 partials ⚠️
internal/install/backup/lifecycle.go 59.43% 29 Missing and 14 partials ⚠️
internal/install/recipe_installer.go 35.00% 19 Missing and 7 partials ⚠️
internal/install/ux/spinner_progress_indicator.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1793      +/-   ##
==========================================
+ Coverage   31.30%   32.03%   +0.73%     
==========================================
  Files         181      186       +5     
  Lines       12551    13322     +771     
==========================================
+ Hits         3929     4268     +339     
- Misses       8478     8870     +392     
- Partials      144      184      +40     

☔ View full report in Codecov by Sentry.
📢 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.

1 participant