Skip to content

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

Merged
LennartPurucker merged 3 commits into
developfrom
fix/py38_test
Oct 16, 2024
Merged

fix: workaround for git test workflow for Python 3.8 #1369
LennartPurucker merged 3 commits into
developfrom
fix/py38_test

Conversation

@LennartPurucker

Copy link
Copy Markdown
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

codecov-commenter commented Oct 16, 2024

Copy link
Copy Markdown

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
Copy Markdown
ContributorAuthor

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.

Comment threadopenml/testing.py
"""Tear down the test"""
os.chdir(self.cwd)
try:
shutil.rmtree(self.workdir, ignore_errors=True)

Copy link
Copy Markdown
ContributorAuthor

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.

@eddiebergmaneddiebergman left a comment

Copy link
Copy Markdown
Collaborator

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 developOct 16, 2024
@LennartPurucker
LennartPurucker deleted the fix/py38_test branch October 16, 2024 11:20
Sign up for freeto 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

@LennartPurucker@codecov-commenter@eddiebergman