ci: switch from poetry to uv #43
Closed
firefoxci-taskcluster / test-unit
succeeded
Sep 12, 2024 in 4m 49s
FirefoxCI (pull_request)
Run unit tests
to validate the latest changes
Details
View task in Taskcluster
View logs in Taskcluster
[taskcluster 2024-09-12 13:59:21.997Z] Task ID: cZONBkfmTbymrZvMxb9AhA
[taskcluster 2024-09-12 13:59:21.997Z] Worker ID: 4356286117680467299
[taskcluster 2024-09-12 13:59:21.997Z] Worker Group: us-west1-b
[taskcluster 2024-09-12 13:59:21.997Z] Worker Node Type: projects/887720501152/machineTypes/c2-standard-4
[taskcluster 2024-09-12 13:59:21.997Z] Worker Type: t-linux-large-gcp
[taskcluster 2024-09-12 13:59:21.997Z] Public IP: 35.230.109.2
[taskcluster 2024-09-12 13:59:21.997Z] Hostname: mozilla-t-t-linux-large-gcp-ls3w7i0-tw2jfmmspwwdlq
[taskcluster 2024-09-12 13:59:21.997Z] using cache "mozilla-level-1-checkouts-v3-7f8630edfaa3588fb9ab-e8LTYsuoRbS4-jjMAZ3BYg" -> /builds/worker/checkouts
[taskcluster 2024-09-12 13:59:22.515Z] Downloading artifact "public/image.tar.zst" from task ID: e8LTYsuoRbS4-jjMAZ3BYg.
[taskcluster 2024-09-12 13:59:27.083Z] Downloaded artifact successfully.
[taskcluster 2024-09-12 13:59:27.084Z] Downloaded 412.403 mb
[taskcluster 2024-09-12 13:59:27.085Z] Decompressing downloaded image
[taskcluster 2024-09-12 13:59:29.555Z] Loading docker image from downloaded archive.
[taskcluster 2024-09-12 13:59:52.210Z] Image 'public/image.tar.zst' from task 'e8LTYsuoRbS4-jjMAZ3BYg' loaded. Using image ID sha256:583d68b9428198b164cfcdc84f7da2bff20a47778c95a3174ac5cbac47fca556.
[taskcluster 2024-09-12 13:59:52.361Z] === Task Starting ===
[setup 2024-09-12T13:59:52.736Z] run-task started in /
[setup 2024-09-12T13:59:52.737Z] Invoked by command: --simple_github-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- bash -cx uv run tox --parallel
[setup 2024-09-12T13:59:52.737Z] Python version: 3.11.2
[cache 2024-09-12T13:59:52.738Z] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2024-09-12T13:59:52.738Z] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2024-09-12T13:59:52.738Z] volume /builds/worker/checkouts is a cache
[setup 2024-09-12T13:59:52.738Z] running as worker:worker
[vcs 2024-09-12T13:59:52.738Z] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2024-09-12T13:59:52.740Z] executing ['git', 'clone', 'https://github.com/mozilla-releng/simple-github', '/builds/worker/checkouts/vcs']
[vcs 2024-09-12T13:59:52.741Z] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2024-09-12T13:59:53.390Z] executing ['git', 'fetch', '--no-tags', 'https://github.com/ahal/simple-github', 'uv']
[vcs 2024-09-12T13:59:53.891Z] From https://github.com/ahal/simple-github
[vcs 2024-09-12T13:59:53.891Z] * branch uv -> FETCH_HEAD
[vcs 2024-09-12T13:59:53.893Z] executing ['git', 'checkout', '-f', '-B', 'uv', '3573ed590a448b28b48e8a77310686577eea463e']
[vcs 2024-09-12T13:59:53.898Z] Switched to a new branch 'uv'
[vcs 2024-09-12T13:59:53.898Z] cleaning git checkout...
[vcs 2024-09-12T13:59:53.898Z] executing ['git', 'clean', '-nxdff']
[vcs 2024-09-12T13:59:53.900Z] removing []
[vcs 2024-09-12T13:59:53.900Z] successfully cleaned git checkout!
[vcs 2024-09-12T13:59:53.901Z] TinderboxPrint:<a href='https://github.com/ahal/simple-github/commit/3573ed590a448b28b48e8a77310686577eea463e' title='Built from simple-github commit 3573ed590a448b28b48e8a77310686577eea463e'>3573ed590a448b28b48e8a77310686577eea463e</a>
[task 2024-09-12T13:59:53.901Z] executing ['bash', '-cx', 'uv run tox --parallel']
[task 2024-09-12T13:59:53.902Z] + uv run tox --parallel
[task 2024-09-12T13:59:54.044Z] Using Python 3.11.10
[task 2024-09-12T13:59:54.044Z] Creating virtualenv at: .venv
[task 2024-09-12T13:59:54.951Z] warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
[task 2024-09-12T13:59:54.951Z] If the cache and target directories are on different filesystems, hardlinking may not be supported.
[task 2024-09-12T13:59:54.951Z] If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
[task 2024-09-12T13:59:55.068Z] Installed 73 packages in 117ms
[task 2024-09-12T14:00:14.116Z] .pkg: install_requires> python -I -m pip install hatchling
[task 2024-09-12T14:00:14.116Z] .pkg: _optional_hooks> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-12T14:00:14.117Z] .pkg: get_requires_for_build_sdist> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-12T14:00:14.117Z] .pkg: build_sdist> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-12T14:00:14.117Z] clean: install_package_deps> python -I -m pip install 'aiohttp[speedups]~=3.8' 'gql[aiohttp,requests]~=3.4' 'pyjwt[crypto]~=2.8' 'requests~=2.31'
[task 2024-09-12T14:00:14.117Z] clean: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/1/simple_github-1.0.0.tar.gz
[task 2024-09-12T14:00:14.117Z] clean: commands[0]> uv run coverage erase
[task 2024-09-12T14:00:14.117Z] py38: skipped because could not find python interpreter with spec(s): py38
[task 2024-09-12T14:00:14.117Z] py312: skipped because could not find python interpreter with spec(s): py312
[task 2024-09-12T14:00:14.117Z] py310: skipped because could not find python interpreter with spec(s): py310
[task 2024-09-12T14:00:14.117Z] py311: install_package_deps> python -I -m pip install 'aiohttp[speedups]~=3.8' 'gql[aiohttp,requests]~=3.4' 'pyjwt[crypto]~=2.8' 'requests~=2.31'
[task 2024-09-12T14:00:14.117Z] py311: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/2/simple_github-1.0.0.tar.gz
[task 2024-09-12T14:00:14.117Z] py311: commands[0]> uv run python --version
[task 2024-09-12T14:00:14.117Z] Python 3.11.10
[task 2024-09-12T14:00:14.117Z] py311: commands[1]> uv run coverage run --context=py311 -p -m pytest -vv
[task 2024-09-12T14:00:14.117Z] ============================= test session starts ==============================
[task 2024-09-12T14:00:14.117Z] platform linux -- Python 3.11.10, pytest-7.4.4, pluggy-1.5.0 -- /builds/worker/checkouts/vcs/.venv/bin/python
[task 2024-09-12T14:00:14.117Z] cachedir: .tox/py311/.pytest_cache
[task 2024-09-12T14:00:14.117Z] rootdir: /builds/worker/checkouts/vcs
[task 2024-09-12T14:00:14.117Z] configfile: pyproject.toml
[task 2024-09-12T14:00:14.117Z] plugins: anyio-4.4.0, responses-0.5.1, mock-3.14.0, asyncio-0.23.8, aioresponses-0.2.0
[task 2024-09-12T14:00:14.117Z] asyncio: mode=Mode.STRICT
[task 2024-09-12T14:00:14.117Z] collecting ... collected 14 items
[task 2024-09-12T14:00:14.117Z]
[task 2024-09-12T14:00:14.117Z] test/test_auth.py::test_token_auth_get_token PASSED [ 7%]
[task 2024-09-12T14:00:14.117Z] test/test_auth.py::test_app_auth_get_token PASSED [ 14%]
[task 2024-09-12T14:00:14.117Z] test/test_auth.py::test_app_installation_auth_get_token PASSED [ 21%]
[task 2024-09-12T14:00:14.117Z] test/test_client.py::test_async_client_get_session PASSED [ 28%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_sync_client_get_session PASSED [ 35%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_async_client_rest PASSED [ 42%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_sync_client_rest PASSED [ 50%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_async_client_rest_with_text PASSED [ 57%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_sync_client_rest_with_text PASSED [ 64%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_async_client_graphql PASSED [ 71%]
[task 2024-09-12T14:00:14.118Z] test/test_client.py::test_sync_client_graphql PASSED [ 78%]
[task 2024-09-12T14:00:14.118Z] test/test_simple_github.py::test_token_client PASSED [ 85%]
[task 2024-09-12T14:00:14.118Z] test/test_simple_github.py::test_app_client PASSED [ 92%]
[task 2024-09-12T14:00:14.118Z] test/test_simple_github.py::test_app_installation_client PASSED [100%]
[task 2024-09-12T14:00:14.118Z]
[task 2024-09-12T14:00:14.118Z] ============================== 14 passed in 0.76s ==============================
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/clean` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/py311` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/py311` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/py39` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/py39` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/report` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] warning: `VIRTUAL_ENV=.tox/report` does not match the project environment path `.venv` and will be ignored
[task 2024-09-12T14:00:20.081Z] py39: install_package_deps> python -I -m pip install 'aiohttp[speedups]~=3.8' 'gql[aiohttp,requests]~=3.4' 'pyjwt[crypto]~=2.8' 'requests~=2.31'
[task 2024-09-12T14:00:20.081Z] py39: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/3/simple_github-1.0.0.tar.gz
[task 2024-09-12T14:00:20.081Z] py39: commands[0]> uv run python --version
[task 2024-09-12T14:00:20.081Z] Python 3.11.10
[task 2024-09-12T14:00:20.081Z] py39: commands[1]> uv run coverage run --context=py39 -p -m pytest -vv
[task 2024-09-12T14:00:20.081Z] ============================= test session starts ==============================
[task 2024-09-12T14:00:20.081Z] platform linux -- Python 3.11.10, pytest-7.4.4, pluggy-1.5.0 -- /builds/worker/checkouts/vcs/.venv/bin/python
[task 2024-09-12T14:00:20.081Z] cachedir: .tox/py39/.pytest_cache
[task 2024-09-12T14:00:20.081Z] rootdir: /builds/worker/checkouts/vcs
[task 2024-09-12T14:00:20.081Z] configfile: pyproject.toml
[task 2024-09-12T14:00:20.081Z] plugins: anyio-4.4.0, responses-0.5.1, mock-3.14.0, asyncio-0.23.8, aioresponses-0.2.0
[task 2024-09-12T14:00:20.081Z] asyncio: mode=Mode.STRICT
[task 2024-09-12T14:00:20.081Z] collecting ... collected 14 items
[task 2024-09-12T14:00:20.081Z]
[task 2024-09-12T14:00:20.081Z] test/test_auth.py::test_token_auth_get_token PASSED [ 7%]
[task 2024-09-12T14:00:20.081Z] test/test_auth.py::test_app_auth_get_token PASSED [ 14%]
[task 2024-09-12T14:00:20.081Z] test/test_auth.py::test_app_installation_auth_get_token PASSED [ 21%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_async_client_get_session PASSED [ 28%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_sync_client_get_session PASSED [ 35%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_async_client_rest PASSED [ 42%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_sync_client_rest PASSED [ 50%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_async_client_rest_with_text PASSED [ 57%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_sync_client_rest_with_text PASSED [ 64%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_async_client_graphql PASSED [ 71%]
[task 2024-09-12T14:00:20.081Z] test/test_client.py::test_sync_client_graphql PASSED [ 78%]
[task 2024-09-12T14:00:20.081Z] test/test_simple_github.py::test_token_client PASSED [ 85%]
[task 2024-09-12T14:00:20.081Z] test/test_simple_github.py::test_app_client PASSED [ 92%]
[task 2024-09-12T14:00:20.081Z] test/test_simple_github.py::test_app_installation_client PASSED [100%]
[task 2024-09-12T14:00:20.081Z]
[task 2024-09-12T14:00:20.081Z] ============================== 14 passed in 0.48s ==============================
[task 2024-09-12T14:00:20.081Z] .pkg: _exit> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-12T14:00:20.081Z] report: install_package_deps> python -I -m pip install 'aiohttp[speedups]~=3.8' 'gql[aiohttp,requests]~=3.4' 'pyjwt[crypto]~=2.8' 'requests~=2.31'
[task 2024-09-12T14:00:20.081Z] report: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/4/simple_github-1.0.0.tar.gz
[task 2024-09-12T14:00:20.081Z] report: commands[0]> uv run coverage combine
[task 2024-09-12T14:00:20.081Z] Combined data file .coverage.831ecf68a880.218.XhCegnZx
[task 2024-09-12T14:00:20.081Z] Combined data file .coverage.831ecf68a880.284.XxWlTgSx
[task 2024-09-12T14:00:20.081Z] report: commands[1]> uv run coverage xml -o /builds/worker/artifacts/coverage.xml
[task 2024-09-12T14:00:20.081Z] Wrote XML report to /builds/worker/artifacts/coverage.xml
[task 2024-09-12T14:00:20.081Z] clean: OK ✔ in 7.61 seconds
[task 2024-09-12T14:00:20.081Z] py38: SKIP ⚠ in 0.44 seconds
[task 2024-09-12T14:00:20.081Z] py312: SKIP ⚠ in 0.44 seconds
[task 2024-09-12T14:00:20.081Z] py310: SKIP ⚠ in 0.45 seconds
[task 2024-09-12T14:00:20.081Z] py311: OK ✔ in 7.65 seconds
[task 2024-09-12T14:00:20.081Z] py39: OK ✔ in 10.85 seconds
[task 2024-09-12T14:00:20.081Z] clean: OK (7.61=setup[7.38]+cmd[0.23] seconds)
[task 2024-09-12T14:00:20.081Z] py38: SKIP (0.44 seconds)
[task 2024-09-12T14:00:20.081Z] py39: OK (10.85=setup[9.69]+cmd[0.03,1.14] seconds)
[task 2024-09-12T14:00:20.081Z] py310: SKIP (0.45 seconds)
[task 2024-09-12T14:00:20.081Z] py311: OK (7.65=setup[5.65]+cmd[0.03,1.96] seconds)
[task 2024-09-12T14:00:20.081Z] py312: SKIP (0.44 seconds)
[task 2024-09-12T14:00:20.081Z] report: OK (5.96=setup[5.71]+cmd[0.11,0.14] seconds)
[task 2024-09-12T14:00:20.081Z] congratulations :) (24.58 seconds)
[taskcluster 2024-09-12 14:00:20.362Z] === Task Finished ===
[taskcluster 2024-09-12 14:00:20.588Z] Successful task run with exit code: 0 completed in 58.592 seconds
Loading