mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 22:53:49 +08:00
Set up testing and wheels for Windows on GitHub Actions (#8131)
* Move some Java tests into ci.sh * Move C++ worker tests into ci.sh * Define run() * Prepare to move Python tests into ci.sh * Fix issues in install-dependencies.sh * Reload environment for GitHub Actions * Move wheels to ci.sh and fix related issues * Don't bypass failures in install-ray.sh anymore * Make CI a little quieter * Move linting into ci.sh * Add vitals test right after build * Fix os.uname() unavailability on Windows Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
@@ -13,6 +13,7 @@ import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
@@ -1224,7 +1225,7 @@ if __name__ == "__main__":
|
||||
args.redis_address, password=args.redis_password)
|
||||
traceback_str = ray.utils.format_error_message(traceback.format_exc())
|
||||
message = ("The dashboard on node {} failed with the following "
|
||||
"error:\n{}".format(os.uname()[1], traceback_str))
|
||||
"error:\n{}".format(socket.gethostname(), traceback_str))
|
||||
ray.utils.push_error_to_driver_through_redis(
|
||||
redis_client, ray_constants.DASHBOARD_DIED_ERROR, message)
|
||||
if isinstance(e, OSError) and e.errno == errno.ENOENT:
|
||||
|
||||
@@ -5,6 +5,7 @@ import json
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import socket
|
||||
import time
|
||||
import traceback
|
||||
|
||||
@@ -301,7 +302,7 @@ if __name__ == "__main__":
|
||||
args.redis_address, password=args.redis_password)
|
||||
traceback_str = ray.utils.format_error_message(traceback.format_exc())
|
||||
message = ("The log monitor on node {} failed with the following "
|
||||
"error:\n{}".format(os.uname()[1], traceback_str))
|
||||
"error:\n{}".format(socket.gethostname(), traceback_str))
|
||||
ray.utils.push_error_to_driver_through_redis(
|
||||
redis_client, ray_constants.LOG_MONITOR_DIED_ERROR, message)
|
||||
raise e
|
||||
|
||||
@@ -252,7 +252,7 @@ if __name__ == "__main__":
|
||||
args.redis_address, password=args.redis_password)
|
||||
traceback_str = ray.utils.format_error_message(traceback.format_exc())
|
||||
message = ("The reporter on node {} failed with the following "
|
||||
"error:\n{}".format(os.uname()[1], traceback_str))
|
||||
"error:\n{}".format(socket.gethostname(), traceback_str))
|
||||
ray.utils.push_error_to_driver_through_redis(
|
||||
redis_client, ray_constants.REPORTER_DIED_ERROR, message)
|
||||
raise e
|
||||
|
||||
+7
-4
@@ -159,12 +159,15 @@ class build_ext(_build_ext.build_ext):
|
||||
source = filename
|
||||
destination = os.path.join(self.build_lib, filename)
|
||||
# Create the target directory if it doesn't already exist.
|
||||
parent_directory = os.path.dirname(destination)
|
||||
if not os.path.exists(parent_directory):
|
||||
os.makedirs(parent_directory)
|
||||
os.makedirs(os.path.dirname(destination), exist_ok=True)
|
||||
if not os.path.exists(destination):
|
||||
print("Copying {} to {}.".format(source, destination))
|
||||
shutil.copy(source, destination, follow_symlinks=True)
|
||||
if sys.platform == "win32":
|
||||
# Does not preserve file mode (needed to avoid read-only bit)
|
||||
shutil.copyfile(source, destination, follow_symlinks=True)
|
||||
else:
|
||||
# Preserves file mode (needed to copy executable bit)
|
||||
shutil.copy(source, destination, follow_symlinks=True)
|
||||
|
||||
|
||||
class BinaryDistribution(Distribution):
|
||||
|
||||
Reference in New Issue
Block a user