Skip to main content

Package to run tests against osml-model-runner deployments.

Project description

OSML Model Runner Test

This package contains the integration tests for OSML application

Table of Contents

Getting Started

Prerequisites

First, ensure you have installed the following tools locally

  1. aws cli
  2. tox

Installation Guide

  1. Clone osml-model-runner-test package into your desktop
git clone https://github.com/aws-solutions-library-samples/osml-model-runner-test.git
  1. Run tox to create a virtual environment
cd osml-model-runner-test
tox

Documentation

You can find documentation for this library in the ./doc directory. Sphinx is used to construct a searchable HTML version of the API documents.

tox -e docs

Local Testing

Credentials

Credentials from the user's account are volume mounted into the container's root directory.

Processing an image:

You can run the integration tests against your dev account by exporting the required parameters and using the pytest CLI by using the python script bin/process_image.py. Remember to load up your AWS credentials into your terminal, please follow this guide on how to load your aws credentials.

python bin/process_image.py --image <image type> --model <model type>

Examples:

python3 bin/process_image.py --image small --model centerpoint

python3 bin/process_image.py --image meta --model centerpoint

python3 bin/process_image.py --image large --model flood

python3 bin/process_image.py --image tile_tif --model aircraft

To print out the usage for python script, execute:

python3 bin/process_image.py --help

To execute the integration test, exclude --skip_integ from the command line interface. It is essential that the images and models listed in the table below are aligned accurately for the test to succeed. Conversely, by adding --skip_integ to the CLI, all comparison checks will be bypassed, rendering the table irrelevant for testing purposes.

image model
small centerpoint
meta centerpoint
sicd_capella_chip_ntf centerpoint
sicd_umbra_chip_ntf centerpoint
sicd_interferometric_hh_ntf centerpoint
wbid centerpoint
large flood
tile_tif aircraft
tile_ntf aircraft
tile_jpeg aircraft
tile_png aircraft

Running LoadTest

You can run the load test against your dev account and be able to determine the cost and the performance. Please advise it can potentially rack up your AWS bills!

Examples:

python3 bin/run_load_test.py --periodic_sleep 60 --processing_window 1

To print out the usage for this load test script, execute:

python3 bin/run_load_test.py --help

Support & Feedback

To post feedback, submit feature ideas, or report bugs, please use the Issues section of this GitHub repo.

If you are interested in contributing to OversightML Model Runner, see the CONTRIBUTING guide.

Security

See CONTRIBUTING for more information.

License

MIT No Attribution Licensed. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osml_model_runner_test-2.0.3.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osml_model_runner_test-2.0.3-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file osml_model_runner_test-2.0.3.tar.gz.

File metadata

  • Download URL: osml_model_runner_test-2.0.3.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for osml_model_runner_test-2.0.3.tar.gz
Algorithm Hash digest
SHA256 87172a29834604263bdfb8e4f9b36118c339b65b6098c3f0ebb48e9e4b2b9c20
MD5 819c67884852a9b6e7098749f73c599a
BLAKE2b-256 21dc232560b6a8289c31472c1529516cbad76091b240e6da686ce87f8154c02e

See more details on using hashes here.

File details

Details for the file osml_model_runner_test-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for osml_model_runner_test-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe6f2c98f0f6560882662a94462213c88d7cf01b60479c09063f76d2bedfd84
MD5 ec09787daac1603788ca7d569303107c
BLAKE2b-256 ff252b908810ad2951db4d0dddacd5d55060a776ef87396278e7807f31c1903a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page