-
Notifications
You must be signed in to change notification settings - Fork 299
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
Change dirhash
package to checksumdir
#708
Change dirhash
package to checksumdir
#708
Conversation
Thank you for opening this pull request! 🙌
|
@martinlyra, thanks for creating this PR. Can we have cc: @wild-endeavor |
Also, sign off your commits by referring to https://github.com/flyteorg/flytekit/pull/708/checks?check_run_id=3929898169. |
39ac560
to
58e1d8b
Compare
Codecov Report
@@ Coverage Diff @@
## master #708 +/- ##
=======================================
Coverage 85.74% 85.74%
=======================================
Files 357 357
Lines 29747 29747
Branches 2428 2428
=======================================
Hits 25507 25507
Misses 3601 3601
Partials 639 639
Continue to review full report at Codecov.
|
flytekit/tools/fast_registration.py
Outdated
@@ -18,7 +18,7 @@ def compute_digest(source_dir: _os.PathLike) -> str: | |||
:param _os.PathLike source_dir: | |||
:return Text: | |||
""" | |||
return f"fast{_dirhash.dirhash(source_dir, 'md5', match=['*.py'])}" | |||
return f"fast{_dirhash(source_dir, 'md5')}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you simply import checksumdir without an alias and make sure you use chemsumdir.dirhash
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be resolved now in c03c6fb
Signed-off-by: Martin Lyrå <[email protected]>
Signed-off-by: Martin Lyrå <[email protected]>
Signed-off-by: Martin Lyrå <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
ee1ef6d
to
90054e7
Compare
Signed-off-by: Martin Lyrå <[email protected]>
Signed-off-by: Martin Lyrå <[email protected]>
90054e7
to
c03c6fb
Compare
Signed-off-by: Martin Lyrå <[email protected]>
b711676
to
d71e7b8
Compare
Signed-off-by: Martin Lyrå <[email protected]>
2ed2f25
to
c63377c
Compare
Congrats on merging your first pull request! 🎉 |
Signed-off-by: Eduardo Apolinario <[email protected]> Signed-off-by: Martin Lyrå <[email protected]> Signed-off-by: Robert Everson <[email protected]>
TL;DR
This is a proposed fix to a compatibility issue with Windows as described in this issue: flyteorg/flyte#1561 (with additional details in the Slack thread). In short the issue stems from an package called
dirtree
which depends on an other package by the same author;scantree
. Since the packages are no longer maintained,checksumdir
is proposed to replace it.Type
Are all requirements met?
Complete description
The package
dirhash
which depends on the culpritscantree
package is replaced bychecksumdir
infast_registration.py
Unfortunately,
scantree
usesposix
directly instead ofos
which becomes an issue with Windows. After somewhat thorough deliberation in Slack, we reached an impasse that we should replacedirhash
withchecksumdir
and see if it would help resolve the compatibility issue.In order to improve compatibility on Windows. An explicit
encoding="utf-8"
is added to anopen()
insetup.py
as well.Tracking Issue
flyteorg/flyte#1561
Follow-up issue
flyteorg/flyte#1561