Skip to main content

Backend solution for abcunit success / failure logs

Project description

Storage backends for an ABCUnit Framework, logging success and failures of process units.

Database Backend

To use this backend you will need to contact the JASMIN help desk (support@jasmin.ac.uk) and ask them to setup a postgresql database for you. Specify a name for the database and a username to login with. JASMIN support will get back to you with the user password and host name.

After you have got your database, you’ll need to export an environment variable called $ABCUNIT_DB_SETTINGS and set it to a connection string for psycopg2:

ABCUNIT_DB_SETTINGS="dbname=<name> user=<user> host=<host> password=<pwd>"

DatabaseHandler class construction looks like this:

DatabaseHandler(table_name="results")

Where

  • table_name is the name of the table logs will be insert into

Connects to an existing database and creates a table to store results:

<table_name> (id varchar(255) PRIMARY KEY, result varchar(255) NOT NULL)

id

result

facet1.facet2.facet3

success

facet1.facet2.facet3

bad_file

&#8942;

&#8942;

File System Backend

FileSystemHandler class construction looks like this:

FileSytemHandler(base_log_dir, n_facets, sep)

Where;

  • base_log_dir is the string path to top level directory for logs

  • n_facets is the number of facets used to describe each unit result

  • sep is the separator used for a result identifier

Uses the file system to create log files marking success and failures, categorised by directory structure:

<log_base_dir>/success/facet1/facet2/facet3

<log_base_dir>/failure/error_type/facet1/facet2/facet3

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

abcunit-backend-1.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

abcunit_backend-1.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file abcunit-backend-1.1.0.tar.gz.

File metadata

  • Download URL: abcunit-backend-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.6.1 requests/2.24.0 setuptools/47.3.1.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for abcunit-backend-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3cdb6dde598ad620e474977aec47e4e621337b24eb94016dbd1b8aad5ce3d78
MD5 9666e5520e1ba5357f9c4583f405b74b
BLAKE2b-256 c88249eedf288c9cbaa0ac45652e0060a117e2f99d0006dd04f9fd65be95b7fb

See more details on using hashes here.

File details

Details for the file abcunit_backend-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: abcunit_backend-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.6.1 requests/2.24.0 setuptools/47.3.1.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for abcunit_backend-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f98411411b31f3b277b10264c075ca52e76f39cf37f18bbc2797825cbcf5e557
MD5 cdc74b32dd87dce2151ce2ce089f08b9
BLAKE2b-256 42939960aeedda5ecbb7ae96eb01dc7b3e95ed1028df8255a64a001f0ef4f52f

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