|
22 | 22 | from sagemaker import ModelPackage
|
23 | 23 | from sagemaker.mxnet.estimator import MXNet
|
24 | 24 | from sagemaker.mxnet.model import MXNetModel
|
| 25 | +from sagemaker.mxnet.processing import MXNetProcessor |
25 | 26 | from sagemaker.utils import sagemaker_timestamp
|
26 | 27 | from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES
|
27 | 28 | from tests.integ.kms_utils import get_or_create_kms_key
|
@@ -65,6 +66,35 @@ def mxnet_training_job(
|
65 | 66 | return mx.latest_training_job.name
|
66 | 67 |
|
67 | 68 |
|
| 69 | +@pytest.mark.release |
| 70 | +def test_framework_processing_job_with_deps( |
| 71 | + sagemaker_session, |
| 72 | + mxnet_training_latest_version, |
| 73 | + mxnet_training_latest_py_version, |
| 74 | + cpu_instance_type, |
| 75 | +): |
| 76 | + with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES): |
| 77 | + code_path = os.path.join(DATA_DIR, "dummy_code_bundle_with_reqs") |
| 78 | + entry_point = "main_script.py" |
| 79 | + |
| 80 | + processor = MXNetProcessor( |
| 81 | + framework_version=mxnet_training_latest_version, |
| 82 | + py_version=mxnet_training_latest_py_version, |
| 83 | + role="SageMakerRole", |
| 84 | + instance_count=1, |
| 85 | + instance_type=cpu_instance_type, |
| 86 | + sagemaker_session=sagemaker_session, |
| 87 | + base_job_name="test-mxnet", |
| 88 | + ) |
| 89 | + |
| 90 | + processor.run( |
| 91 | + code=entry_point, |
| 92 | + source_dir=code_path, |
| 93 | + inputs=[], |
| 94 | + wait=True, |
| 95 | + ) |
| 96 | + |
| 97 | + |
68 | 98 | @pytest.mark.release
|
69 | 99 | def test_attach_deploy(mxnet_training_job, sagemaker_session, cpu_instance_type):
|
70 | 100 | endpoint_name = "test-mxnet-attach-deploy-{}".format(sagemaker_timestamp())
|
|
0 commit comments