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

fix: workaround for git test workflow for Python 3.8 #1369

Merged
merged 3 commits into from
Oct 16, 2024

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.

@@ -115,7 +115,7 @@ def tearDown(self) -> None:
"""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
13 checks passed
@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.

3 participants