pipelines/components/aws/sagemaker/tests/unit_tests
rd-pong 07e67bb0ca
feat(components): SageMaker V2 model monitor component and testing (#9253)
* Add model monitor component and integration tests

* Generate model monitor using updated generator

* Add sleep for monitoring schedule

* Update requirements v2

* Change model monitor image url

* minor fix

* minor fix

* minor fix

* Add unit testing for MonitoringSchedule

* Delete assume-role.json

* Add doc and sample pipeline for Monitoring Schedule

* Regenerate using the latest code generator.
Make parameter description 1 sentence long.

* Revert "Add doc and sample pipeline for Monitoring Schedule"

This reverts commit 6b3b7cc6f5.

* Delete print statements

* Update component with new generator

* address comments

* Add retry for _delete_resource

* Add try catch protection for _get_resource and _delete_resource

* Add integration tests for monitoring job definition components

* Update is_endpoint_deleted for new _get_resource

* Add integration test for updating monitoring schedule

* Remove update from canary

* Add doc and sample pipeline for Monitoring Schedule

* Add doc for monitoring job definition
Update doc for monitoring schedule

* Remove sample for monitoring schedule

* Address comments

* Address comments

* Address comment for unit test

* Address doc comments

* Address test comments
2023-05-09 19:42:33 +00:00
..
tests feat(components): SageMaker V2 model monitor component and testing (#9253) 2023-05-09 19:42:33 +00:00
.gitignore AWS Sagemaker : Add unit tests (#3642) 2020-04-30 01:32:18 -07:00
Dockerfile chore(components): Update scripts to use public ecr instead of docker (#8264) 2022-09-15 02:16:40 +00:00
README.md feat(components) Adds RoboMaker and SageMaker RLEstimator components (#4813) 2020-12-11 13:27:27 -08:00
check_formatting.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
check_generated_specifications.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
pytest.ini [AWS SageMaker] Unit tests for Training component (#3722) 2020-05-13 16:14:22 -07:00
run_automated_test.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
run_unit_tests.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00

README.md

Unit tests for AWS SageMaker KFP Components

How to run these tests

Method 1 : Run these tests using docker

  1. Clone the git repo
    git clone https://github.com/kubeflow/pipelines.git
    
  2. Build the dockerfile
    cd pipelines
    docker build . -f ./components/aws/sagemaker/tests/unit_tests/Dockerfile -t amazon/unit-test-aws-sagemaker-kfp-components
    
  3. Run all unit tests
    docker run -it -v <path_to_this_repo_on_your_machine>:/app/ amazon/unit-test-aws-sagemaker-kfp-components:latest
    
    This runs the tests against a mounted volume from your host machine. This means you can edit the files and rerun the tests immediately without having to rebuild the docker container.

Method 2 : Run these tests locally

  1. Clone the git repo
    git clone https://github.com/kubeflow/pipelines.git
    
  2. Install the pip packages required for testing
    cd pipelines/components/aws/sagemaker/
    
    pip install -r requirements.txt 
    
  3. Run all unit tests
    cd tests/unit_tests/
    
    ./run_unit_tests.sh