Skip to content

Commit

Permalink
Use dev images for independent cluster testing (#518)
Browse files Browse the repository at this point in the history
* Switch to dask dev images

* Use mamba for conda installs in images

* Remove sleep call for installation

* Use timeout / until to wait for cluster to be initialized
  • Loading branch information
charlesbluca authored May 16, 2022
1 parent 48eb983 commit 7b4bc55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ version: '3'
services:
dask-scheduler:
container_name: dask-scheduler
image: daskdev/dask:latest
image: daskdev/dask:dev
command: dask-scheduler
ports:
- "8786:8786"
dask-worker:
container_name: dask-worker
image: daskdev/dask:latest
image: daskdev/dask:dev
command: dask-worker dask-scheduler:8786
environment:
USE_MAMBA: "true"
EXTRA_CONDA_PACKAGES: "pyarrow>1.0.0" # required for parquet IO
volumes:
- /tmp:/tmp
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ jobs:
run: |
docker-compose -f .github/docker-compose.yaml up -d
# Wait for installation
sleep 40
# periodically ping logs until a connection has been established; assume failure after 2 minutes
timeout 2m bash -c 'until docker logs dask-worker 2>&1 | grep -q "Starting established connection"; do sleep 1; done'
docker logs dask-scheduler
docker logs dask-worker
Expand Down

0 comments on commit 7b4bc55

Please sign in to comment.