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

tests: hdfs: use docker-based fixtures #4183

Merged
merged 1 commit into from
Jul 10, 2020
Merged

tests: hdfs: use docker-based fixtures #4183

merged 1 commit into from
Jul 10, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jul 8, 2020

Fixed #4054

  • ❗ I have followed the Contributing to DVC checklist.

  • 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

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

@codecov
Copy link

codecov bot commented Jul 8, 2020

Codecov Report

Merging #4183 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4183      +/-   ##
==========================================
- Coverage   92.61%   92.60%   -0.01%     
==========================================
  Files         162      162              
  Lines       11312    11312              
==========================================
- Hits        10477    10476       -1     
- Misses        835      836       +1     
Impacted Files Coverage Δ
dvc/remote/hdfs.py 92.30% <ø> (-0.86%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe1d7e9...e039c06. Read the comment docs.

@efiop efiop force-pushed the fix-4054 branch 6 times, most recently from 43fe7e2 to 526fafb Compare July 10, 2020 16:28
@@ -165,13 +165,14 @@ def get_file_hash(self, path_info):
# NOTE: pyarrow doesn't support checksum, so we need to use hadoop
regex = r".*\t.*\t(?P<checksum>.*)"
stdout = self.hadoop_fs(
f"checksum {path_info.path}", user=path_info.user
f"checksum {path_info.url}", user=path_info.user
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This worked only if your defaultFS matched the url you were connecting too.

@efiop efiop changed the title [WIP] tests: hdfs: use docker-based fixtures tests: hdfs: use docker-based fixtures Jul 10, 2020
@efiop efiop merged commit 375998c into master Jul 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-4054 branch July 10, 2020 18:38
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.

tests: create azure/oss/hdfs/etc fixtures that would launch docker containers
1 participant