feat: forward kwargs to request
method
#50
firefoxci-taskcluster / test-unit
succeeded
Sep 18, 2024 in 5m 23s
FirefoxCI (pull_request)
Run unit tests
to validate the latest changes
Details
View task in Taskcluster
View logs in Taskcluster
[taskcluster 2024-09-18 17:47:38.957Z] Task ID: Rai5Q0RXQASXRBYDIUIqwA
[taskcluster 2024-09-18 17:47:38.957Z] Worker ID: 2639933752163609839
[taskcluster 2024-09-18 17:47:38.957Z] Worker Group: us-central1-b
[taskcluster 2024-09-18 17:47:38.957Z] Worker Node Type: projects/887720501152/machineTypes/c2-standard-4
[taskcluster 2024-09-18 17:47:38.957Z] Worker Type: t-linux-large-gcp
[taskcluster 2024-09-18 17:47:38.957Z] Public IP: 34.70.188.178
[taskcluster 2024-09-18 17:47:38.957Z] Hostname: mozilla-t-t-linux-large-gcp-trp8d5q4r9mujpt-lcm5mq
[taskcluster 2024-09-18 17:47:38.958Z] using cache "mozilla-level-1-checkouts-v3-7f8630edfaa3588fb9ab-dxnuHewpSnubGzlfWQQ6Dg" -> /builds/worker/checkouts
[taskcluster 2024-09-18 17:47:39.999Z] Downloading artifact "public/image.tar.zst" from task ID: dxnuHewpSnubGzlfWQQ6Dg.
[taskcluster 2024-09-18 17:47:43.787Z] Downloaded artifact successfully.
[taskcluster 2024-09-18 17:47:43.788Z] Downloaded 433.704 mb
[taskcluster 2024-09-18 17:47:43.789Z] Decompressing downloaded image
[taskcluster 2024-09-18 17:47:46.492Z] Loading docker image from downloaded archive.
[taskcluster 2024-09-18 17:48:08.520Z] Image 'public/image.tar.zst' from task 'dxnuHewpSnubGzlfWQQ6Dg' loaded. Using image ID sha256:eb68c81d503ce853e3f89f93cd2ca98ef7f86d6345b4079e8fd6337435998eac.
[taskcluster 2024-09-18 17:48:08.713Z] === Task Starting ===
[setup 2024-09-18T17:48:09.110Z] run-task started in /
[setup 2024-09-18T17:48:09.110Z] 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-18T17:48:09.110Z] Python version: 3.11.2
[cache 2024-09-18T17:48:09.111Z] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2024-09-18T17:48:09.111Z] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2024-09-18T17:48:09.111Z] volume /builds/worker/checkouts is a cache
[setup 2024-09-18T17:48:09.111Z] running as worker:worker
[vcs 2024-09-18T17:48:09.111Z] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2024-09-18T17:48:09.113Z] executing ['git', 'clone', 'https://github.com/mozilla-releng/simple-github', '/builds/worker/checkouts/vcs']
[vcs 2024-09-18T17:48:09.114Z] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2024-09-18T17:48:09.506Z] executing ['git', 'fetch', '--no-tags', 'https://github.com/ahal/simple-github', 'kwargs']
[vcs 2024-09-18T17:48:09.739Z] From https://github.com/ahal/simple-github
[vcs 2024-09-18T17:48:09.739Z] * branch kwargs -> FETCH_HEAD
[vcs 2024-09-18T17:48:09.740Z] executing ['git', 'checkout', '-f', '-B', 'kwargs', '42e663dfc18712f0c75eb4e58fd3eab8db26ed7d']
[vcs 2024-09-18T17:48:09.746Z] Switched to a new branch 'kwargs'
[vcs 2024-09-18T17:48:09.746Z] cleaning git checkout...
[vcs 2024-09-18T17:48:09.746Z] executing ['git', 'clean', '-nxdff']
[vcs 2024-09-18T17:48:09.748Z] removing []
[vcs 2024-09-18T17:48:09.748Z] successfully cleaned git checkout!
[vcs 2024-09-18T17:48:09.749Z] TinderboxPrint:<a href='https://github.com/ahal/simple-github/commit/42e663dfc18712f0c75eb4e58fd3eab8db26ed7d' title='Built from simple-github commit 42e663dfc18712f0c75eb4e58fd3eab8db26ed7d'>42e663dfc18712f0c75eb4e58fd3eab8db26ed7d</a>
[task 2024-09-18T17:48:09.749Z] executing ['bash', '-cx', 'uv run tox --parallel']
[task 2024-09-18T17:48:09.751Z] + uv run tox --parallel
[task 2024-09-18T17:48:09.906Z] Using Python 3.11.10
[task 2024-09-18T17:48:09.906Z] Creating virtualenv at: .venv
[task 2024-09-18T17:48:10.886Z] warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
[task 2024-09-18T17:48:10.886Z] If the cache and target directories are on different filesystems, hardlinking may not be supported.
[task 2024-09-18T17:48:10.886Z] If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
[task 2024-09-18T17:48:10.993Z] Installed 73 packages in 107ms
[task 2024-09-18T17:48:36.204Z] .pkg: install_requires> python -I -m pip install hatchling
[task 2024-09-18T17:48:36.204Z] .pkg: _optional_hooks> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-18T17:48:36.204Z] .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-18T17:48:36.204Z] .pkg: build_sdist> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-18T17:48:36.204Z] 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-18T17:48:36.204Z] clean: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/1/simple_github-2.0.0.tar.gz
[task 2024-09-18T17:48:36.204Z] clean: commands[0]> uv run coverage erase
[task 2024-09-18T17:48:36.204Z] py38: skipped because could not find python interpreter with spec(s): py38
[task 2024-09-18T17:48:36.204Z] py312: skipped because could not find python interpreter with spec(s): py312
[task 2024-09-18T17:48:36.204Z] py310: skipped because could not find python interpreter with spec(s): py310
[task 2024-09-18T17:48:36.204Z] 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-18T17:48:36.204Z] py311: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/2/simple_github-2.0.0.tar.gz
[task 2024-09-18T17:48:36.204Z] py311: commands[0]> uv run python --version
[task 2024-09-18T17:48:36.204Z] Python 3.11.10
[task 2024-09-18T17:48:36.204Z] py311: commands[1]> uv run coverage run --context=py311 -p -m pytest -vv
[task 2024-09-18T17:48:36.204Z] ============================= test session starts ==============================
[task 2024-09-18T17:48:36.204Z] platform linux -- Python 3.11.10, pytest-7.4.4, pluggy-1.5.0 -- /builds/worker/checkouts/vcs/.venv/bin/python
[task 2024-09-18T17:48:36.204Z] cachedir: .tox/py311/.pytest_cache
[task 2024-09-18T17:48:36.204Z] rootdir: /builds/worker/checkouts/vcs
[task 2024-09-18T17:48:36.204Z] configfile: pyproject.toml
[task 2024-09-18T17:48:36.204Z] plugins: mock-3.14.0, aioresponses-0.2.0, anyio-4.4.0, responses-0.5.1, asyncio-0.23.8
[task 2024-09-18T17:48:36.204Z] asyncio: mode=Mode.STRICT
[task 2024-09-18T17:48:36.204Z] collecting ... collected 18 items
[task 2024-09-18T17:48:36.204Z]
[task 2024-09-18T17:48:36.204Z] test/test_auth.py::test_public_auth_get_token PASSED [ 5%]
[task 2024-09-18T17:48:36.204Z] test/test_auth.py::test_token_auth_get_token PASSED [ 11%]
[task 2024-09-18T17:48:36.205Z] test/test_auth.py::test_app_auth_get_token PASSED [ 16%]
[task 2024-09-18T17:48:36.205Z] test/test_auth.py::test_app_installation_auth_get_token PASSED [ 22%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_async_client_get_session PASSED [ 27%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_async_client_get_session_no_token PASSED [ 33%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_sync_client_get_session PASSED [ 38%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_sync_client_get_session_no_token PASSED [ 44%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_async_client_rest PASSED [ 50%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_sync_client_rest PASSED [ 55%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_async_client_rest_with_text PASSED [ 61%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_sync_client_rest_with_text PASSED [ 66%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_async_client_graphql PASSED [ 72%]
[task 2024-09-18T17:48:36.205Z] test/test_client.py::test_sync_client_graphql PASSED [ 77%]
[task 2024-09-18T17:48:36.205Z] test/test_simple_github.py::test_public_client PASSED [ 83%]
[task 2024-09-18T17:48:36.205Z] test/test_simple_github.py::test_token_client PASSED [ 88%]
[task 2024-09-18T17:48:36.205Z] test/test_simple_github.py::test_app_client PASSED [ 94%]
[task 2024-09-18T17:48:36.205Z] test/test_simple_github.py::test_app_installation_client PASSED [100%]
[task 2024-09-18T17:48:36.205Z]
[task 2024-09-18T17:48:36.205Z] ============================== 18 passed in 0.83s ==============================
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/clean` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/py311` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/py311` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/py39` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/py39` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/report` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] warning: `VIRTUAL_ENV=.tox/report` does not match the project environment path `.venv` and will be ignored
[task 2024-09-18T17:48:41.999Z] 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-18T17:48:41.999Z] py39: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/3/simple_github-2.0.0.tar.gz
[task 2024-09-18T17:48:41.999Z] py39: commands[0]> uv run python --version
[task 2024-09-18T17:48:41.999Z] Python 3.11.10
[task 2024-09-18T17:48:41.999Z] py39: commands[1]> uv run coverage run --context=py39 -p -m pytest -vv
[task 2024-09-18T17:48:41.999Z] ============================= test session starts ==============================
[task 2024-09-18T17:48:41.999Z] platform linux -- Python 3.11.10, pytest-7.4.4, pluggy-1.5.0 -- /builds/worker/checkouts/vcs/.venv/bin/python
[task 2024-09-18T17:48:41.999Z] cachedir: .tox/py39/.pytest_cache
[task 2024-09-18T17:48:41.999Z] rootdir: /builds/worker/checkouts/vcs
[task 2024-09-18T17:48:41.999Z] configfile: pyproject.toml
[task 2024-09-18T17:48:41.999Z] plugins: mock-3.14.0, aioresponses-0.2.0, anyio-4.4.0, responses-0.5.1, asyncio-0.23.8
[task 2024-09-18T17:48:41.999Z] asyncio: mode=Mode.STRICT
[task 2024-09-18T17:48:41.999Z] collecting ... collected 18 items
[task 2024-09-18T17:48:41.999Z]
[task 2024-09-18T17:48:41.999Z] test/test_auth.py::test_public_auth_get_token PASSED [ 5%]
[task 2024-09-18T17:48:41.999Z] test/test_auth.py::test_token_auth_get_token PASSED [ 11%]
[task 2024-09-18T17:48:41.999Z] test/test_auth.py::test_app_auth_get_token PASSED [ 16%]
[task 2024-09-18T17:48:41.999Z] test/test_auth.py::test_app_installation_auth_get_token PASSED [ 22%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_async_client_get_session PASSED [ 27%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_async_client_get_session_no_token PASSED [ 33%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_sync_client_get_session PASSED [ 38%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_sync_client_get_session_no_token PASSED [ 44%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_async_client_rest PASSED [ 50%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_sync_client_rest PASSED [ 55%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_async_client_rest_with_text PASSED [ 61%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_sync_client_rest_with_text PASSED [ 66%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_async_client_graphql PASSED [ 72%]
[task 2024-09-18T17:48:41.999Z] test/test_client.py::test_sync_client_graphql PASSED [ 77%]
[task 2024-09-18T17:48:41.999Z] test/test_simple_github.py::test_public_client PASSED [ 83%]
[task 2024-09-18T17:48:41.999Z] test/test_simple_github.py::test_token_client PASSED [ 88%]
[task 2024-09-18T17:48:41.999Z] test/test_simple_github.py::test_app_client PASSED [ 94%]
[task 2024-09-18T17:48:41.999Z] test/test_simple_github.py::test_app_installation_client PASSED [100%]
[task 2024-09-18T17:48:41.999Z]
[task 2024-09-18T17:48:41.999Z] ============================== 18 passed in 0.49s ==============================
[task 2024-09-18T17:48:41.999Z] .pkg: _exit> python /builds/worker/checkouts/vcs/.venv/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2024-09-18T17:48:42.000Z] 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-18T17:48:42.000Z] report: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/4/simple_github-2.0.0.tar.gz
[task 2024-09-18T17:48:42.000Z] report: commands[0]> uv run coverage combine
[task 2024-09-18T17:48:42.000Z] Combined data file .coverage.335dd275d3be.205.XRrAROrx
[task 2024-09-18T17:48:42.000Z] Combined data file .coverage.335dd275d3be.279.XcpOHzyx
[task 2024-09-18T17:48:42.000Z] report: commands[1]> uv run coverage xml -o /builds/worker/artifacts/coverage.xml
[task 2024-09-18T17:48:42.000Z] Wrote XML report to /builds/worker/artifacts/coverage.xml
[task 2024-09-18T17:48:42.000Z] clean: OK ✔ in 10.25 seconds
[task 2024-09-18T17:48:42.000Z] py38: SKIP ⚠ in 0.55 seconds
[task 2024-09-18T17:48:42.000Z] py312: SKIP ⚠ in 0.55 seconds
[task 2024-09-18T17:48:42.000Z] py310: SKIP ⚠ in 0.55 seconds
[task 2024-09-18T17:48:42.000Z] py311: OK ✔ in 10 seconds
[task 2024-09-18T17:48:42.000Z] py39: OK ✔ in 14.35 seconds
[task 2024-09-18T17:48:42.000Z] clean: OK (10.25=setup[10.02]+cmd[0.23] seconds)
[task 2024-09-18T17:48:42.000Z] py38: SKIP (0.55 seconds)
[task 2024-09-18T17:48:42.000Z] py39: OK (14.35=setup[13.16]+cmd[0.02,1.17] seconds)
[task 2024-09-18T17:48:42.000Z] py310: SKIP (0.55 seconds)
[task 2024-09-18T17:48:42.000Z] py311: OK (10.00=setup[7.75]+cmd[0.02,2.22] seconds)
[task 2024-09-18T17:48:42.000Z] py312: SKIP (0.55 seconds)
[task 2024-09-18T17:48:42.000Z] report: OK (5.79=setup[5.53]+cmd[0.12,0.15] seconds)
[task 2024-09-18T17:48:42.000Z] congratulations :) (30.55 seconds)
[taskcluster 2024-09-18 17:48:42.352Z] === Task Finished ===
[taskcluster 2024-09-18 17:48:42.587Z] Successful task run with exit code: 0 completed in 63.631 seconds
Loading