Skip to content

FIX: Join load thread before opening project - #6513

Merged
Samuelopez-ansys merged 3 commits into
mainfrom
join-load-thread-before-open
Aug 13, 2025
Merged

Samuelopez-ansys merged 3 commits into
mainfrom
join-load-thread-before-open

Conversation

@isaacwaldron

@isaacwaldron isaacwaldron commented Aug 12, 2025 •

Copy link
Copy Markdown
Contributor

Ensure that load_aedt_thread has completed before opening the project in Design.__init__ to accommodate AEDT's expectation of exclusive access to the AEDT project file.

Description

During Design.__init__, join the thread launched to load properties from the AEDT project file before loading the project by setting Design.oproject.

Based on downstream observations, testing this would require creating a highly-loaded system and even then the bug can be reproduced relatively rarely (but reasonably common on a large test suite handling tens or hundreds of AEDT projects). Therefore I have omitted specific tests. Please see #6512 for a way to reproduce the problem reliably.

Issue linked

Fixes #6512

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

@isaacwaldron
isaacwaldron requested a review from a team as a code owner August 12, 2025 03:51
@codecov

codecov Bot commented Aug 12, 2025 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6513      +/-   ##
==========================================
+ Coverage   81.90%   81.92%   +0.01%     
==========================================
  Files         236      236              
  Lines       75731    75734       +3     
==========================================
+ Hits        62030    62045      +15     
+ Misses      13701    13689      -12     
🚀 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.

@isaacwaldron
isaacwaldron force-pushed the join-load-thread-before-open branch from 331adb2 to 092e751 Compare August 12, 2025 13:23
isaacwaldron and others added 2 commits August 12, 2025 23:40
Ensure that `load_aedt_thread` has completed before opening the project
in `Design.__init__` to accommodate AEDT's expectation of exclusive
access to the AEDT project file.
@isaacwaldron
isaacwaldron force-pushed the join-load-thread-before-open branch from a09f954 to 32d2898 Compare August 13, 2025 03:40

@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!

@Samuelopez-ansys
Samuelopez-ansys merged commit 00ac247 into main Aug 13, 2025
@Samuelopez-ansys
Samuelopez-ansys deleted the join-load-thread-before-open branch August 13, 2025 14:04
Devin-Crawford pushed a commit that referenced this pull request Aug 19, 2025
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
(cherry picked from commit 00ac247)
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.

load_aedt_thread may cause Desktop to fail to open project

3 participants