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

[release_2.1] Write auto-created private data dirs to pytest dir instead of /tmp (#916) #941

Merged

Conversation

samdoran
Copy link
Contributor

Backport of #916 for Ansible Runner 2.1.

…ead of /tmp (ansible#916)

Write auto-created private data dirs to pytest dir instead of /tmp

I briefly discussed this option with @samdoran in ansible#901
After this patch, we create directories that look like:
/tmp/pytest-of-alancoding/pytest-0/popen-gw2/test_no_dst_all_dirs_src__dir_0/.ansible-runner-2fpvb4uo

This is as opposed to leaving around directories like /tmp/.ansible-runner-2fpvb4uo. There are a lot of these, like ~1,700 created with a single test run excluding the integration tests.
There are still a few directories created in /tmp after this, but it's a handful, not a flood.

Reviewed-by: Sam Doran <github@samdoran.com>
Reviewed-by: None <None>
(cherry picked from commit 7f9de03)

Co-authored-by: Alan Rominger <arominge@redhat.com>
@samdoran samdoran requested a review from a team as a code owner December 14, 2021 17:24
@Shrews Shrews added the gate label Dec 14, 2021
Copy link
Contributor

@ansible-zuul ansible-zuul bot left a comment

Choose a reason for hiding this comment

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

LGTM!

@ansible-zuul ansible-zuul bot merged commit b2455f3 into ansible:release_2.1 Dec 14, 2021
@samdoran samdoran deleted the backport-7f9de03-release_2.1 branch December 17, 2021 17:03
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.

None yet

3 participants