Bug 1391019 - Replace the py(3) task with py-compat lint task, r?gps draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 31 Aug 2017 10:12:30 -0400
changeset 656709 f425105ee892b9cc087a06d75d23aa7d4aad2b02
parent 656708 7f81e382656208f8f7ae20c632f6fd0ed4ff1e52
child 729215 3cf27862a98fbe46343b54371213fe1a9fa4503c
push id77293
push userahalberstadt@mozilla.com
push dateThu, 31 Aug 2017 15:17:15 +0000
reviewersgps
bugs1391019
milestone57.0a1
Bug 1391019 - Replace the py(3) task with py-compat lint task, r?gps MozReview-Commit-ID: ABtq9dnPo9T
taskcluster/ci/source-test/mozlint.yml
taskcluster/ci/source-test/python-tests.yml
--- a/taskcluster/ci/source-test/mozlint.yml
+++ b/taskcluster/ci/source-test/mozlint.yml
@@ -31,17 +31,17 @@ mozlint-eslint:
             - '**/*eslintrc*'
             # The plugin implementing custom checks.
             - 'tools/lint/eslint/eslint-plugin-mozilla/**'
             - 'tools/lint/eslint/eslint-plugin-spidermonkey-js/**'
             # Other misc lint related files.
             - 'python/mozlint/**'
             - 'tools/lint/**'
 
-mozlint-flake8:
+mozlint-py-flake8:
     description: flake8 run over the gecko codebase
     platform: lint/opt
     treeherder:
         symbol: f8
         kind: test
         tier: 1
     worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
     worker:
@@ -74,16 +74,36 @@ mozlint-yaml:
     when:
         files-changed:
             - '**/*.yml'
             - '**/*.yaml'
             - '**/.ymllint'
             - 'python/mozlint/**'
             - 'tools/lint/**'
 
+mozlint-py-compat:
+    description: lint for python 2/3 compatibility issues
+    platform: lint/opt
+    treeherder:
+        symbol: py-compat
+        kind: test
+        tier: 1
+    worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
+    worker:
+        docker-image: {in-tree: "lint"}
+        max-run-time: 1800
+    run:
+        using: mach
+        mach: lint -l py2 -l py3 -f treeherder
+    when:
+        files-changed:
+            - '**/.py'
+            - 'python/mozlint/**'
+            - 'tools/lint/**'
+
 wptlint-gecko:
     description: web-platform-tests linter
     platform: lint/opt
     treeherder:
         symbol: W
         kind: test
         tier: 1
     worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
--- a/taskcluster/ci/source-test/python-tests.yml
+++ b/taskcluster/ci/source-test/python-tests.yml
@@ -143,28 +143,8 @@ 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/ taskcluster/
-    when:
-        files-changed:
-            - '**/*.py'