pipeline.arm64.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. - label: ":mechanical_arm: :ferris_wheel: ARM64 Linux wheels"
  2. conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
  3. instance_size: arm64-medium
  4. commands:
  5. # Build the wheels
  6. - UPLOAD_WHEELS_AS_ARTIFACTS=1 LINUX_WHEELS=1 ./ci/ci.sh build
  7. # Upload the wheels
  8. # We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
  9. - if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
  10. - pip install -q docker aws_requests_auth boto3
  11. - ./ci/env/env_info.sh
  12. # Upload to branch directory.
  13. - python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
  14. # Upload to latest directory.
  15. - if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
  16. - label: ":mechanical_arm: :ferris_wheel: ARM64 Post-wheels tests"
  17. conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
  18. instance_size: arm64-medium
  19. commands:
  20. - LINUX_WHEELS=1 ./ci/ci.sh build
  21. - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  22. - ./ci/env/env_info.sh
  23. - bazel test --config=ci $(./ci/run/bazel_export_options)
  24. --test_tag_filters=post_wheel_build
  25. --test_env=CONDA_EXE
  26. --test_env=CONDA_PYTHON_EXE
  27. --test_env=CONDA_SHLVL
  28. --test_env=CONDA_PREFIX
  29. --test_env=CONDA_DEFAULT_ENV
  30. --test_env=CI
  31. --test_env=RAY_CI_POST_WHEEL_TESTS=True
  32. python/ray/tests/... python/ray/serve/... python/ray/tune/... rllib/... doc/...
  33. # This currently takes ~3 hours and times out often.
  34. # Enable this when ARM debug wheels are actually needed (and look into speeding this up).
  35. #- label: ":mechanical_arm: :ferris_wheel: ARM64 Debug Wheels"
  36. # conditions:
  37. # [
  38. # "RAY_CI_LINUX_WHEELS_AFFECTED",
  39. # ]
  40. # instance_size: arm64-medium
  41. # commands:
  42. # # Build the debug wheels
  43. # - RAY_DEBUG_BUILD=debug LINUX_WHEELS=1 ./ci/ci.sh build
  44. # # Upload the wheels.
  45. # # We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
  46. # - if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
  47. # - pip install -q docker aws_requests_auth boto3
  48. # - ./ci/env/env_info.sh
  49. # # Upload to branch directory.
  50. # - python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
  51. # # Upload to latest directory.
  52. # - if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
  53. - label: ":mechanical_arm: :docker: Build Images: py37 [aarch64] (1/2)"
  54. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  55. instance_size: arm64-medium
  56. commands:
  57. - LINUX_WHEELS=1 ./ci/ci.sh build
  58. - pip install -q docker aws_requests_auth boto3
  59. - ./ci/env/env_info.sh
  60. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  61. - python ./ci/build/build-docker-images.py --py-versions py37 --device-types cpu cu112 --build-type BUILDKITE --build-base --suffix aarch64
  62. - label: ":mechanical_arm: :docker: Build Images: py37 [aarch64] (2/2)"
  63. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  64. instance_size: arm64-medium
  65. commands:
  66. - LINUX_WHEELS=1 ./ci/ci.sh build
  67. - pip install -q docker aws_requests_auth boto3
  68. - ./ci/env/env_info.sh
  69. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  70. - python ./ci/build/build-docker-images.py --py-versions py37 --device-types cu113 cu116 cu118 --build-type BUILDKITE --build-base --suffix aarch64
  71. - label: ":mechanical_arm: :docker: Build Images: py38 [aarch64] (1/2)"
  72. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  73. instance_size: arm64-medium
  74. commands:
  75. - LINUX_WHEELS=1 ./ci/ci.sh build
  76. - pip install -q docker aws_requests_auth boto3
  77. - ./ci/env/env_info.sh
  78. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  79. - python ./ci/build/build-docker-images.py --py-versions py38 --device-types cpu cu112 --build-type BUILDKITE --build-base --suffix aarch64
  80. - label: ":mechanical_arm: :docker: Build Images: py38 [aarch64] (2/2)"
  81. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  82. instance_size: arm64-medium
  83. commands:
  84. - LINUX_WHEELS=1 ./ci/ci.sh build
  85. - pip install -q docker aws_requests_auth boto3
  86. - ./ci/env/env_info.sh
  87. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  88. - python ./ci/build/build-docker-images.py --py-versions py38 --device-types cu113 cu116 cu118 --build-type BUILDKITE --build-base --suffix aarch64
  89. - label: ":mechanical_arm: :docker: Build Images: py39 [aarch64] (1/2)"
  90. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  91. instance_size: arm64-medium
  92. commands:
  93. - LINUX_WHEELS=1 ./ci/ci.sh build
  94. - pip install -q docker aws_requests_auth boto3
  95. - ./ci/env/env_info.sh
  96. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  97. - python ./ci/build/build-docker-images.py --py-versions py39 --device-types cpu cu112 --build-type BUILDKITE --build-base --suffix aarch64
  98. - label: ":mechanical_arm: :docker: Build Images: py39 [aarch64] (2/2)"
  99. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  100. instance_size: arm64-medium
  101. commands:
  102. - LINUX_WHEELS=1 ./ci/ci.sh build
  103. - pip install -q docker aws_requests_auth boto3
  104. - ./ci/env/env_info.sh
  105. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  106. - python ./ci/build/build-docker-images.py --py-versions py39 --device-types cu113 cu116 cu118 --build-type BUILDKITE --build-base --suffix aarch64
  107. - label: ":mechanical_arm: :docker: Build Images: py310 [aarch64] (1/2)"
  108. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  109. instance_size: arm64-medium
  110. commands:
  111. - LINUX_WHEELS=1 ./ci/ci.sh build
  112. - pip install -q docker aws_requests_auth boto3
  113. - ./ci/env/env_info.sh
  114. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  115. - python ./ci/build/build-docker-images.py --py-versions py310 --device-types cpu cu112 --build-type BUILDKITE --build-base --suffix aarch64
  116. - label: ":mechanical_arm: :docker: Build Images: py310 [aarch64] (2/2)"
  117. conditions: ["RAY_CI_PYTHON_DEPENDENCIES_AFFECTED", "RAY_CI_DOCKER_AFFECTED", "RAY_CI_CORE_CPP_AFFECTED"]
  118. instance_size: arm64-medium
  119. commands:
  120. - LINUX_WHEELS=1 ./ci/ci.sh build
  121. - pip install -q docker aws_requests_auth boto3
  122. - if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
  123. - python ./ci/build/build-docker-images.py --py-versions py310 --device-types cu113 cu116 cu118 --build-type BUILDKITE --build-base --suffix aarch64