| |
@@ -70,6 +70,10 @@
|
| |
MARK_ATOMIC_BAD_JSON = requests.get(MARK_ATOMIC_BAD_JSON_URL).text
|
| |
MARK_ATOMIC_BAD_BUILDS = json.loads(MARK_ATOMIC_BAD_JSON)
|
| |
|
| |
+ BLOCK_ATOMIC_RELEASE_JSON_URL = \
|
| |
+ 'https://pagure.io/mark-atomic-bad/raw/master/f/block-release.json'
|
| |
+ BLOCK_ATOMIC_RELEASE_JSON = requests.get(BLOCK_ATOMIC_RELEASE_JSON_URL).text
|
| |
+ BLOCK_ATOMIC_RELEASE = json.loads(BLOCK_ATOMIC_RELEASE_JSON)[u'block-release']
|
| |
|
| |
DATAGREPPER_URL = "https://apps.fedoraproject.org/datagrepper/raw"
|
| |
# delta = 2 weeks in seconds
|
| |
@@ -224,7 +228,6 @@
|
| |
|
| |
return len(bad) > 0
|
| |
|
| |
-
|
| |
def send_atomic_announce_email(
|
| |
email_filelist,
|
| |
mail_receivers=ATOMIC_EMAIL_RECIPIENTS,
|
| |
@@ -469,6 +472,11 @@
|
| |
log.error("No release arg passed, see -h for help")
|
| |
sys.exit(1)
|
| |
|
| |
+ log.info("Checking to make sure release is not currently blocked")
|
| |
+ if BLOCK_ATOMIC_RELEASE:
|
| |
+ log.info("Release Blocked: Exiting.")
|
| |
+ sys.exit(0)
|
| |
+
|
| |
log.info("Querying datagrepper for latest AutoCloud successful tests")
|
| |
# Acquire the latest successful builds from datagrepper
|
| |
tested_autocloud_info = get_latest_successful_autocloud_test_info(
|
| |