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

index: check dep.hash_name for imports #10270

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jan 31, 2024

Otherwise it might result in us trying to use etags with cache:

  File "/.../.venv/lib/python3.11/site-packages/dvc_objects/fs/system.py", line 91, in reflink
    src_fd = os.open(src, os.O_RDONLY)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/.../.dvc/cache/files/md5/0x/8DC11473AB110FE'

@efiop efiop force-pushed the fix-index-imp branch 3 times, most recently from 6e1320e to 3be8d5c Compare February 2, 2024 20:42
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (06abf73) 90.42% compared to head (c2d874c) 90.18%.

Files Patch % Lines
dvc/repo/index.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10270      +/-   ##
==========================================
- Coverage   90.42%   90.18%   -0.24%     
==========================================
  Files         494      494              
  Lines       37821    37824       +3     
  Branches     5469     5470       +1     
==========================================
- Hits        34201    34113      -88     
- Misses       2986     3055      +69     
- Partials      634      656      +22     

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

@efiop efiop self-assigned this Feb 6, 2024
@efiop efiop force-pushed the fix-index-imp branch 8 times, most recently from c49afb1 to 7010c85 Compare February 15, 2024 02:28
@efiop efiop force-pushed the fix-index-imp branch 5 times, most recently from a5b3c26 to b4d5dc0 Compare February 15, 2024 23:52
@@ -106,6 +106,7 @@ def test_import_file(self, tmp_dir, dvc, remote_version_aware):
(remote_version_aware / "file").write_text("modified")
assert dvc.status().get("file.dvc") == [
{"changed deps": {"remote://upstream/file": "update available"}},
{"changed outs": {"file": "not in cache"}},
Copy link
Contributor Author

@efiop efiop Feb 19, 2024

Choose a reason for hiding this comment

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

dvc status doesn't yet work with fs-based cache and it happens to show up here, so this will have to wait a bit for #9333

@efiop efiop changed the title [WIP] index: check dep.hash_name for imports index: check dep.hash_name for imports Feb 19, 2024
@efiop efiop marked this pull request as ready for review February 19, 2024 13:16
@efiop efiop merged commit 0635b0c into iterative:main Feb 19, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant