New smart API to list issues #2534
Open
firefoxci-taskcluster / Code Review Bot checks: linting
succeeded
Dec 6, 2024 in 3m 49s
FirefoxCI (pull_request)
Check code style with pre-commit hooks
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2024-12-06T17:01:09.291Z
Resolved: 2024-12-06T17:02:13.133Z
Task Execution Time: 1 minute, 3 seconds, 842 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2024-12-06T17:01:09.325Z] Worker Type (code-analysis-1/linux-gw-gcp) settings:
[taskcluster 2024-12-06T17:01:09.325Z] {
[taskcluster 2024-12-06T17:01:09.325Z] "config": {
[taskcluster 2024-12-06T17:01:09.325Z] "deploymentId": ""
[taskcluster 2024-12-06T17:01:09.325Z] },
[taskcluster 2024-12-06T17:01:09.325Z] "generic-worker": {
[taskcluster 2024-12-06T17:01:09.325Z] "engine": "multiuser",
[taskcluster 2024-12-06T17:01:09.325Z] "go-arch": "amd64",
[taskcluster 2024-12-06T17:01:09.325Z] "go-os": "linux",
[taskcluster 2024-12-06T17:01:09.325Z] "go-version": "go1.22.2",
[taskcluster 2024-12-06T17:01:09.325Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v64.3.0",
[taskcluster 2024-12-06T17:01:09.325Z] "revision": "b66b6614b9b79077f1bfc78f97afb8c25c0c4b30",
[taskcluster 2024-12-06T17:01:09.325Z] "source": "https://github.com/taskcluster/taskcluster/commits/b66b6614b9b79077f1bfc78f97afb8c25c0c4b30",
[taskcluster 2024-12-06T17:01:09.325Z] "version": "64.3.0"
[taskcluster 2024-12-06T17:01:09.325Z] },
[taskcluster 2024-12-06T17:01:09.325Z] "image": "projects/taskcluster-imaging/global/images/gw-fxci-gcp-l1-gui-googlecompute-2024-08-22t22-48-09z",
[taskcluster 2024-12-06T17:01:09.325Z] "instance-id": "1806794359731819437",
[taskcluster 2024-12-06T17:01:09.325Z] "instance-type": "projects/887720501152/machineTypes/c2-standard-4",
[taskcluster 2024-12-06T17:01:09.325Z] "local-ipv4": "10.128.1.164",
[taskcluster 2024-12-06T17:01:09.325Z] "project-id": "fxci-production-level1-workers",
[taskcluster 2024-12-06T17:01:09.325Z] "public-hostname": "code-analysis-1-linux-gw-gcp-ljx35afurm2no-0onk9rua.c.fxci-production-level1-workers.internal",
[taskcluster 2024-12-06T17:01:09.325Z] "public-ipv4": "34.30.99.123",
[taskcluster 2024-12-06T17:01:09.325Z] "region": "us-central1",
[taskcluster 2024-12-06T17:01:09.325Z] "zone": "us-central1-b"
[taskcluster 2024-12-06T17:01:09.325Z] }
[taskcluster 2024-12-06T17:01:09.326Z] Task ID: AG_7uKy4Tn-iRXWrpQMhrA
[taskcluster 2024-12-06T17:01:09.326Z] === Task Starting ===
[taskcluster:warn 2024-12-06T17:01:09.329Z] This task was designed to run under Docker Worker. Docker Worker is no longer maintained.
[taskcluster:warn 2024-12-06T17:01:09.329Z] In order to execute this task, it is being converted to a Generic Worker task, using the D2G
[taskcluster:warn 2024-12-06T17:01:09.329Z] utility (Docker Worker 2 Generic Worker):
[taskcluster:warn 2024-12-06T17:01:09.329Z] https://github.com/taskcluster/taskcluster/tree/main/clients/client-shell#translating-docker-worker-task-definitionpayload-to-generic-worker-task-definitionpayload
[taskcluster:warn 2024-12-06T17:01:09.329Z]
[taskcluster:warn 2024-12-06T17:01:09.329Z] We recommend that you convert all your Docker Worker tasks to Generic Worker tasks, to ensure
[taskcluster:warn 2024-12-06T17:01:09.329Z] continued support. For this task, see the converted payload below. If you have many tasks that
[taskcluster:warn 2024-12-06T17:01:09.329Z] require conversion, consider using the d2g tool (above) directly. It simply takes a Docker
[taskcluster:warn 2024-12-06T17:01:09.329Z] Worker task payload as input, and outputs a Generic Worker task payload. It can also convert
[taskcluster:warn 2024-12-06T17:01:09.329Z] Docker Worker scopes to equivalent Generic Worker scopes.
[taskcluster:warn 2024-12-06T17:01:09.329Z]
[taskcluster:warn 2024-12-06T17:01:09.329Z] Converted task definition (conversion performed by d2g):
[taskcluster:warn 2024-12-06T17:01:09.329Z] ---
[taskcluster:warn 2024-12-06T17:01:09.329Z] created: "2024-12-06T16:58:24.051Z"
[taskcluster:warn 2024-12-06T17:01:09.329Z] deadline: "2024-12-06T17:58:24.051Z"
[taskcluster:warn 2024-12-06T17:01:09.329Z] dependencies: []
[taskcluster:warn 2024-12-06T17:01:09.329Z] expires: "2025-12-06T17:58:24.051Z"
[taskcluster:warn 2024-12-06T17:01:09.329Z] extra: {}
[taskcluster:warn 2024-12-06T17:01:09.329Z] metadata:
[taskcluster:warn 2024-12-06T17:01:09.329Z] description: Check code style with pre-commit hooks
[taskcluster:warn 2024-12-06T17:01:09.329Z] name: 'Code Review Bot checks: linting'
[taskcluster:warn 2024-12-06T17:01:09.329Z] owner: [email protected]
[taskcluster:warn 2024-12-06T17:01:09.329Z] source: https://github.com/mozilla/code-review
[taskcluster:warn 2024-12-06T17:01:09.329Z] payload:
[taskcluster:warn 2024-12-06T17:01:09.329Z] command:
[taskcluster:warn 2024-12-06T17:01:09.329Z] - - bash
[taskcluster:warn 2024-12-06T17:01:09.329Z] - -cx
[taskcluster:warn 2024-12-06T17:01:09.329Z] - podman run -t --rm --privileged -e RUN_ID -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION
[taskcluster:warn 2024-12-06T17:01:09.329Z] -e TASK_ID 'python:3.12' sh -lxce 'git clone --quiet https://github.com/vrigal/code-review
[taskcluster:warn 2024-12-06T17:01:09.329Z] /src && cd /src && git checkout 700f7090ec3355bb443bab11151a0e6266ceefe2 -b
[taskcluster:warn 2024-12-06T17:01:09.329Z] checks && cd /src/bot && pip install --disable-pip-version-check --no-cache-dir
[taskcluster:warn 2024-12-06T17:01:09.329Z] --quiet -r requirements-dev.txt && cd /src && pre-commit run -a --show-diff-on-failure'
[taskcluster:warn 2024-12-06T17:01:09.329Z] features:
[taskcluster:warn 2024-12-06T17:01:09.329Z] backingLog: true
[taskcluster:warn 2024-12-06T17:01:09.329Z] liveLog: true
[taskcluster:warn 2024-12-06T17:01:09.329Z] logs:
[taskcluster:warn 2024-12-06T17:01:09.329Z] backing: public/logs/live_backing.log
[taskcluster:warn 2024-12-06T17:01:09.329Z] live: public/logs/live.log
[taskcluster:warn 2024-12-06T17:01:09.329Z] maxRunTime: 3600
[taskcluster:warn 2024-12-06T17:01:09.329Z] onExitStatus:
[taskcluster:warn 2024-12-06T17:01:09.329Z] retry:
[taskcluster:warn 2024-12-06T17:01:09.329Z] - 125
[taskcluster:warn 2024-12-06T17:01:09.329Z] - 128
[taskcluster:warn 2024-12-06T17:01:09.329Z] priority: lowest
[taskcluster:warn 2024-12-06T17:01:09.329Z] projectId: none
[taskcluster:warn 2024-12-06T17:01:09.329Z] provisionerId: code-analysis-1
[taskcluster:warn 2024-12-06T17:01:09.329Z] requires: all-completed
[taskcluster:warn 2024-12-06T17:01:09.329Z] retries: 5
[taskcluster:warn 2024-12-06T17:01:09.329Z] routes:
[taskcluster:warn 2024-12-06T17:01:09.329Z] - checks
[taskcluster:warn 2024-12-06T17:01:09.329Z] schedulerId: taskcluster-github
[taskcluster:warn 2024-12-06T17:01:09.329Z] scopes: []
[taskcluster:warn 2024-12-06T17:01:09.329Z] tags: {}
[taskcluster:warn 2024-12-06T17:01:09.329Z] taskGroupId: bMWskN03Q3GCO9H0cPwwmw
[taskcluster:warn 2024-12-06T17:01:09.329Z] taskQueueId: code-analysis-1/linux-gw-gcp
[taskcluster:warn 2024-12-06T17:01:09.329Z] workerType: linux-gw-gcp
[taskcluster:warn 2024-12-06T17:01:09.329Z]
[taskcluster 2024-12-06T17:01:10.159Z] Uploading redirect artifact public/logs/live.log to URL https://firefoxci-websocktunnel.services.mozilla.com/us-central1-b.1806794359731819437.60099/log/K-uy2COQSze_wLUvs16YIQ with mime type "text/plain; charset=utf-8" and expiry 2024-12-06T18:16:10.092Z
[taskcluster 2024-12-06T17:01:10.212Z] Executing command 0: bash -cx 'podman run -t --rm --privileged -e RUN_ID -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID '\''python:3.12'\'' sh -lxce '\''git clone --quiet https://github.com/vrigal/code-review /src && cd /src && git checkout 700f7090ec3355bb443bab11151a0e6266ceefe2 -b checks && cd /src/bot && pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt && cd /src && pre-commit run -a --show-diff-on-failure'\'
+ podman run -t --rm --privileged -e RUN_ID -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID python:3.12 sh -lxce 'git clone --quiet https://github.com/vrigal/code-review /src && cd /src && git checkout 700f7090ec3355bb443bab11151a0e6266ceefe2 -b checks && cd /src/bot && pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt && cd /src && pre-commit run -a --show-diff-on-failure'
Resolved "python" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/python:3.12...
Getting image source signatures
Copying blob sha256:b167200c1204a2f235df4442b7b76bce5434f87907564e2a8c50958b7e01c0a4
Copying blob sha256:551df7f94f9c131f2fec0e8063142411365f0a1c88b935b9fac22be91af227e0
Copying blob sha256:5bd71677db44bb63b94de61b6f1f95d5540b4ba2d6a8a6bc4d19f422b25e0c2b
Copying blob sha256:fdf894e782a221820acf469d425b802be26aedb5e5d26ea80a650ff6a974d488
Copying blob sha256:53dbba7cf7cad59736747487c0de17e55fafe31ebe8caafc0559ae0f655a578c
Copying blob sha256:ce82e98d553dd62ca6a12bebfe83992ae9f9ae2748275e74b66a68cc094f868b
Copying blob sha256:5bd71677db44bb63b94de61b6f1f95d5540b4ba2d6a8a6bc4d19f422b25e0c2b
Copying blob sha256:ce82e98d553dd62ca6a12bebfe83992ae9f9ae2748275e74b66a68cc094f868b
Copying blob sha256:fdf894e782a221820acf469d425b802be26aedb5e5d26ea80a650ff6a974d488
Copying blob sha256:53dbba7cf7cad59736747487c0de17e55fafe31ebe8caafc0559ae0f655a578c
Copying blob sha256:b167200c1204a2f235df4442b7b76bce5434f87907564e2a8c50958b7e01c0a4
Copying blob sha256:551df7f94f9c131f2fec0e8063142411365f0a1c88b935b9fac22be91af227e0
Copying blob sha256:8871a2ca0dba7c3bb5fd945d42fad088e4b175d396b194db40245b33e9d07599
Copying blob sha256:8871a2ca0dba7c3bb5fd945d42fad088e4b175d396b194db40245b33e9d07599
Copying config sha256:efef85b1e82bd0a28060a387f61b58e5518853631588ba9694db6d704fe3f08e
Writing manifest to image destination
Storing signatures
+ id -u
+ [ 0 -eq 0 ]
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ [ # ]
+ [ ]
+ id -u
+ [ 0 -eq 0 ]
+ PS1=#
+ [ -d /etc/profile.d ]
+ [ -r /etc/profile.d/*.sh ]
+ unset i
+ [ ]
+ mesg n
+ true
+ git clone --quiet https://github.com/vrigal/code-review /src
+ cd /src
+ git checkout 700f7090ec3355bb443bab11151a0e6266ceefe2 -b checks
Switched to a new branch 'checks'
+ cd /src/bot
+ pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ cd /src
+ pre-commit run -a --show-diff-on-failure
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:[email protected].
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo.
[INFO] Initializing environment for https://github.com/codespell-project/codespell.
[INFO] Initializing environment for https://github.com/marco-c/taskcluster_yml_validator.
[INFO] Initializing environment for https://github.com/asottile/yesqa.
[INFO] Installing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/marco-c/taskcluster_yml_validator.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
ruff.....................................................................Passed
ruff-format..............................................................Passed
prettier.................................................................Passed
check python ast.........................................................Passed
check docstring is first.................................................Passed
check that executables have shebangs.....................................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
debug statements (python)................................................Passed
trim trailing whitespace.................................................Passed
check yaml...............................................................Passed
mixed line ending........................................................Passed
python tests naming......................................................Passed
check json...............................................................Passed
fix requirements.txt.....................................................Passed
check vcs permalinks.....................................................Passed
codespell................................................................Passed
taskcluster_yml..........................................................Passed
Strip unnecessary `# noqa`s..............................................Passed
Check for useless excludes...............................................Passed
[taskcluster 2024-12-06T17:02:12.847Z] Exit Code: 0
[taskcluster 2024-12-06T17:02:12.847Z] User Time: 23.956241s
[taskcluster 2024-12-06T17:02:12.847Z] Kernel Time: 4.600097s
[taskcluster 2024-12-06T17:02:12.847Z] Wall Time: 1m2.634536263s
[taskcluster 2024-12-06T17:02:12.847Z] Result: SUCCEEDED
[taskcluster 2024-12-06T17:02:12.847Z] === Task Finished ===
[taskcluster 2024-12-06T17:02:12.847Z] Task Duration: 1m2.634962524s
[taskcluster 2024-12-06T17:02:12.917Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-12-06T17:58:24.051Z
Loading