Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tmpdir for povray rendering #675

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

danielhollas
Copy link
Contributor

@danielhollas danielhollas commented Feb 6, 2025

Stacked on top of #627 which needs to be merged first.

Fixes #676

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.37%. Comparing base (0b1651b) to head (d06764a).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #675      +/-   ##
==========================================
+ Coverage   83.33%   83.37%   +0.03%     
==========================================
  Files          17       17              
  Lines        3583     3591       +8     
==========================================
+ Hits         2986     2994       +8     
  Misses        597      597              
Flag Coverage Δ
python-3.11 83.37% <100.00%> (+0.03%) ⬆️
python-3.9 83.41% <100.00%> (+0.03%) ⬆️

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.

@@ -107,6 +109,10 @@ def test_structure_data_viewer_storage(structure_data_object):
# fmt: on
v._render_structure()

# Make sure we don't polute current working dir with tempfiles
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the fix, but is this necessary for the test to pass? If it pollutes the working dir, will the test fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's a regression test for this PR.

@danielhollas
Copy link
Contributor Author

@superstar54 I've rebased this branch to get rid of the unrelated changes, please take a look.

Copy link
Member

@superstar54 superstar54 left a comment

Choose a reason for hiding this comment

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

LGTM!

@danielhollas danielhollas merged commit c63293f into aiidalab:master Feb 6, 2025
11 checks passed
@danielhollas danielhollas deleted the use-tmp-dir branch February 6, 2025 19:06
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.

StructureViewer: Race issue in povray rendering
2 participants