Skip to main content

AWS upload validation

Project description

np-upload-validation

AWS upload validation

PyPI Python version

Coverage CI/CD GitHub issues

Usage

Install

pip install np-upload-validation

Python

import np_upload_validation

Command-line

np-upload-validation --help

Deployment

Due to limitations on user accounts for the onprem HPC, this package needs to be installed into a singularity container that is then used by a "Job" submitted to the onprem HPC. A docker container would have been preferable but required more permissions than were available at the time of writing this document (11-20-24).

Deploying to hpc

Requires the following environment variables to be present:

  • HPC_SIF_LOCATION
  • HPC_JOBS_DIR
  • HPC_JOB_LOGS_DIR
  • OUTPUT_DIR

From the build machine.

make deploy-hpc

If host and build machines are configured you also do it remotely (ssh)

make remote-deploy-hpc

Deploying to windows task scheduler

Automated deployment to windows task scheduler (may require admin access).

  • create a directory at: NP_UPLOAD_VALIDATION_WORKING_DIR
  • create a directory at: NP_UPLOAD_VALIDATION_OUTPUT_DIR for validation outputs and logs
  • validates against directory: NP_UPLOAD_VALIDATION_TARGET_DIR

Default values are

  • NP_UPLOAD_VALIDATION_WORKING_DIR: "%USERPROFILE%\Desktop\np-upload-validation"
  • NP_UPLOAD_VALIDATION_OUTPUT_DIR: "//allen/programs/mindscope/workgroups/dynamicrouting/PilotEphys/np-upload-validation/"
  • NP_UPLOAD_VALIDATION_TARGET_DIR: "//allen/programs/mindscope/workgroups/dynamicrouting/PilotEphys/Task 2 pilot/"

Requires the following variables used by npc-lims, npc-sessions to be present in a .env file in NP_UPLOAD_VALIDATION_WORKING_DIR

init && init-scheduled

Testing

Unit tests

make test

Onprem integration tests

make test-onprem

Development

See instructions in https://github.com/AllenInstitute/np-upload-validation/CONTRIBUTING.md and the original template: https://github.com/AllenInstitute/copier-pdm-npc/blob/main/README.md

Debugging version divergences

pdm bumpver

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

np_upload_validation-0.1.35.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

np_upload_validation-0.1.35-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file np_upload_validation-0.1.35.tar.gz.

File metadata

  • Download URL: np_upload_validation-0.1.35.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.21.0 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for np_upload_validation-0.1.35.tar.gz
Algorithm Hash digest
SHA256 3eacd0630e7f9bbc0800fcd60b58646ce3789b201ba78ffb279fcdfd96b4c132
MD5 f66b3f71aaa247ad1f2b388f2f89b34d
BLAKE2b-256 9b56d8844c4b0766943cfc7c921a52b7f924dcb06a406299da60a3cc4e41fb09

See more details on using hashes here.

File details

Details for the file np_upload_validation-0.1.35-py3-none-any.whl.

File metadata

File hashes

Hashes for np_upload_validation-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 40ceb376bb08a1913d49ac3c90007e0b6eb35eaefee9e803903a7a6e9917cd61
MD5 52742b23de9c5fdd6647e8b25618ec3f
BLAKE2b-256 673d55a944c6ea4aed07087322cdb26e9a656b7e6ea4fe5985681d06fdc99f0e

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