Bug 1390968: add a py(3) job; r?gps draft
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 28 Aug 2017 20:55:55 +0000
changeset 654435 643442bb78bd5fd97d5e227278f5202ecd07f7a7
parent 654398 3529b653ede26f990eb7320649015294ad0f8e76
child 654436 1c875365d4c08d348c717d43a674d72cfd545133
child 654960 0e97f60a6290888b5be61256bd9765d4366b4e36
child 654963 10a325a771ad36f2fc2d5612b9bd5fd7c0e04c06
child 654965 8c239cd1a46714c719fa2acc922901c310789178
push id76587
push userdmitchell@mozilla.com
push dateMon, 28 Aug 2017 21:50:01 +0000
reviewersgps
bugs1390968
milestone57.0a1
Bug 1390968: add a py(3) job; r?gps MozReview-Commit-ID: 1BkOEvPKjSD
taskcluster/ci/source-test/python-tests.yml
taskcluster/docker/lint/system-setup.sh
--- a/taskcluster/ci/source-test/python-tests.yml
+++ b/taskcluster/ci/source-test/python-tests.yml
@@ -143,8 +143,28 @@ mozlint:
                 max-run-time: 3600
     run:
         using: mach
         mach: python-test --subsuite mozlint
     when:
         files-changed:
             - 'python/mozlint/**'
             - 'python/mach_commands.py'
+
+python3:
+    description: regression tests for python3 compatibility
+    platform: linux64/opt
+    treeherder:
+        symbol: py(3)
+        kind: test
+        tier: 2
+    worker-type: aws-provisioner-v1/gecko-t-linux-large
+    worker:
+        docker-image: {in-tree: "lint"}
+        max-run-time: 3600
+    run:
+        using: run-task
+        # this will evolve as we get closer and closer to python 3 compatibility. It may
+        # eventually be a mach command or shell script.
+        command: python3 -mcompileall python/
+    when:
+        files-changed:
+            - 'python/**/*.py'
--- a/taskcluster/docker/lint/system-setup.sh
+++ b/taskcluster/docker/lint/system-setup.sh
@@ -10,16 +10,18 @@ mkdir -p /setup
 cd /setup
 
 apt_packages=()
 apt_packages+=('curl')
 apt_packages+=('locales')
 apt_packages+=('git')
 apt_packages+=('python')
 apt_packages+=('python-pip')
+apt_packages+=('python3')
+apt_packages+=('python3-pip')
 apt_packages+=('sudo')
 apt_packages+=('wget')
 apt_packages+=('xz-utils')
 
 apt-get update
 apt-get install -y ${apt_packages[@]}
 
 # Without this we get spurious "LC_ALL: cannot change locale (en_US.UTF-8)" errors,