Skip to content

Conversation

rgoya
Copy link
Contributor

@rgoya rgoya commented Jun 12, 2025

Fixes #10775

There was a regression introduced in #10603 where, when dealing with a change of behaviour in platformdirs, the fix effectively caused Linux (Unix) systems to ignore the DVC_SITE_CACHE_DIR environment variable.

This PR ensures that site_cache_dir() returns value of the DVC_SITE_CACHE_DIR variable is returned if it exists, and deals with the platformdirs issues if not.


Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@github-project-automation github-project-automation bot moved this to Backlog in DVC Jun 12, 2025
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.05%. Comparing base (2431ec6) to head (86ea91c).
Report is 66 commits behind head on main.

Files with missing lines Patch % Lines
dvc/dirs.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10776      +/-   ##
==========================================
+ Coverage   90.68%   91.05%   +0.36%     
==========================================
  Files         504      504              
  Lines       39795    40007     +212     
  Branches     3141     3161      +20     
==========================================
+ Hits        36087    36427     +340     
+ Misses       3042     2951      -91     
+ Partials      666      629      -37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@skshetry skshetry enabled auto-merge (squash) June 12, 2025 07:05
@skshetry skshetry moved this from Backlog to Review In Progress in DVC Jun 12, 2025
@skshetry skshetry merged commit 346b1c0 into iterative:main Jun 12, 2025
41 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in DVC Jun 12, 2025
@skshetry
Copy link
Collaborator

@rgoya, Thank you for contributing!

@rgoya
Copy link
Contributor Author

rgoya commented Jun 12, 2025

@rgoya, Thank you for contributing!

👍

This had me scratching my head, it was working on my Macos laptop, but breaking in our CI pipeline (bazel test won't let me write to /var/tmp/). Needless to say, looking forward to the next release! :)

(Also, I have a related follow up bug and fix coming up)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

DVC_SITE_CACHE_DIR environment variable is ignored in Linux
2 participants