Skip to content

Commit

Permalink
Exclude python_history from the Ray runtime environment. (#3140)
Browse files Browse the repository at this point in the history
* test

Signed-off-by: Kevin Su <[email protected]>

* Enable tmate in case of failure

Signed-off-by: Eduardo Apolinario <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
pingsutw and eapolinario authored Feb 19, 2025
1 parent 806ff20 commit 80ddcda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ jobs:
AWS_SECRET_ACCESS_KEY: miniostorage
run: |
make ${{ matrix.makefile-cmd }}
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 60
- name: Codecov
uses: codecov/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion plugins/flytekit-ray/flytekitplugins/ray/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def pre_execute(self, user_params: ExecutionParameters) -> ExecutionParameters:
working_dir = os.getcwd()
init_params["runtime_env"] = {
"working_dir": working_dir,
"excludes": ["script_mode.tar.gz", "fast*.tar.gz"],
"excludes": ["script_mode.tar.gz", "fast*.tar.gz", ".python_history"],
}

ray.init(**init_params)
Expand Down

0 comments on commit 80ddcda

Please sign in to comment.