Bug 1459737 - Assert that volumes aren't used on Windows; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Fri, 04 May 2018 18:02:54 -0700
changeset 792205 71acf646a1570c5774d291de0fafdb538dc0784c
parent 792204 4cb05343f49c3877a08252aa0b0fdee4ab14f5a7
push id109042
push userbmo:gps@mozilla.com
push dateMon, 07 May 2018 21:25:20 +0000
reviewersdustin
bugs1459737
milestone62.0a1
Bug 1459737 - Assert that volumes aren't used on Windows; r?dustin Volumes are a docker-worker concept. They shouldn't be encountered on Windows, which uses generic-worker. MozReview-Commit-ID: KUdSxVHVJQ
taskcluster/scripts/run-task
--- a/taskcluster/scripts/run-task
+++ b/taskcluster/scripts/run-task
@@ -528,16 +528,20 @@ def main(args):
             return EXIT_PURGE_CACHE
 
     if 'TASKCLUSTER_VOLUMES' in os.environ:
         volumes = os.environ['TASKCLUSTER_VOLUMES'].split(';')
         del os.environ['TASKCLUSTER_VOLUMES']
     else:
         volumes = []
 
+    if volumes and not IS_POSIX:
+        print('assertion failed: volumes not expected on Windows')
+        return 1
+
     # Sanitize volumes.
     for volume in volumes:
         # If a volume is a cache, it was dealt with above.
         if volume in caches:
             print_line(b'volume', b'volume %s is a cache\n' % volume)
             continue
 
         configure_volume_posix(volume, user, group, running_as_root)