28
28
from sagemaker .utils import _aws_partition
29
29
from tests .integ import DATA_DIR
30
30
from tests .integ .timeout import timeout , timeout_and_delete_endpoint_by_name
31
- from tests .integ .marketplace_utils import REGION_ACCOUNT_MAP
31
+ from tests .integ .marketplace_utils import REGION_ACCOUNT_MAP , random_8_digit_alpha_numeric_gen
32
32
33
33
34
34
# All these tests require a manual 1 time subscription to the following Marketplace items:
@@ -117,7 +117,7 @@ def test_marketplace_attach(sagemaker_session, cpu_instance_type):
117
117
instance_count = 1 ,
118
118
instance_type = cpu_instance_type ,
119
119
sagemaker_session = sagemaker_session ,
120
- base_job_name = "test-marketplace" ,
120
+ base_job_name = "test-marketplace" + random_8_digit_alpha_numeric_gen () ,
121
121
)
122
122
123
123
train_input = mktplace .sagemaker_session .upload_data (
@@ -205,7 +205,7 @@ def test_marketplace_tuning_job(sagemaker_session, cpu_instance_type):
205
205
instance_count = 1 ,
206
206
instance_type = cpu_instance_type ,
207
207
sagemaker_session = sagemaker_session ,
208
- base_job_name = "test-marketplace" ,
208
+ base_job_name = "test-marketplace" + random_8_digit_alpha_numeric_gen () ,
209
209
)
210
210
211
211
train_input = mktplace .sagemaker_session .upload_data (
@@ -218,7 +218,7 @@ def test_marketplace_tuning_job(sagemaker_session, cpu_instance_type):
218
218
219
219
tuner = HyperparameterTuner (
220
220
estimator = mktplace ,
221
- base_tuning_job_name = "byo" ,
221
+ base_tuning_job_name = "byo" + random_8_digit_alpha_numeric_gen () ,
222
222
objective_metric_name = "validation:accuracy" ,
223
223
hyperparameter_ranges = hyperparameter_ranges ,
224
224
max_jobs = 2 ,
@@ -248,7 +248,7 @@ def test_marketplace_transform_job(sagemaker_session, cpu_instance_type):
248
248
instance_count = 1 ,
249
249
instance_type = cpu_instance_type ,
250
250
sagemaker_session = sagemaker_session ,
251
- base_job_name = "test-marketplace" ,
251
+ base_job_name = "test-marketplace" + random_8_digit_alpha_numeric_gen () ,
252
252
)
253
253
254
254
train_input = algo .sagemaker_session .upload_data (
0 commit comments