Skip to content

Commit

Permalink
Download logs from ray-cluster and upload them to GitHub Actions UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Raunak Bhagat committed Nov 20, 2024
1 parent dbb07d2 commit 437eee2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/run-tpch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ jobs:
--no_pymodules
fi
- uses: lhotari/action-upterm@v1
ray rsync-down .github/assets/ray.yaml /tmp/ray ray-logs
- run: |
source .venv/bin/activate
ray down .github/assets/ray.yaml -y
python .github/scripts/csv_to_md.py output.csv output.md
echo "# Results" >> $GITHUB_STEP_SUMMARY
Expand All @@ -117,3 +115,7 @@ jobs:
with:
name: output.csv
path: output.csv
- uses: actions/upload-artifact@v4
with:
name: ray-logs
path: ray-logs
2 changes: 2 additions & 0 deletions benchmarking/tpch/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,12 @@ def get_daft_benchmark_runner_name() -> Literal["ray"] | Literal["py"] | Literal


def get_ray_runtime_env(requirements: str | None, no_pymodules: bool = False) -> dict:
daft_env_variables = dict(filter(lambda key_value: key_value[0].startswith("DAFT"), os.environ.items()))
runtime_env = {
"py_modules": None if no_pymodules else [daft],
"eager_install": True,
"env_vars": {
**daft_env_variables,
"DAFT_PROGRESS_BAR": "0",
"DAFT_RUNNER": "ray",
},
Expand Down

0 comments on commit 437eee2

Please sign in to comment.