-
Notifications
You must be signed in to change notification settings - Fork 297
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
Enable Spark Fast Register #2765
Conversation
@@ -270,6 +270,9 @@ def _resolve_abs_module_name(self, path: str, package_root: typing.Optional[str] | |||
# Let us remove any extensions like .py | |||
basename = os.path.splitext(basename)[0] | |||
|
|||
if not Path(dirname).is_dir(): |
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.
cc @fiedlerNr9 |
current_time = time.time() | ||
current_dir = os.getcwd() | ||
# Set the modification time of all files in the current directory to the current time | ||
# since fast register doesn't preserve the modification time of the files and make_archive |
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.
we arbitrarily set the time in fast register to 1970 just cuz. it can be any constant. if we make it 1980, would that make this cleaner?
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.
set it to 1980
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Co-authored-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2765 +/- ##
===========================================
- Coverage 100.00% 93.34% -6.66%
===========================================
Files 5 39 +34
Lines 122 1712 +1590
===========================================
+ Hits 122 1598 +1476
- Misses 0 114 +114
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Kevin Su <pingsutw@apache.org> Co-authored-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Signed-off-by: Kevin Su <pingsutw@apache.org> Co-authored-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Tracking issue
NA
Why are the changes needed?
When we fast-register a Spark task, we will always get a
module not found
error in the Spark executors.What changes were proposed in this pull request?
Archive the current directory into a zip file and send it to the spark executor. Exectors will load the module from that zip file.
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
NA
Docs link
NA