forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] use rayci to build windows wheels (ray-project#43447)
Context: this is a series of PR to move windows wheel to rayci (and deprecate .buildkite/windows_ci.sh). The mentioned script runs into issues when I try to upgrade it to python 3.11. Moving the script to rayci to uniform the window build environment. - Reuse copy_build_artifacts script for windows. This will allow the wheel to be uploaded to buildkite artifact, in addition to the release s3 bucket - Support volumes when creating a windows container. I do this by moving volumes to the base container class, so that both linux and windows container and initialize volumes. volumes is required in a later PR when I use the windows container to build windows wheel. - Use rayci and windowsbuild wanda image to build windows wheel Test: - CI - windows wheel are uploaded to buildkite artifact: https://buildkite.com/ray-project/premerge/builds/20211#018de8cf-3bc5-4c4b-aec8-593a4e89f311 - postmerge run: https://buildkite.com/ray-project/postmerge/builds/3123#018de8df-1d45-4c4d-b1e4-4781488e81fb/6-12182 Signed-off-by: can <[email protected]>
- Loading branch information
1 parent
d03a773
commit 104e69c
Showing
13 changed files
with
111 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from ci.ray_ci.builder import main | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import os | ||
|
||
from ci.ray_ci.windows_container import WindowsContainer, WORKDIR | ||
|
||
|
||
class WindowsBuilderContainer(WindowsContainer): | ||
def __init__( | ||
self, | ||
python_version: str, | ||
upload: bool, | ||
) -> None: | ||
super().__init__( | ||
"windowsbuild", | ||
volumes=[ | ||
f"{os.path.abspath(os.environ.get('RAYCI_CHECKOUT_DIR'))}:{WORKDIR}", | ||
], | ||
) | ||
self.python_version = python_version | ||
self.upload = upload | ||
|
||
def run(self) -> None: | ||
cmds = [ | ||
"powershell ci/pipeline/fix-windows-container-networking.ps1", | ||
f"export BUILD_ONE_PYTHON_ONLY={self.python_version}", | ||
"./python/build-wheel-windows.sh", | ||
] | ||
if self.upload: | ||
cmds += ["./ci/build/copy_build_artifacts.sh"] | ||
self.run_script(cmds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters