@@ -29,6 +29,7 @@ const (
29
29
CodeFlareTestRayVersion = "CODEFLARE_TEST_RAY_VERSION"
30
30
CodeFlareTestRayImage = "CODEFLARE_TEST_RAY_IMAGE"
31
31
CodeFlareTestPyTorchImage = "CODEFLARE_TEST_PYTORCH_IMAGE"
32
+ NotebookImage = "NOTEBOOK_IMAGE"
32
33
33
34
// The testing output directory, to write output files into.
34
35
CodeFlareTestOutputDir = "CODEFLARE_TEST_OUTPUT_DIR"
@@ -51,6 +52,13 @@ const (
51
52
// URL for PiPI index containing all the required test Python packages
52
53
pipIndexURL = "PIP_INDEX_URL"
53
54
pipTrustedHost = "PIP_TRUSTED_HOST"
55
+
56
+ // Storage bucket credentials
57
+ storageDefaultEndpoint = "AWS_DEFAULT_ENDPOINT"
58
+ storageAccessKeyId = "AWS_ACCESS_KEY_ID"
59
+ storageSecretKey = "AWS_SECRET_ACCESS_KEY"
60
+ storageBucketName = "AWS_STORAGE_BUCKET"
61
+ storageBucketMnistDir = "AWS_STORAGE_BUCKET_MNIST_DIR"
54
62
)
55
63
56
64
type ClusterType string
@@ -79,6 +87,11 @@ func GetPyTorchImage() string {
79
87
return lookupEnvOrDefault (CodeFlareTestPyTorchImage , "pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime" )
80
88
}
81
89
90
+ func GetNotebookImage () string {
91
+ notebook_image , _ := os .LookupEnv (NotebookImage )
92
+ return notebook_image
93
+ }
94
+
82
95
func GetInstascaleOcmSecret () (string , string ) {
83
96
res := strings .SplitN (lookupEnvOrDefault (InstaScaleOcmSecret , "default/instascale-ocm-secret" ), "/" , 2 )
84
97
return res [0 ], res [1 ]
@@ -118,7 +131,32 @@ func GetClusterHostname(t Test) string {
118
131
}
119
132
120
133
func GetMnistDatasetURL () string {
121
- return lookupEnvOrDefault (mnistDatasetURL , "http://yann.lecun.com/exdb/mnist/" )
134
+ return lookupEnvOrDefault (mnistDatasetURL , "https://ossci-datasets.s3.amazonaws.com/mnist/" )
135
+ }
136
+
137
+ func GetStorageBucketDefaultEndpoint () (string , bool ) {
138
+ storage_endpoint , exists := os .LookupEnv (storageDefaultEndpoint )
139
+ return storage_endpoint , exists
140
+ }
141
+
142
+ func GetStorageBucketAccessKeyId () (string , bool ) {
143
+ storage_access_key_id , exists := os .LookupEnv (storageAccessKeyId )
144
+ return storage_access_key_id , exists
145
+ }
146
+
147
+ func GetStorageBucketSecretKey () (string , bool ) {
148
+ storage_secret_key , exists := os .LookupEnv (storageSecretKey )
149
+ return storage_secret_key , exists
150
+ }
151
+
152
+ func GetStorageBucketname () (string , bool ) {
153
+ storage_bucket_name , exists := os .LookupEnv (storageBucketName )
154
+ return storage_bucket_name , exists
155
+ }
156
+
157
+ func GetStorageBucketMnistDir () (string , bool ) {
158
+ storage_bucket_mnist_dir , exists := os .LookupEnv (storageBucketMnistDir )
159
+ return storage_bucket_mnist_dir , exists
122
160
}
123
161
124
162
func GetPipIndexURL () string {
0 commit comments