Skip to content

Conversation

@LennartPurucker
Copy link
Contributor

Our Python 3.8 tests kept failing due to temporary files not being deleted in our pytest setup.

This was because, for some unexplainable reason, oslo concurrency lock files were created after a pytest fixture closed. This pytext fixture was used in a parameterized pytest and even deleted the lock file itself. However, the lock files were re-created after the fixture finished.

As this only affects our git workflow and only for Python 3.8, I added a skip to the test that causes this problem, as far as I know.

@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.05%. Comparing base (8261a87) to head (013ab28).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1369      +/-   ##
===========================================
- Coverage    84.07%   84.05%   -0.02%     
===========================================
  Files           38       38              
  Lines         5305     5301       -4     
===========================================
- Hits          4460     4456       -4     
  Misses         845      845              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LennartPurucker
Copy link
Contributor Author

The previous point is still the root cause but the fix did not work. Thus, we now skip it in the workflow for 3.8.

"""Tear down the test"""
os.chdir(self.cwd)
try:
shutil.rmtree(self.workdir, ignore_errors=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I introduced this in another PR to fix this issue but it did not help. Hence, I removed it here again.

Copy link
Collaborator

@eddiebergman eddiebergman left a comment

Choose a reason for hiding this comment

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

lit

@LennartPurucker LennartPurucker merged commit 82d8ffa into develop Oct 16, 2024
@LennartPurucker LennartPurucker deleted the fix/py38_test branch October 16, 2024 11:20
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.

4 participants