Run backend unit tests with postgresql #2551
Merged
Community-TC Integration / Code Review Bot checks: linting
succeeded
Nov 26, 2024 in 3m 14s
Community-TC (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-11-26T15:19:22.060Z
Resolved: 2024-11-26T15:20:43.790Z
Task Execution Time: 1 minute, 21 seconds, 730 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2024-11-26T15:19:22.114Z] Worker Type (proj-relman/generic-worker-ubuntu-24-04) settings:
[taskcluster 2024-11-26T15:19:22.114Z] {
[taskcluster 2024-11-26T15:19:22.114Z] "config": {
[taskcluster 2024-11-26T15:19:22.114Z] "deploymentId": "844596cdddb1d351"
[taskcluster 2024-11-26T15:19:22.114Z] },
[taskcluster 2024-11-26T15:19:22.114Z] "generic-worker": {
[taskcluster 2024-11-26T15:19:22.114Z] "config": {
[taskcluster 2024-11-26T15:19:22.114Z] "headlessTasks": false,
[taskcluster 2024-11-26T15:19:22.114Z] "runTasksAsCurrentUser": false
[taskcluster 2024-11-26T15:19:22.114Z] },
[taskcluster 2024-11-26T15:19:22.114Z] "engine": "multiuser",
[taskcluster 2024-11-26T15:19:22.114Z] "go-arch": "amd64",
[taskcluster 2024-11-26T15:19:22.114Z] "go-os": "linux",
[taskcluster 2024-11-26T15:19:22.114Z] "go-version": "go1.23.3",
[taskcluster 2024-11-26T15:19:22.114Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v75.0.0",
[taskcluster 2024-11-26T15:19:22.114Z] "revision": "1f02e08d3ac9520fd636409dd44f97b9945bf882",
[taskcluster 2024-11-26T15:19:22.114Z] "source": "https://github.com/taskcluster/taskcluster/commits/1f02e08d3ac9520fd636409dd44f97b9945bf882",
[taskcluster 2024-11-26T15:19:22.114Z] "version": "75.0.0"
[taskcluster 2024-11-26T15:19:22.114Z] },
[taskcluster 2024-11-26T15:19:22.114Z] "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-3h7p1s34a3ita9ol73mw",
[taskcluster 2024-11-26T15:19:22.114Z] "instance-id": "3179024913174911075",
[taskcluster 2024-11-26T15:19:22.114Z] "instance-type": "projects/757942385826/machineTypes/n2-standard-4",
[taskcluster 2024-11-26T15:19:22.114Z] "local-ipv4": "10.142.0.37",
[taskcluster 2024-11-26T15:19:22.114Z] "machine-setup": {
[taskcluster 2024-11-26T15:19:22.114Z] "maintainer": "[email protected]",
[taskcluster 2024-11-26T15:19:22.114Z] "script": "https://raw.githubusercontent.com/taskcluster/community-tc-config/4c6600ec749918b8d0ef677d7cec2ef65209074e/imagesets/generic-worker-ubuntu-24-04/bootstrap.sh"
[taskcluster 2024-11-26T15:19:22.114Z] },
[taskcluster 2024-11-26T15:19:22.114Z] "project-id": "community-tc-workers",
[taskcluster 2024-11-26T15:19:22.114Z] "public-hostname": "proj-relman-generic-worker-ubuntu-24-0-w2ktr6yqsrcv2cusfactwg.c.community-tc-workers.internal",
[taskcluster 2024-11-26T15:19:22.114Z] "public-ipv4": "35.229.127.208",
[taskcluster 2024-11-26T15:19:22.114Z] "region": "us-east1",
[taskcluster 2024-11-26T15:19:22.114Z] "zone": "us-east1-b"
[taskcluster 2024-11-26T15:19:22.114Z] }
[taskcluster 2024-11-26T15:19:22.114Z] Task ID: Gm7YfUA2RWyXIvuB1tR7cg
[taskcluster 2024-11-26T15:19:22.114Z] === Task Starting ===
[taskcluster:warn 2024-11-26T15:19:22.117Z] This task was designed to run under Docker Worker. Docker Worker is no longer maintained.
[taskcluster:warn 2024-11-26T15:19:22.117Z] In order to execute this task, it is being converted to a Generic Worker task, using the D2G
[taskcluster:warn 2024-11-26T15:19:22.117Z] utility (Docker Worker 2 Generic Worker):
[taskcluster:warn 2024-11-26T15:19:22.117Z] https://github.com/taskcluster/taskcluster/tree/main/clients/client-shell#translating-docker-worker-task-definitionpayload-to-generic-worker-task-definitionpayload
[taskcluster:warn 2024-11-26T15:19:22.117Z]
[taskcluster:warn 2024-11-26T15:19:22.117Z] We recommend that you convert all your Docker Worker tasks to Generic Worker tasks, to ensure
[taskcluster:warn 2024-11-26T15:19:22.117Z] continued support. For this task, see the converted payload below. If you have many tasks that
[taskcluster:warn 2024-11-26T15:19:22.117Z] require conversion, consider using the d2g tool (above) directly. It simply takes a Docker
[taskcluster:warn 2024-11-26T15:19:22.117Z] Worker task payload as input, and outputs a Generic Worker task payload. It can also convert
[taskcluster:warn 2024-11-26T15:19:22.117Z] Docker Worker scopes to equivalent Generic Worker scopes.
[taskcluster:warn 2024-11-26T15:19:22.117Z]
[taskcluster:warn 2024-11-26T15:19:22.117Z] Converted task definition (conversion performed by d2g):
[taskcluster:warn 2024-11-26T15:19:22.117Z] ---
[taskcluster:warn 2024-11-26T15:19:22.117Z] created: "2024-11-26T15:17:30.396Z"
[taskcluster:warn 2024-11-26T15:19:22.117Z] deadline: "2024-11-26T16:17:30.396Z"
[taskcluster:warn 2024-11-26T15:19:22.117Z] dependencies: []
[taskcluster:warn 2024-11-26T15:19:22.117Z] expires: "2025-11-26T16:17:30.396Z"
[taskcluster:warn 2024-11-26T15:19:22.117Z] extra: {}
[taskcluster:warn 2024-11-26T15:19:22.117Z] metadata:
[taskcluster:warn 2024-11-26T15:19:22.117Z] description: Check code style with pre-commit hooks
[taskcluster:warn 2024-11-26T15:19:22.117Z] name: 'Code Review Bot checks: linting'
[taskcluster:warn 2024-11-26T15:19:22.117Z] owner: [email protected]
[taskcluster:warn 2024-11-26T15:19:22.117Z] source: https://github.com/mozilla/code-review
[taskcluster:warn 2024-11-26T15:19:22.117Z] payload:
[taskcluster:warn 2024-11-26T15:19:22.117Z] command:
[taskcluster:warn 2024-11-26T15:19:22.117Z] - - bash
[taskcluster:warn 2024-11-26T15:19:22.117Z] - -cx
[taskcluster:warn 2024-11-26T15:19:22.117Z] - docker run -t --rm --memory-swap -1 --pids-limit -1 -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE
[taskcluster:warn 2024-11-26T15:19:22.117Z] -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID
[taskcluster:warn 2024-11-26T15:19:22.117Z] 'python:3.12' sh -lxce 'git clone --quiet https://github.com/La0/code-review
[taskcluster:warn 2024-11-26T15:19:22.117Z] /src && cd /src && git checkout 59023393da811094c53e96160730cffb80e755fb -b
[taskcluster:warn 2024-11-26T15:19:22.117Z] checks && cd /src/bot && pip install --disable-pip-version-check --no-cache-dir
[taskcluster:warn 2024-11-26T15:19:22.117Z] --quiet -r requirements-dev.txt && cd /src && pre-commit run -a --show-diff-on-failure'
[taskcluster:warn 2024-11-26T15:19:22.117Z] features:
[taskcluster:warn 2024-11-26T15:19:22.117Z] backingLog: true
[taskcluster:warn 2024-11-26T15:19:22.117Z] liveLog: true
[taskcluster:warn 2024-11-26T15:19:22.117Z] logs:
[taskcluster:warn 2024-11-26T15:19:22.117Z] backing: public/logs/live_backing.log
[taskcluster:warn 2024-11-26T15:19:22.117Z] live: public/logs/live.log
[taskcluster:warn 2024-11-26T15:19:22.117Z] maxRunTime: 3600
[taskcluster:warn 2024-11-26T15:19:22.117Z] onExitStatus:
[taskcluster:warn 2024-11-26T15:19:22.117Z] retry:
[taskcluster:warn 2024-11-26T15:19:22.117Z] - 125
[taskcluster:warn 2024-11-26T15:19:22.117Z] - 128
[taskcluster:warn 2024-11-26T15:19:22.117Z] osGroups:
[taskcluster:warn 2024-11-26T15:19:22.117Z] - docker
[taskcluster:warn 2024-11-26T15:19:22.117Z] priority: lowest
[taskcluster:warn 2024-11-26T15:19:22.117Z] projectId: none
[taskcluster:warn 2024-11-26T15:19:22.117Z] provisionerId: proj-relman
[taskcluster:warn 2024-11-26T15:19:22.117Z] requires: all-completed
[taskcluster:warn 2024-11-26T15:19:22.117Z] retries: 5
[taskcluster:warn 2024-11-26T15:19:22.117Z] routes:
[taskcluster:warn 2024-11-26T15:19:22.117Z] - checks
[taskcluster:warn 2024-11-26T15:19:22.117Z] schedulerId: taskcluster-github
[taskcluster:warn 2024-11-26T15:19:22.117Z] scopes:
[taskcluster:warn 2024-11-26T15:19:22.117Z] - generic-worker:os-group:proj-relman/generic-worker-ubuntu-24-04/docker
[taskcluster:warn 2024-11-26T15:19:22.117Z] tags: {}
[taskcluster:warn 2024-11-26T15:19:22.117Z] taskGroupId: IHyfHVQZQPKOr5UgMv2-jw
[taskcluster:warn 2024-11-26T15:19:22.117Z] taskQueueId: proj-relman/generic-worker-ubuntu-24-04
[taskcluster:warn 2024-11-26T15:19:22.117Z] workerType: generic-worker-ubuntu-24-04
[taskcluster:warn 2024-11-26T15:19:22.117Z]
[taskcluster 2024-11-26T15:19:23.500Z] Uploading redirect artifact public/logs/live.log to URL https://community-websocktunnel.services.mozilla.com/us-east1-b.3179024913174911075.60099/log/dC-8ckDlRvGUn_Ufhe63Ww with mime type "text/plain; charset=utf-8" and expiry 2024-11-26T16:34:23.408Z
[taskcluster 2024-11-26T15:19:23.716Z] Executing command 0: bash -cx 'docker run -t --rm --memory-swap -1 --pids-limit -1 -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID '\''python:3.12'\'' sh -lxce '\''git clone --quiet https://github.com/La0/code-review /src && cd /src && git checkout 59023393da811094c53e96160730cffb80e755fb -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'\'
+ docker run -t --rm --memory-swap -1 --pids-limit -1 -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID python:3.12 sh -lxce 'git clone --quiet https://github.com/La0/code-review /src && cd /src && git checkout 59023393da811094c53e96160730cffb80e755fb -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'
Unable to find image 'python:3.12' locally
3.12: Pulling from library/python
b2b31b28ee3c: Pulling fs layer
c3cc7b6f0473: Pulling fs layer
2112e5e7c3ff: Pulling fs layer
af247aac0764: Pulling fs layer
c7e62dc73b01: Pulling fs layer
35c3ce70330a: Pulling fs layer
f8af1611cc8d: Pulling fs layer
af247aac0764: Waiting
c7e62dc73b01: Waiting
35c3ce70330a: Waiting
f8af1611cc8d: Waiting
c3cc7b6f0473: Verifying Checksum
c3cc7b6f0473: Download complete
2112e5e7c3ff: Verifying Checksum
2112e5e7c3ff: Download complete
c7e62dc73b01: Verifying Checksum
c7e62dc73b01: Download complete
b2b31b28ee3c: Verifying Checksum
b2b31b28ee3c: Download complete
f8af1611cc8d: Verifying Checksum
f8af1611cc8d: Download complete
35c3ce70330a: Verifying Checksum
35c3ce70330a: Download complete
af247aac0764: Verifying Checksum
af247aac0764: Download complete
b2b31b28ee3c: Pull complete
c3cc7b6f0473: Pull complete
2112e5e7c3ff: Pull complete
af247aac0764: Pull complete
c7e62dc73b01: Pull complete
35c3ce70330a: Pull complete
f8af1611cc8d: Pull complete
Digest: sha256:f71437b2bad6af0615875c8f7fbeeeae1b73e3c76b82056d283644aca5afe355
Status: Downloaded newer image for python:3.12
+ 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/La0/code-review /src
+ cd /src
+ git checkout 59023393da811094c53e96160730cffb80e755fb -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-11-26T15:20:43.346Z] Exit Code: 0
[taskcluster 2024-11-26T15:20:43.346Z] User Time: 42.366ms
[taskcluster 2024-11-26T15:20:43.346Z] Kernel Time: 38.734ms
[taskcluster 2024-11-26T15:20:43.346Z] Wall Time: 1m19.629710173s
[taskcluster 2024-11-26T15:20:43.346Z] Result: SUCCEEDED
[taskcluster 2024-11-26T15:20:43.346Z] === Task Finished ===
[taskcluster 2024-11-26T15:20:43.347Z] Task Duration: 1m19.630174986s
[taskcluster 2024-11-26T15:20:43.483Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-11-26T16:17:30.396Z
Loading