ray/.buildkite
Kai Fricke 940c028540
[ci] Clean up artifacts before/after jobs (#23463)
We sometimes end up with stale wheel uploads from previous runs of a Buildkite agent. The result is that commit wheels are being overwritten from old build jobs - effectively breaking the wheel build logic.

Example:

This Agent: https://buildkite.com/organizations/ray-project/agents/4b955117-2f6c-4849-b703-3457daf69f89

- builds wheels (in post-wheels tests) for a35ebc945b
- and then runs both the Ray CPP worker and the Train + Tune tests in 6746e9f
- Usually these two tests shouldn't provide artifacts at all, but they do - these are the wheels from a35ebc945b though! Meaning these are uncleaned leftovers from the first build task.
- See here for proof of artifact upload: https://buildkite.com/ray-project/ray-builders-pr/builds/27622#d11bc514-ebd8-4e0c-a2ce-826b9bad27de

The solution is thus to always clean up the artifacts directory in the worker, i.e. `rm -rf /artifact-mount/*`

This PR adds two of such clean up instructions - once before commands are run and once after artifacts are uploaded. We can probably just do either, but it doesn't hurt to have both.
2022-03-25 13:07:20 +00:00
..
hooks [ci] Clean up artifacts before/after jobs (#23463) 2022-03-25 13:07:20 +00:00
copy_files.py [CI] Format Python code with Black (#21975) 2022-01-29 18:41:57 -08:00
Dockerfile [ci/buildkite] Add ml pipeline to speed up ML/RLLib tests (#20895) 2021-12-09 21:14:10 +00:00
Dockerfile.gpu [ci] Update GPU docker image to Ubuntu 20.04 (#22759) 2022-03-02 10:28:26 +01:00
pipeline.gpu.large.yml [ml] TorchTrainer bug fixes + GPU test (#23293) 2022-03-17 23:49:42 -07:00
pipeline.gpu.yml [ci/gpu] Move ML dependency install to Dockerfile (#21711) 2022-02-01 12:04:55 +00:00
pipeline.macos.yml run mac c++ tests with static linking (#22829) 2022-03-05 10:39:32 +09:00
pipeline.ml.yml [ml] TorchTrainer bug fixes + GPU test (#23293) 2022-03-17 23:49:42 -07:00
pipeline.windows.yml [CI] Migrate Windows Wheels to Buildkite (#21388) 2022-01-05 12:49:19 -08:00
pipeline.yml Test of KubeRay autoscaler integration (#23365) 2022-03-23 18:18:48 -07:00