Skip to content

FIX: Save project after recovering archive - #6553

Merged
Devin-Crawford merged 16 commits into
mainfrom
fix/6400-archive
Sep 1, 2025
Merged

Devin-Crawford merged 16 commits into
mainfrom
fix/6400-archive

Conversation

@Devin-Crawford

Copy link
Copy Markdown
Contributor

Description

Save project with the same name as the archive. Increment the file name suffix if the file already exists.

Issue linked

#6400

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

Devin added 2 commits August 19, 2025 14:28
- When an archive file is recovered, save
  the project with the same name. Use a suffix "_n" with "n" being an integer so existing files are not overwritten.
- Update unit test test_01_Design.py so individual tests are independent from each other.
Change the return type from str to Path
@Devin-Crawford
Devin-Crawford requested a review from a team as a code owner August 19, 2025 13:00
@github-actions github-actions Bot added the bug Something isn't working label Aug 19, 2025
@Devin-Crawford Devin-Crawford changed the title FIX: 6400 save project after recovering archive FIX: Save project after recovering archive Aug 19, 2025
@codecov

codecov Bot commented Aug 19, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.93%. Comparing base (c13d411) to head (cc3b934).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6553      +/-   ##
==========================================
+ Coverage   74.24%   81.93%   +7.69%     
==========================================
  Files         242      242              
  Lines       75950    75959       +9     
==========================================
+ Hits        56386    62235    +5849     
+ Misses      19564    13724    -5840     
🚀 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.

@Devin-Crawford
Devin-Crawford enabled auto-merge (squash) August 20, 2025 06:10
Comment thread tests/system/general/test_01_Design.py Resolved
Comment thread src/ansys/aedt/core/desktop.py Resolved

@Samuelopez-ansys Samuelopez-ansys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Devin-Crawford

Copy link
Copy Markdown
Contributor Author

@Samuelopez-ansys , @gmalinve : I added one more line in the unit test to hopefully improve codecov, but the lines being flagged by the codecov check and causing the failure for the PR are in fact tested. You can step through the unit test code with the debugger to verify this. Is there any way we can bypass the codecov/patch errors and merge this PR?

@Devin-Crawford

Copy link
Copy Markdown
Contributor Author

@gmalinve , @Samuelopez-ansys , @maxcapodi78 : Could you please approve? I fixed the unit test.

Comment thread tests/system/general/test_01_Design.py Resolved
@Devin-Crawford
Devin-Crawford merged commit 38efafd into main Sep 1, 2025
@Devin-Crawford
Devin-Crawford deleted the fix/6400-archive branch September 1, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants