Commit cd65cdf
[devprod] [ci] [tests] auto discover examples ci configs (#59478)
## Description
i'm hoping to make the example publishing process smoother when setting
up the CI for testings (release tests):
Currently, when publishing examples and setting up release tests in CI,
we have to manually tweak multiple BUILD.bazel to make our `ci/aws.yaml`
and `ci/gce.yaml` discoverable to the CI release package
(release/BUILD.bazel). It adds additional overhead/confusion to the
writer and clutter the files over time
solution:
Consolidate all `ci/aws.yaml` and `gce.yaml` configs into a single
filegroup under doc/BUILD.bazel. Discover that unique filegroup from
release/BUILD.bazel
The only requirement is to match the `doc/source/**/ci/aws.yaml` or
`doc/source/**/ci/gce.yaml` pattern which maches our standard way to
publish examples
### Changes
- **Updated** `doc/BUILD.bazel` to define one single filegroup for all
of `ci/` configs. Use glob patterns to catch all `aws.yaml` and
`gce.yaml` under a `ci/` folder
- **Updated** `release/BUILD.bazel` to reference that filegroup
- **Updated** all inner doc/** BUILD.bazel accordingly with their own
local filegroups
### Tests
<details>
<summary>Manual review with bazel query 'kind("source file",
deps(//doc:all_examples_ci_configs))'</summary>
```
(repo_ray_docs) aydin@aydin-JCDF7JJD9H doc % bazel query 'kind("source file", deps(//doc:all_examples_ci_configs))'
//doc:source/ray-overview/examples/e2e-audio/ci/aws.yaml
//doc:source/ray-overview/examples/e2e-audio/ci/gce.yaml
//doc:source/ray-overview/examples/e2e-multimodal-ai-workloads/ci/aws.yaml
//doc:source/ray-overview/examples/e2e-multimodal-ai-workloads/ci/gce.yaml
//doc:source/ray-overview/examples/e2e-rag/ci/aws.yaml
//doc:source/ray-overview/examples/e2e-rag/ci/gce.yaml
//doc:source/ray-overview/examples/e2e-timeseries/ci/aws.yaml
//doc:source/ray-overview/examples/e2e-timeseries/ci/gce.yaml
//doc:source/ray-overview/examples/e2e-xgboost/ci/aws.yaml
//doc:source/ray-overview/examples/e2e-xgboost/ci/gce.yaml
//doc:source/ray-overview/examples/entity-recognition-with-llms/ci/aws.yaml
//doc:source/ray-overview/examples/entity-recognition-with-llms/ci/gce.yaml
//doc:source/ray-overview/examples/langchain_agent_ray_serve/ci/aws.yaml
//doc:source/ray-overview/examples/langchain_agent_ray_serve/ci/gce.yaml
//doc:source/ray-overview/examples/llamafactory-llm-fine-tune/ci/aws.yaml
//doc:source/ray-overview/examples/llamafactory-llm-fine-tune/ci/gce.yaml
//doc:source/ray-overview/examples/mcp-ray-serve/ci/aws.yaml
//doc:source/ray-overview/examples/mcp-ray-serve/ci/gce.yaml
//doc:source/ray-overview/examples/object-detection/ci/aws.yaml
//doc:source/ray-overview/examples/object-detection/ci/gce.yaml
//doc:source/serve/tutorials/asynchronous-inference/ci/aws.yaml
//doc:source/serve/tutorials/asynchronous-inference/ci/gce.yaml
//doc:source/serve/tutorials/deployment-serve-llm/ci/aws.yaml
//doc:source/serve/tutorials/deployment-serve-llm/ci/gce.yaml
//doc/source/data/examples:unstructured_data_ingestion/ci/aws.yaml
//doc/source/data/examples:unstructured_data_ingestion/ci/gce.yaml
//doc/source/train/examples/pytorch:deepspeed_finetune/ci/aws.yaml
//doc/source/train/examples/pytorch:deepspeed_finetune/ci/gce.yaml
//doc/source/train/examples/pytorch:distributing-pytorch/ci/aws.yaml
//doc/source/train/examples/pytorch:distributing-pytorch/ci/gce.yaml
//doc/source/train/examples/pytorch:pytorch-fsdp/ci/aws.yaml
//doc/source/train/examples/pytorch:pytorch-fsdp/ci/gce.yaml
//doc/source/train/examples/pytorch:pytorch-profiling/ci/aws.yaml
//doc/source/train/examples/pytorch:pytorch-profiling/ci/gce.yaml
Loading: 1 packages loaded
```
</details>
I also ran all release tests whose ci/ configs are affected by this
change and verified that their ci/ configuration is still being read
correctly (i.e., the Anyscale job is launched as expected).
https://buildkite.com/ray-project/release/builds/73954#
(test failure are due to application-level errors after launching the
anyscale job, not because of this change)
---------
Signed-off-by: Aydin Abiar <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
Co-authored-by: Aydin Abiar <[email protected]>1 parent 8c3a713 commit cd65cdf
File tree
13 files changed
+76
-45
lines changed- doc
- source
- data/examples
- ray-core/examples
- train/examples
- lightning
- pytorch
- deepspeed_finetune/ci
- distributing-pytorch/ci
- pytorch-fsdp/ci
- pytorch-profiling/ci
- transformers
- tune/examples
- release
13 files changed
+76
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
713 | 716 | | |
714 | | - | |
| 717 | + | |
715 | 718 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
730 | 729 | | |
731 | 730 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
This file was deleted.
0 commit comments