forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
others.rayci.yml
83 lines (78 loc) · 3.02 KB
/
others.rayci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
group: others
depends_on:
- forge
steps:
# dependencies
- label: ":tapioca: build: pip-compile dependencies"
key: pip_compile_dependencies
instance_type: small
commands:
# uncomment the following line to update the pinned versions of pip dependencies
# to the latest versions; otherwise, the pinned versions will be re-used as much
# as possible
# - rm ./python/requirements_compiled.txt
- cp ./python/requirements_compiled.txt requirements_compiled_backup.txt
- ./ci/ci.sh compile_pip_dependencies
- cp -f ./python/requirements_compiled.txt /artifact-mount/
- diff ./python/requirements_compiled.txt requirements_compiled_backup.txt || (echo "requirements_compiled.txt is not up to date. Please download it from Artifacts tab and git push the changes." && exit 1)
soft_fail: true
job_env: oss-ci-base_test-py3.11
depends_on: oss-ci-base_test-multipy
# docs
- name: doctestbuild
wanda: ci/docker/doctest.build.wanda.yaml
depends_on: oss-ci-base_build
- label: doc tests
instance_type: large
commands:
# doc tests
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/... //doc/... none
--build-name doctestbuild
--only-tags doctest
--except-tags gpu
--parallelism-per-worker 3
# doc memory pressure example
- bazel run //ci/ray_ci:test_in_docker -- //doc/... core
--build-name doctestbuild
--only-tags mem_pressure
--except-tags gpu
--skip-ray-installation
depends_on: doctestbuild
# java
- label: ":java: java tests"
tags: java
instance_type: medium
commands:
- bazel run //ci/ray_ci:test_in_docker -- //... core --build-only
- docker run -i --rm --volume /tmp/artifacts:/artifact-mount --shm-size=2.5gb
"$${RAYCI_WORK_REPO}":"$${RAYCI_BUILD_ID}"-corebuild /bin/bash -iecuo pipefail
"./java/test.sh"
depends_on: corebuild
# bot
- label: ":robot_face: CI weekly green metric"
tags:
- skip-on-premerge
- oss
if: build.branch == "master"
instance_type: small
commands:
- bazel run //ci/ray_ci/automation:weekly_green_metric -- --production
- label: ":robot_face: {{matrix}} microcheck test coverage"
tags:
- skip-on-premerge
- oss
if: build.branch == "master"
instance_type: small
commands:
- bazel run //ci/ray_ci/automation:determine_microcheck_tests -- {{matrix}} 100 --test-prefix linux:__ --production
# we use master branch to determine microcheck tests for darwin and windows, because darwin and windows tests do not run on premerge branches
- bazel run //ci/ray_ci/automation:determine_microcheck_tests -- {{matrix}} 100 --test-prefix darwin:__ --consider-master-branch --production
- bazel run //ci/ray_ci/automation:determine_microcheck_tests -- {{matrix}} 100 --test-prefix windows:__ --consider-master-branch --production
matrix:
- "core"
- "serverless"
- "serve"
- "data"
- "ml"
- "rllib"
- "ci"