Skip to content

Deployment validator

cutana.deployment_validator

Deployment validation for Cutana astronomical cutout pipeline.

This module provides comprehensive validation that a Cutana installation is working correctly, including dependency checks, configuration validation, and a minimal end-to-end test.

DeploymentValidator(verbose=True)

Validates Cutana deployment and installation.

Initialize deployment validator.

Parameters:

Name Type Description Default
verbose bool

Enable detailed logging output

True

validate_python_environment()

Check if running in a virtual environment.

Returns:

Name Type Description
bool bool

True if in a virtual environment (venv, conda, or uv)

validate_dependencies()

Check all required dependencies are available.

Returns:

Name Type Description
bool bool

True if all dependencies are importable

validate_configuration()

Test configuration loading and validation.

Returns:

Name Type Description
bool bool

True if configuration system works

run_minimal_e2e_test()

Run a minimal end-to-end test.

Returns:

Name Type Description
bool bool

True if e2e test passes

check_git_access()

Check if git is configured and has read access to the repository.

Returns:

Name Type Description
bool bool

True if git access is working

cleanup()

Clean up temporary directories.

run_all_validations()

Run all validation checks.

Returns:

Name Type Description
Dict Dict

Results of all validation checks

deployment_validation(verbose=True)

Run deployment validation for Cutana.

This function performs a comprehensive check of the Cutana installation, including dependency verification, configuration testing, and a minimal end-to-end test.

Parameters:

Name Type Description Default
verbose bool

Enable detailed logging output

True

Returns:

Name Type Description
Dict Dict

Results of validation checks with boolean values

Example

import cutana results = cutana.deployment_validation() if all(results.values()): ... print("Cutana is ready!")