Bug 1391019 - Replace the py(3) task with py-compat lint task, r=gps
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 31 Aug 2017 10:12:30 -0400
changeset 378033 bb9206cf5ceb31a15dfd3c352a0dba140394a4af
parent 378032 ad881fc5e6b01f2c74d3a325b6c622a3ccb606c5
child 378034 e8bc46732fe116cf263a4e607d8e04ab08b32eb5
push id50162
push userahalberstadt@mozilla.com
push dateThu, 31 Aug 2017 19:38:30 +0000
treeherderautoland@bb9206cf5ceb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1391019
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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'