Skip to main content

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.

Metadata

Release files for osml-model-runner-test 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osml-model-runner-test 2.1.0
File Size Uploaded Provenance
osml_model_runner_test-2.1.0.tar.gz 21.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for osml-model-runner-test 2.1.0
File Interpreter ABI Platform
osml_model_runner_test-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 47.4 kB

Release files / osml_model_runner_test-2.1.0.tar.gz

Download URL osml_model_runner_test-2.1.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8d3d282eb386d7dfc094d8fefa644257b69dfa414c9f2bb368875764173302ae
BLAKE2b-256 checksum
How to use checksums
455b22d53167ec8c97d786cb6a251d293e636a127004ce30b2349cbfee86288d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / osml_model_runner_test-2.1.0-py3-none-any.whl

Download URL osml_model_runner_test-2.1.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5557d6a7e9e509fc0b1399a72c6602a0b56d8a6ecc244fb2c649d3d6281fd882
BLAKE2b-256 checksum
How to use checksums
d46d7696918d700ad0c7c262191579283e443e8f490a34c960fe63e5bddcd9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for osml-model-runner-test 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page