Skip to content

Add a backup and restore step on the netplans directory (Bugfix)#1933

Merged
pieqq merged 7 commits intocanonical:mainfrom
antlassagne:fix-corrupted-netplans
Jul 9, 2025
Merged

Add a backup and restore step on the netplans directory (Bugfix)#1933
pieqq merged 7 commits intocanonical:mainfrom
antlassagne:fix-corrupted-netplans

Conversation

@antlassagne
Copy link
Copy Markdown
Contributor

Description

Resolved issues

Documentation

Tests

@antlassagne antlassagne marked this pull request as draft May 26, 2025 18:36
@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch 2 times, most recently from 197f7f1 to 945acb0 Compare May 26, 2025 18:52
@antlassagne antlassagne changed the title Add a backup and restore step on the netplans directory Bugfix: Add a backup and restore step on the netplans directory May 26, 2025
@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch from 945acb0 to b7c1a16 Compare May 26, 2025 19:05
@antlassagne antlassagne changed the title Bugfix: Add a backup and restore step on the netplans directory Add a backup and restore step on the netplans directory (Bugfix) May 26, 2025
@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch 7 times, most recently from 35e6c54 to a66f086 Compare May 27, 2025 08:23
@codecov
Copy link
Copy Markdown

codecov bot commented May 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.46%. Comparing base (cbdb66f) to head (50109e1).
⚠️ Report is 152 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1933      +/-   ##
==========================================
+ Coverage   50.39%   50.46%   +0.06%     
==========================================
  Files         384      384              
  Lines       41095    41136      +41     
  Branches     6753     6829      +76     
==========================================
+ Hits        20709    20758      +49     
+ Misses      19644    19638       -6     
+ Partials      742      740       -2     
Flag Coverage Δ
provider-base 25.91% <100.00%> (+0.24%) ⬆️

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

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

@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch 3 times, most recently from c551cf4 to f8ef3c5 Compare May 27, 2025 09:01
@antlassagne antlassagne marked this pull request as ready for review May 27, 2025 09:13
@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch from f8ef3c5 to 3ae5b84 Compare May 27, 2025 11:32
Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

I have a few comments inline. I'm not sure why the functions you add return a boolean (sometimes). If it's only to east with writing the unit tests, then I would refrain from doing so, and instead modify the unit tests to check if an exception is raised, etc.

@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch from 3ae5b84 to 7d0ce87 Compare June 25, 2025 14:20
@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch from 7d0ce87 to 6ba276a Compare June 25, 2025 14:55
Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

I think we had discussed about some of this stuff already on MM, see if that makes sense.

@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch from 5503846 to 272c49f Compare July 4, 2025 10:44
@antlassagne antlassagne force-pushed the fix-corrupted-netplans branch from 272c49f to 8dfcc8d Compare July 4, 2025 10:44
@antlassagne
Copy link
Copy Markdown
Contributor Author

I applied the suggestions, back to you @pieqq

@antlassagne antlassagne requested a review from pieqq July 9, 2025 11:23
Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fixes! Looks good, let's hope it helps!

@pieqq pieqq merged commit 967ceb1 into canonical:main Jul 9, 2025
28 checks passed
mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
* Add a backup and restore step on the netplans directory

* Fix tests

* Fix temporary directories

* Fix the backup/restore behavior of netplans, overall simplifications

* Modify a misplaced comment

* Apply suggestions from review

* Simplify the trycatch, fix flake8
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
* Add a backup and restore step on the netplans directory

* Fix tests

* Fix temporary directories

* Fix the backup/restore behavior of netplans, overall simplifications

* Modify a misplaced comment

* Apply suggestions from review

* Simplify the trycatch, fix flake8
bladernr pushed a commit that referenced this pull request Aug 28, 2025
* Add a backup and restore step on the netplans directory

* Fix tests

* Fix temporary directories

* Fix the backup/restore behavior of netplans, overall simplifications

* Modify a misplaced comment

* Apply suggestions from review

* Simplify the trycatch, fix flake8
stanley31huang pushed a commit that referenced this pull request Oct 3, 2025
* Add a backup and restore step on the netplans directory

* Fix tests

* Fix temporary directories

* Fix the backup/restore behavior of netplans, overall simplifications

* Modify a misplaced comment

* Apply suggestions from review

* Simplify the trycatch, fix flake8
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