Skip to content

Removes hard-coding of /tmp filesystem cache#19208

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-hardcoded-tmp-dir
Oct 26, 2021
Merged

Removes hard-coding of /tmp filesystem cache#19208
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-hardcoded-tmp-dir

Conversation

@potiuk

@potiuk potiuk commented Oct 25, 2021

Copy link
Copy Markdown
Member

Filesystem cache has been hard-coded to /tmp. This would not
work for Windows but (more importantly) it does not work in case
the user has no access to /tmp directory and TMPDIR is set to
a different value.

Fixes: #19206


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

Filesystem cache has been hard-coded to /tmp. This would not
work for Windows but (more importantly) it does not work in case
the user has no access to /tmp directory and TMPDIR is set to
a different value.

Fixes: apache#19206
@mik-laj

mik-laj commented Oct 25, 2021

Copy link
Copy Markdown
Member

Can you also update:

candidate = "/tmp/" + ''.join(

?

@potiuk

potiuk commented Oct 26, 2021

Copy link
Copy Markdown
Member Author

Can you also update:

candidate = "/tmp/" + ''.join(

Should be done as separate PR I think.

@potiuk

potiuk commented Oct 26, 2021

Copy link
Copy Markdown
Member Author

Separate PR opened for cloudsql /tmp in #19229 @mik-laj

@potiuk potiuk requested a review from mik-laj October 26, 2021 15:11
@potiuk potiuk mentioned this pull request Oct 26, 2021
@github-actions

Copy link
Copy Markdown
Contributor

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label Oct 26, 2021
@potiuk potiuk merged commit 77c9268 into apache:main Oct 26, 2021
@potiuk potiuk deleted the fix-hardcoded-tmp-dir branch October 26, 2021 16:11
sharon2719 pushed a commit to sharon2719/airflow that referenced this pull request Oct 27, 2021
Filesystem cache has been hard-coded to /tmp. This would not
work for Windows but (more importantly) it does not work in case
the user has no access to /tmp directory and TMPDIR is set to
a different value.

Fixes: apache#19206
aran3 added a commit to aran3/airflow that referenced this pull request Oct 27, 2021
potiuk pushed a commit that referenced this pull request Oct 27, 2021
jedcunningham pushed a commit that referenced this pull request Nov 3, 2021
…19255)

respecting tempdir enviroment variables.
See #19208, #19229.

(cherry picked from commit bce8883)
@potiuk potiuk added this to the Airflow 2.2.3 milestone Dec 1, 2021
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webserver uses /tmp and does not respect user-configured tempdir path

3 participants