File tree 7 files changed +24
-5
lines changed
7 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 5
5
from ray_release .aws import RELEASE_AWS_BUCKET
6
6
from ray_release .buildkite .concurrency import get_concurrency_group
7
7
from ray_release .test import Test , TestState
8
- from ray_release .config import DEFAULT_ANYSCALE_PROJECT , DEFAULT_CLOUD_ID , as_smoke_test
8
+ from ray_release .config import (
9
+ DEFAULT_ANYSCALE_PROJECT ,
10
+ DEFAULT_CLOUD_ID ,
11
+ as_smoke_test ,
12
+ get_test_project_id ,
13
+ )
9
14
from ray_release .env import DEFAULT_ENVIRONMENT , load_environment
10
15
from ray_release .template import get_test_env_var
11
16
from ray_release .util import DeferredEnvVar
@@ -136,6 +141,10 @@ def get_step(
136
141
env_dict = load_environment (env_to_use )
137
142
env_dict .update (env )
138
143
144
+ # Set the project id for the test
145
+ project_id = get_test_project_id (test )
146
+ env_dict ["ANYSCALE_PROJECT" ] = project_id
147
+
139
148
step ["env" ].update (env_dict )
140
149
step ["plugins" ][0 ][DOCKER_PLUGIN_KEY ]["image" ] = "python:3.9"
141
150
Original file line number Diff line number Diff line change 31
31
)
32
32
DEFAULT_ANYSCALE_PROJECT = DeferredEnvVar (
33
33
"RELEASE_DEFAULT_PROJECT" ,
34
- "prj_FKRmeV5pA6X72aVscFALNC32 " ,
34
+ "prj_rw3kzbqsehh4a6klka7j616fgb " ,
35
35
)
36
36
37
37
RELEASE_PACKAGE_DIR = os .path .abspath (os .path .join (os .path .dirname (__file__ ), ".." ))
@@ -253,3 +253,8 @@ def get_test_cloud_id(test: Test) -> str:
253
253
else :
254
254
cloud_id = cloud_id or str (DEFAULT_CLOUD_ID )
255
255
return cloud_id
256
+
257
+
258
+ def get_test_project_id (test : Test ) -> str :
259
+ default_project_id = str (DEFAULT_ANYSCALE_PROJECT )
260
+ return test .get ("cluster" , {}).get ("project_id" , default_project_id )
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ ANYSCALE_HOST=https://console.anyscale-staging.com
2
2
RELEASE_AWS_ANYSCALE_SECRET_ARN = " arn:aws:secretsmanager:us-west-2:029272617770:secret:release-automation/anyscale-staging-token20231008005227440600000001-JTgxb0"
3
3
RELEASE_DEFAULT_CLOUD_ID = " cld_kvedZWag2qA8i5BjxUevf5i7"
4
4
RELEASE_DEFAULT_PROJECT = " prj_92c7b71w55flm6gv6imv4m6vqg"
5
- ANYSCALE_PROJECT = " prj_92c7b71w55flm6gv6imv4m6vqg"
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ ANYSCALE_HOST=https://console.anyscale-staging.com
2
2
RELEASE_AWS_ANYSCALE_SECRET_ARN = " arn:aws:secretsmanager:us-west-2:029272617770:secret:release-automation/anyscale-staging-token20231008005227440600000001-JTgxb0"
3
3
RELEASE_DEFAULT_CLOUD_ID = " cld_kvedZWag2qA8i5BjxUevf5i7"
4
4
RELEASE_DEFAULT_PROJECT = " prj_6rfevmf12tbsbd6g3al5f6zssh"
5
- ANYSCALE_PROJECT = " prj_6rfevmf12tbsbd6g3al5f6zssh"
Original file line number Diff line number Diff line change @@ -3,5 +3,4 @@ ANYSCALE_CLOUD_STORAGE_PROVIDER=gs
3
3
RELEASE_AWS_ANYSCALE_SECRET_ARN = " arn:aws:secretsmanager:us-west-2:029272617770:secret:release-automation/anyscale-staging-token20231008005227440600000001-JTgxb0"
4
4
RELEASE_DEFAULT_CLOUD_ID = " cld_vy7xqacrvddvbuy95auinvuqmt"
5
5
RELEASE_DEFAULT_PROJECT = " prj_xqmpk8ps6civt438u1hp5pi88g"
6
- ANYSCALE_PROJECT = " prj_xqmpk8ps6civt438u1hp5pi88g"
7
6
GOOGLE_CLOUD_PROJECT = " anyscale-oss-ci"
Original file line number Diff line number Diff line change 82
82
"cloud_id" : {
83
83
"type" : " string"
84
84
},
85
+ "project_id" : {
86
+ "type" : " string"
87
+ },
85
88
"cloud_name" : {
86
89
"type" : " string"
87
90
},
Original file line number Diff line number Diff line change 1973
1973
byod : {}
1974
1974
cluster_compute : compute_tpl_single_node_32_cpu.yaml
1975
1975
cloud_id : cld_wy5a6nhazplvu32526ams61d98
1976
+ project_id : prj_lhlrf1u5yv8qz9qg3xzw8fkiiq
1976
1977
1977
1978
run :
1978
1979
timeout : 7200
1995
1996
byod : {}
1996
1997
cluster_compute : compute_tpl_32_cpu.yaml
1997
1998
cloud_id : cld_wy5a6nhazplvu32526ams61d98
1999
+ project_id : prj_lhlrf1u5yv8qz9qg3xzw8fkiiq
1998
2000
1999
2001
run :
2000
2002
timeout : 7200
2025
2027
type : gpu
2026
2028
cluster_compute : compute_tpl_single_node_32_cpu.yaml
2027
2029
cloud_id : cld_wy5a6nhazplvu32526ams61d98
2030
+ project_id : prj_lhlrf1u5yv8qz9qg3xzw8fkiiq
2028
2031
2029
2032
run :
2030
2033
timeout : 7200
2047
2050
byod : {}
2048
2051
cluster_compute : compute_tpl_single_node_32_cpu.yaml
2049
2052
cloud_id : cld_wy5a6nhazplvu32526ams61d98
2053
+ project_id : prj_lhlrf1u5yv8qz9qg3xzw8fkiiq
2050
2054
2051
2055
run :
2052
2056
timeout : 7200
2075
2079
type : gpu
2076
2080
cluster_compute : compute_tpl_gpu_node.yaml
2077
2081
cloud_id : cld_wy5a6nhazplvu32526ams61d98
2082
+ project_id : prj_lhlrf1u5yv8qz9qg3xzw8fkiiq
2078
2083
2079
2084
run :
2080
2085
timeout : 7200
You can’t perform that action at this time.
0 commit comments