edx/tubular

Name: tubular

Owner: edX

Description: A repo for edx pipeline related scripts.

Created: 2016-01-11 18:47:32.0

Updated: 2018-05-24 17:03:23.0

Pushed: 2018-05-24 17:03:24.0

Homepage: null

Size: 608

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

tubular

Overview

Python scripts for integrating pipelines with various services/tools such as:

The scripts perform work to enable continuous delivery (CD) for https://edx.org. These scripts are called from various tasks/jobs/stages in GoCD pipelines - but could be called from any automation/CD framework.

Configuration
install -e .[dev]
Testing
ce, to install python versions:
.python-versions | xargs -n1 pyenv install

n the tests

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

Even though they were written with `edx-platform` in mind, the guidelines should be followed for Open edX code in general.

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.org.

Environment variables

| Variable Name | Default | Description | |:——————–:|———————————|———————————————————————————————–| | ASGARD_API_ENDPOINTS | http://dummy.url:8091/us-east-1 | fully qualified URL to the asgard instance to run the scripts against | | ASGARD_API_TOKEN | dummy-token | String - The asgard token | | ASGARD_WAIT_TIMEOUT | 600 | Integer - time in seconds to wait for an action such as instances healthy in a load balancer. | | REQUESTS_TIMEOUT | 10 | How long to wait for an http connection/response from Asgard. | | RETRY_MAX_ATTEMPTS | 5 | Integer - Maximum number attempts to be made when asgard returns an error. | | RETRY_DELAY_SECONDS | 5 | How long in seconds to wait between retries to asgard | | RETRY_MAX_TIME_SECONDS | None | How long in seconds to keep retrying asgard before giving up. | | RETRY_FACTOR | 1.5 | Factor to multiple the base wait time by per retry attempt. Only applies to ec2 boto calls | | ASGARD_ELB_HEALTH_TIMEOUT | 600 | How long in seconds to wait for an instanced to become healthy in an ELB. | | SHA_LENGTH | 10 | Length of the commit SHA to use when querying for a PR by commit. | | BATCH_SIZE | 18 | Number of commits to batch together when querying a PR by commit. |

Guidelines

Some general guidelines for tubular scripts:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.