Skip to content

Conversation

@mthrok
Copy link
Contributor

@mthrok mthrok commented May 11, 2022

On CircleCI, Windows unittests are failing for Python 3.7 with
PermissionError at the end of test when it cleans up temporary
directory.

According to the discussion python/cpython#74168,
this is caused by a known issue with shutil.rmtree.

In the above thread it is advised to simply ignore the error as it
is not guaranteed that temp directories are cleaned up.

This commit follows the same path and simply ignore the error
so that our CI gets back to green.

On CircleCI, Windows unittests are failing for Python 3.7 with
`PermissionError` at the end of test when it cleans up temporary
directory.

According to the discussion python/cpython#74168,
this is caused by a known issue with `shutil.rmtree`.

In the above thread it is advised to simply ignore the error as it
is not guaranteed that temp directories are cleaned up.

This commit follows the same path and simply ignore the error
so that our CI gets back to green.
@mthrok mthrok force-pushed the fix-windows-temp-dir branch from 6c0b3ca to e93ee9c Compare May 11, 2022 04:29
@mthrok mthrok marked this pull request as ready for review May 11, 2022 04:50
@mthrok mthrok changed the title Ignore TempDir clean up error. Ignore TempDir clean up error May 11, 2022
@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@carolineechen carolineechen left a comment

Choose a reason for hiding this comment

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

looks good, thanks!

@github-actions
Copy link

Hey @mthrok.
You merged this PR, but labels were not properly added. Please add a primary and secondary label (See https://github.com/pytorch/audio/blob/main/.github/process_commit.py)

@mthrok mthrok deleted the fix-windows-temp-dir branch May 11, 2022 15:08
@mthrok mthrok added the other label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants