language
stringclasses 1
value | id
int64 4
196
| repo_owner
stringlengths 4
20
| repo_name
stringlengths 3
20
| head_branch
stringlengths 2
63
| workflow_name
stringlengths 2
32
| workflow_filename
stringlengths 7
28
| workflow_path
stringlengths 25
46
| contributor
stringlengths 4
17
| sha_fail
stringlengths 40
40
| sha_success
stringlengths 40
40
| workflow
stringlengths 536
6.66k
| logs
listlengths 1
6
| diff
stringlengths 382
56.7k
| difficulty
int64 0
3
| changed_files
sequencelengths 1
8
| commit_link
stringlengths 74
106
| commit_date
stringlengths 20
20
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Python | 4 | huggingface | diffusers | ipadapterfaceid | Run code quality checks | pr_quality.yml | .github/workflows/pr_quality.yml | fabiorigano | 2c06ffa4c9d2c37846c60ad75899b4d72f214ff9 | 217d9d073981605acab5200fc841f20c798c1449 | name: Run code quality checks
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check_code_quality:
runs-on: ubuntu-latest
services:
pypi_wayback:
image: ghcr.io/waleko/pypi-wayback
ports:
- 8629:8080
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[quality]
- name: Check quality
run: |
ruff check examples tests src utils scripts
ruff format examples tests src utils scripts --check
check_repository_consistency:
runs-on: ubuntu-latest
services:
pypi_wayback:
image: ghcr.io/waleko/pypi-wayback
ports:
- 8629:8080
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[quality]
- name: Check quality
run: |
python utils/check_copies.py
python utils/check_dummies.py
make deps_table_check_updated
env:
PIP_INDEX_URL: http://localhost:8629/2024-01-10
UV_INDEX_URL: http://localhost:8629/2024-01-10
| [
{
"step_name": "check_code_quality/5_Check quality.txt",
"log": "##[group]Run ruff check examples tests src utils scripts\n\u001b[36;1mruff check examples tests src utils scripts\u001b[0m\n\u001b[36;1mruff format examples tests src utils scripts --check\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/actions-runner/_work/_tool/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/actions-runner/_work/_tool/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/actions-runner/_work/_tool/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/actions-runner/_work/_tool/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/actions-runner/_work/_tool/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/actions-runner/_work/_tool/Python/3.8.18/x64/lib\n##[endgroup]\nexamples/community/ip_adapter_face_id.py:15:1: I001 [*] Import block is un-sorted or un-formatted\nFound 1 error.\n[*] 1 fixable with the `--fix` option.\n##[error]Process completed with exit code 1.\n"
}
] | diff --git a/examples/community/README.md b/examples/community/README.md
index f205f3b70..2fdbdb414 100755
--- a/examples/community/README.md
+++ b/examples/community/README.md
@@ -3307,7 +3307,7 @@ pipeline = DiffusionPipeline.from_pretrained(
torch_dtype=torch.float16,
scheduler=noise_scheduler,
vae=vae,
- custom_pipeline="./forked/diffusers/examples/community/ip_adapter_face_id.py"
+ custom_pipeline="ip_adapter_face_id"
)
pipeline.load_ip_adapter_face_id("h94/IP-Adapter-FaceID", "ip-adapter-faceid_sd15.bin")
pipeline.to("cuda")
diff --git a/examples/community/ip_adapter_face_id.py b/examples/community/ip_adapter_face_id.py
index e3c5a2c84..d9325742c 100644
--- a/examples/community/ip_adapter_face_id.py
+++ b/examples/community/ip_adapter_face_id.py
@@ -14,12 +14,12 @@
import inspect
from typing import Any, Callable, Dict, List, Optional, Union
-from safetensors import safe_open
import torch
import torch.nn as nn
import torch.nn.functional as F
from packaging import version
+from safetensors import safe_open
from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, CLIPVisionModelWithProjection
from diffusers.configuration_utils import FrozenDict
@@ -27,20 +27,20 @@ from diffusers.image_processor import VaeImageProcessor
from diffusers.loaders import FromSingleFileMixin, IPAdapterMixin, LoraLoaderMixin, TextualInversionLoaderMixin
from diffusers.models import AutoencoderKL, UNet2DConditionModel
from diffusers.models.attention_processor import FusedAttnProcessor2_0
-from diffusers.models.lora import adjust_lora_scale_text_encoder, LoRALinearLayer
+from diffusers.models.lora import LoRALinearLayer, adjust_lora_scale_text_encoder
+from diffusers.pipelines.pipeline_utils import DiffusionPipeline
+from diffusers.pipelines.stable_diffusion.pipeline_output import StableDiffusionPipelineOutput
+from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
from diffusers.schedulers import KarrasDiffusionSchedulers
from diffusers.utils import (
- _get_model_file,
USE_PEFT_BACKEND,
+ _get_model_file,
deprecate,
logging,
scale_lora_layers,
unscale_lora_layers,
)
from diffusers.utils.torch_utils import randn_tensor
-from diffusers.pipelines.pipeline_utils import DiffusionPipeline
-from diffusers.pipelines.stable_diffusion.pipeline_output import StableDiffusionPipelineOutput
-from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
@@ -555,7 +555,7 @@ class IPAdapterFaceIDStableDiffusionPipeline(
revision=revision,
subfolder=subfolder,
user_agent=user_agent,
- )
+ )
if weight_name.endswith(".safetensors"):
state_dict = {"image_proj": {}, "ip_adapter": {}}
with safe_open(model_file, framework="pt", device="cpu") as f:
@@ -1438,7 +1438,7 @@ class IPAdapterFaceIDStableDiffusionPipeline(
extra_step_kwargs = self.prepare_extra_step_kwargs(generator, eta)
# 6.1 Add image embeds for IP-Adapter
- added_cond_kwargs ={"image_embeds": image_embeds} if image_embeds is not None else None
+ added_cond_kwargs = {"image_embeds": image_embeds} if image_embeds is not None else None
# 6.2 Optionally get Guidance Scale Embedding
timestep_cond = None
| 0 | [
"examples/community/README.md",
"examples/community/ip_adapter_face_id.py"
] | https://github.com/huggingface/diffusers/tree/2c06ffa4c9d2c37846c60ad75899b4d72f214ff9 | 2024-01-10T20:03:01Z |
Python | 5 | huggingface | diffusers | ipadapterfaceid | Run code quality checks | pr_quality.yml | .github/workflows/pr_quality.yml | fabiorigano | db6550a228941b538f340fb5b65ed16c43a21b88 | 6c29e66eb023f2805e4a4fd697815e9a0d2c6468 | name: Run code quality checks
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check_code_quality:
runs-on: ubuntu-latest
services:
pypi_wayback:
image: ghcr.io/waleko/pypi-wayback
ports:
- 8629:8080
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[quality]
- name: Check quality
run: |
ruff check examples tests src utils scripts
ruff format examples tests src utils scripts --check
check_repository_consistency:
runs-on: ubuntu-latest
services:
pypi_wayback:
image: ghcr.io/waleko/pypi-wayback
ports:
- 8629:8080
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[quality]
- name: Check quality
run: |
python utils/check_copies.py
python utils/check_dummies.py
make deps_table_check_updated
env:
PIP_INDEX_URL: http://localhost:8629/2023-12-26
UV_INDEX_URL: http://localhost:8629/2023-12-26
| [
{
"step_name": "check_code_quality/5_Check quality.txt",
"log": "##[group]Run ruff check examples tests src utils scripts\n\u001b[36;1mruff check examples tests src utils scripts\u001b[0m\n\u001b[36;1mruff format examples tests src utils scripts --check\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\nsrc/diffusers/loaders/ip_adapter.py:15:26: F401 [*] `typing.Optional` imported but unused\nFound 1 error.\n[*] 1 fixable with the `--fix` option.\n##[error]Process completed with exit code 1.\n"
}
] | diff --git a/src/diffusers/loaders/ip_adapter.py b/src/diffusers/loaders/ip_adapter.py
index df9caa946..0c310019f 100644
--- a/src/diffusers/loaders/ip_adapter.py
+++ b/src/diffusers/loaders/ip_adapter.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
-from typing import Dict, Optional, Union
+from typing import Dict, Union
import torch
from huggingface_hub.utils import validate_hf_hub_args
| 0 | [
"src/diffusers/loaders/ip_adapter.py"
] | https://github.com/huggingface/diffusers/tree/db6550a228941b538f340fb5b65ed16c43a21b88 | 2023-12-26T09:43:43Z |
Python | 21 | mindsdb | mindsdb | staging | MindsDB Code Checks | code_checks.yml | .github/workflows/code_checks.yml | mindsdb | 102f918deb2532bb7b825f00258f2c1414cf94da | 1cf75d7a1071fba82d4190725e984e8d55db48fb | name: MindsDB Code Checks
on:
pull_request:
branches: [stable, staging]
jobs:
check_requirements:
runs-on: ubuntu-latest
services:
pypi_wayback:
image: ghcr.io/waleko/pypi-wayback
ports:
- 8629:8080
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.9
- name: Check main requirements
shell: bash
run: |
pip install -r requirements/requirements-dev.txt
python tests/scripts/check_requirements.py
- name: Check requirements files are installable
shell: bash
run: |
pip install --dry-run --ignore-installed . # Install only the default handlers. We can expand this to all handlers later with: .[all_handlers_extras]
env:
PIP_INDEX_URL: http://localhost:8629/2023-12-29
UV_INDEX_URL: http://localhost:8629/2023-12-29
| [
{
"step_name": "check_requirements/4_Check main requirements.txt",
"log": "##[group]Run pip install -r requirements/requirements-dev.txt\n\u001b[36;1mpip install -r requirements/requirements-dev.txt\u001b[0m\n\u001b[36;1m\u001b[0m\n\u001b[36;1mpython tests/scripts/check_requirements.py\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\nCollecting black==23.3.0 (from -r requirements/requirements-dev.txt (line 1))\n Downloading black-23.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 1.7/1.7 MB 18.4 MB/s eta 0:00:00\nCollecting flake8==5.0.4 (from -r requirements/requirements-dev.txt (line 2))\n Downloading flake8-5.0.4-py2.py3-none-any.whl (61 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 61.9/61.9 kB 19.0 MB/s eta 0:00:00\nCollecting isort==5.10.1 (from -r requirements/requirements-dev.txt (line 3))\n Downloading isort-5.10.1-py3-none-any.whl (103 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 103.4/103.4 kB 26.5 MB/s eta 0:00:00\nCollecting pre-commit>=2.16.0 (from -r requirements/requirements-dev.txt (line 4))\n Downloading pre_commit-3.6.0-py2.py3-none-any.whl.metadata (1.3 kB)\nCollecting watchfiles==0.19.0 (from -r requirements/requirements-dev.txt (line 5))\n Downloading watchfiles-0.19.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 1.3/1.3 MB 31.1 MB/s eta 0:00:00\nRequirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (from -r requirements/requirements-dev.txt (line 6)) (58.1.0)\nCollecting wheel (from -r requirements/requirements-dev.txt (line 7))\n Downloading wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)\nCollecting deptry==0.12.0 (from -r requirements/requirements-dev.txt (line 8))\n Downloading deptry-0.12.0-py3-none-any.whl.metadata (4.6 kB)\nCollecting twine (from -r requirements/requirements-dev.txt (line 9))\n Downloading twine-4.0.2-py3-none-any.whl (36 kB)\nCollecting click>=8.0.0 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)\nCollecting mypy-extensions>=0.4.3 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)\nCollecting packaging>=22.0 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)\nCollecting pathspec>=0.9.0 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)\nCollecting platformdirs>=2 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)\nCollecting tomli>=1.1.0 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading tomli-2.0.1-py3-none-any.whl (12 kB)\nCollecting typing-extensions>=3.10.0.0 (from black==23.3.0->-r requirements/requirements-dev.txt (line 1))\n Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)\nCollecting mccabe<0.8.0,>=0.7.0 (from flake8==5.0.4->-r requirements/requirements-dev.txt (line 2))\n Downloading mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB)\nCollecting pycodestyle<2.10.0,>=2.9.0 (from flake8==5.0.4->-r requirements/requirements-dev.txt (line 2))\n Downloading pycodestyle-2.9.1-py2.py3-none-any.whl (41 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 41.5/41.5 kB 11.9 MB/s eta 0:00:00\nCollecting pyflakes<2.6.0,>=2.5.0 (from flake8==5.0.4->-r requirements/requirements-dev.txt (line 2))\n Downloading pyflakes-2.5.0-py2.py3-none-any.whl (66 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 66.1/66.1 kB 20.4 MB/s eta 0:00:00\nCollecting anyio>=3.0.0 (from watchfiles==0.19.0->-r requirements/requirements-dev.txt (line 5))\n Downloading anyio-4.2.0-py3-none-any.whl.metadata (4.6 kB)\nCollecting chardet>=4.0.0 (from deptry==0.12.0->-r requirements/requirements-dev.txt (line 8))\n Downloading chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)\nCollecting cfgv>=2.0.0 (from pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading cfgv-3.4.0-py2.py3-none-any.whl.metadata (8.5 kB)\nCollecting identify>=1.0.0 (from pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading identify-2.5.33-py2.py3-none-any.whl.metadata (4.4 kB)\nCollecting nodeenv>=0.11.1 (from pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading nodeenv-1.8.0-py2.py3-none-any.whl.metadata (21 kB)\nCollecting pyyaml>=5.1 (from pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)\nCollecting virtualenv>=20.10.0 (from pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading virtualenv-20.25.0-py3-none-any.whl.metadata (4.5 kB)\nCollecting pkginfo>=1.8.1 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading pkginfo-1.9.6-py3-none-any.whl (30 kB)\nCollecting readme-renderer>=35.0 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading readme_renderer-42.0-py3-none-any.whl.metadata (2.8 kB)\nCollecting requests>=2.20 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)\nCollecting requests-toolbelt!=0.9.0,>=0.8.0 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 54.5/54.5 kB 17.0 MB/s eta 0:00:00\nCollecting urllib3>=1.26.0 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)\nCollecting importlib-metadata>=3.6 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading importlib_metadata-7.0.1-py3-none-any.whl.metadata (4.9 kB)\nCollecting keyring>=15.1 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading keyring-24.3.0-py3-none-any.whl.metadata (20 kB)\nCollecting rfc3986>=1.4.0 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading rfc3986-2.0.0-py2.py3-none-any.whl (31 kB)\nCollecting rich>=12.0.0 (from twine->-r requirements/requirements-dev.txt (line 9))\n Downloading rich-13.7.0-py3-none-any.whl.metadata (18 kB)\nCollecting idna>=2.8 (from anyio>=3.0.0->watchfiles==0.19.0->-r requirements/requirements-dev.txt (line 5))\n Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)\nCollecting sniffio>=1.1 (from anyio>=3.0.0->watchfiles==0.19.0->-r requirements/requirements-dev.txt (line 5))\n Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)\nCollecting exceptiongroup>=1.0.2 (from anyio>=3.0.0->watchfiles==0.19.0->-r requirements/requirements-dev.txt (line 5))\n Downloading exceptiongroup-1.2.0-py3-none-any.whl.metadata (6.6 kB)\nCollecting zipp>=0.5 (from importlib-metadata>=3.6->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading zipp-3.17.0-py3-none-any.whl.metadata (3.7 kB)\nCollecting jaraco.classes (from keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading jaraco.classes-3.3.0-py3-none-any.whl.metadata (2.9 kB)\nCollecting SecretStorage>=3.2 (from keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading SecretStorage-3.3.3-py3-none-any.whl (15 kB)\nCollecting jeepney>=0.4.2 (from keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading jeepney-0.8.0-py3-none-any.whl (48 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 48.4/48.4 kB 17.1 MB/s eta 0:00:00\nCollecting nh3>=0.2.14 (from readme-renderer>=35.0->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading nh3-0.2.15-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.7 kB)\nCollecting docutils>=0.13.1 (from readme-renderer>=35.0->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading docutils-0.20.1-py3-none-any.whl.metadata (2.8 kB)\nCollecting Pygments>=2.5.1 (from readme-renderer>=35.0->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading pygments-2.17.2-py3-none-any.whl.metadata (2.6 kB)\nCollecting charset-normalizer<4,>=2 (from requests>=2.20->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)\nCollecting certifi>=2017.4.17 (from requests>=2.20->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)\nCollecting markdown-it-py>=2.2.0 (from rich>=12.0.0->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)\nCollecting distlib<1,>=0.3.7 (from virtualenv>=20.10.0->pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)\nCollecting filelock<4,>=3.12.2 (from virtualenv>=20.10.0->pre-commit>=2.16.0->-r requirements/requirements-dev.txt (line 4))\n Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)\nCollecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=12.0.0->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\nCollecting cryptography>=2.0 (from SecretStorage>=3.2->keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl.metadata (5.2 kB)\nCollecting more-itertools (from jaraco.classes->keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading more_itertools-10.1.0-py3-none-any.whl.metadata (33 kB)\nCollecting cffi>=1.12 (from cryptography>=2.0->SecretStorage>=3.2->keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)\nCollecting pycparser (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring>=15.1->twine->-r requirements/requirements-dev.txt (line 9))\n Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 118.7/118.7 kB 35.3 MB/s eta 0:00:00\nDownloading deptry-0.12.0-py3-none-any.whl (41 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 41.7/41.7 kB 13.1 MB/s eta 0:00:00\nDownloading pre_commit-3.6.0-py2.py3-none-any.whl (204 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 204.0/204.0 kB 42.9 MB/s eta 0:00:00\nDownloading wheel-0.42.0-py3-none-any.whl (65 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 65.4/65.4 kB 22.9 MB/s eta 0:00:00\nDownloading anyio-4.2.0-py3-none-any.whl (85 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 85.5/85.5 kB 29.1 MB/s eta 0:00:00\nDownloading cfgv-3.4.0-py2.py3-none-any.whl (7.2 kB)\nDownloading chardet-5.2.0-py3-none-any.whl (199 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 199.4/199.4 kB 43.8 MB/s eta 0:00:00\nDownloading click-8.1.7-py3-none-any.whl (97 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 97.9/97.9 kB 33.7 MB/s eta 0:00:00\nDownloading identify-2.5.33-py2.py3-none-any.whl (98 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 98.9/98.9 kB 31.2 MB/s eta 0:00:00\nDownloading importlib_metadata-7.0.1-py3-none-any.whl (23 kB)\nDownloading keyring-24.3.0-py3-none-any.whl (38 kB)\nDownloading nodeenv-1.8.0-py2.py3-none-any.whl (22 kB)\nDownloading packaging-23.2-py3-none-any.whl (53 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 53.0/53.0 kB 18.2 MB/s eta 0:00:00\nDownloading pathspec-0.12.1-py3-none-any.whl (31 kB)\nDownloading platformdirs-4.1.0-py3-none-any.whl (17 kB)\nDownloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 738.9/738.9 kB 37.6 MB/s eta 0:00:00\nDownloading readme_renderer-42.0-py3-none-any.whl (13 kB)\nDownloading requests-2.31.0-py3-none-any.whl (62 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 62.6/62.6 kB 21.9 MB/s eta 0:00:00\nDownloading rich-13.7.0-py3-none-any.whl (240 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 240.6/240.6 kB 51.0 MB/s eta 0:00:00\nDownloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)\nDownloading urllib3-2.1.0-py3-none-any.whl (104 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 104.6/104.6 kB 33.0 MB/s eta 0:00:00\nDownloading virtualenv-20.25.0-py3-none-any.whl (3.8 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 3.8/3.8 MB 53.1 MB/s eta 0:00:00\nDownloading certifi-2023.11.17-py3-none-any.whl (162 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 162.5/162.5 kB 43.3 MB/s eta 0:00:00\nDownloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 142.3/142.3 kB 40.8 MB/s eta 0:00:00\nDownloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 468.9/468.9 kB 68.6 MB/s eta 0:00:00\nDownloading docutils-0.20.1-py3-none-any.whl (572 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 572.7/572.7 kB 67.0 MB/s eta 0:00:00\nDownloading exceptiongroup-1.2.0-py3-none-any.whl (16 kB)\nDownloading filelock-3.13.1-py3-none-any.whl (11 kB)\nDownloading idna-3.6-py3-none-any.whl (61 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 61.6/61.6 kB 20.6 MB/s eta 0:00:00\nDownloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 87.5/87.5 kB 28.4 MB/s eta 0:00:00\nDownloading nh3-0.2.15-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 1.7/1.7 MB 72.8 MB/s eta 0:00:00\nDownloading pygments-2.17.2-py3-none-any.whl (1.2 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 1.2/1.2 MB 81.6 MB/s eta 0:00:00\nDownloading zipp-3.17.0-py3-none-any.whl (7.4 kB)\nDownloading jaraco.classes-3.3.0-py3-none-any.whl (5.9 kB)\nDownloading cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 4.4/4.4 MB 94.7 MB/s eta 0:00:00\nDownloading more_itertools-10.1.0-py3-none-any.whl (55 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 55.8/55.8 kB 17.6 MB/s eta 0:00:00\nDownloading cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 443.4/443.4 kB 72.9 MB/s eta 0:00:00\nInstalling collected packages: nh3, distlib, zipp, wheel, urllib3, typing-extensions, tomli, sniffio, rfc3986, pyyaml, Pygments, pyflakes, pycparser, pycodestyle, platformdirs, pkginfo, pathspec, packaging, nodeenv, mypy-extensions, more-itertools, mdurl, mccabe, jeepney, isort, idna, identify, filelock, exceptiongroup, docutils, click, charset-normalizer, chardet, cfgv, certifi, virtualenv, requests, readme-renderer, markdown-it-py, jaraco.classes, importlib-metadata, flake8, deptry, cffi, black, anyio, watchfiles, rich, requests-toolbelt, pre-commit, cryptography, SecretStorage, keyring, twine\nSuccessfully installed Pygments-2.17.2 SecretStorage-3.3.3 anyio-4.2.0 black-23.3.0 certifi-2023.11.17 cffi-1.16.0 cfgv-3.4.0 chardet-5.2.0 charset-normalizer-3.3.2 click-8.1.7 cryptography-41.0.7 deptry-0.12.0 distlib-0.3.8 docutils-0.20.1 exceptiongroup-1.2.0 filelock-3.13.1 flake8-5.0.4 identify-2.5.33 idna-3.6 importlib-metadata-7.0.1 isort-5.10.1 jaraco.classes-3.3.0 jeepney-0.8.0 keyring-24.3.0 markdown-it-py-3.0.0 mccabe-0.7.0 mdurl-0.1.2 more-itertools-10.1.0 mypy-extensions-1.0.0 nh3-0.2.15 nodeenv-1.8.0 packaging-23.2 pathspec-0.12.1 pkginfo-1.9.6 platformdirs-4.1.0 pre-commit-3.6.0 pycodestyle-2.9.1 pycparser-2.21 pyflakes-2.5.0 pyyaml-6.0.1 readme-renderer-42.0 requests-2.31.0 requests-toolbelt-1.0.0 rfc3986-2.0.0 rich-13.7.0 sniffio-1.3.0 tomli-2.0.1 twine-4.0.2 typing-extensions-4.9.0 urllib3-2.1.0 virtualenv-20.25.0 watchfiles-0.19.0 wheel-0.42.0 zipp-3.17.0\n\n[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n[notice] To update, run: pip install --upgrade pip\n--- Checking requirements files for duplicates ---\n\n--- Checking that requirements match imports ---\n- requirements/requirements.txt\n None:None: DEP002 'type_infer' defined as a dependency but not used in the codebase\n\n\n--- Checking handlers that require other handlers ---\n##[error]Process completed with exit code 1.\n"
}
] | diff --git a/mindsdb/__main__.py b/mindsdb/__main__.py
index cac3482883..6cc92a7899 100644
--- a/mindsdb/__main__.py
+++ b/mindsdb/__main__.py
@@ -35,6 +35,7 @@ from mindsdb.utilities.fs import create_dirs_recursive, clean_process_marks, cle
from mindsdb.utilities.telemetry import telemetry_file_exists, disable_telemetry
from mindsdb.utilities.context import context as ctx
from mindsdb.utilities.auth import register_oauth_client, get_aws_meta_data
+import type_infer # noqa
try:
import torch.multiprocessing as mp
| 1 | [
"mindsdb/__main__.py"
] | https://github.com/mindsdb/mindsdb/tree/102f918deb2532bb7b825f00258f2c1414cf94da | 2023-12-29T13:03:05Z |
Python | 22 | sanic-org | sanic | py312 | Tests | tests.yml | .github/workflows/tests.yml | iAndriy | 2e41e783672597e2e0c7b2842b5934d879374028 | c3fa036f4b8a8b7bccc0c967fb94de809ef0e320 | name: Tests
on:
push:
branches:
- main
- current-release
- "*LTS"
tags:
- "!*"
pull_request:
branches:
- main
- current-release
- "*LTS"
types: [opened, synchronize, reopened, ready_for_review]
jobs:
run_tests:
name: "${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }}"
if: github.event.pull_request.draft == false
runs-on: ${{ matrix.config.platform || 'ubuntu-latest' }}
services:
pypi_wayback:
image: ghcr.io/waleko/pypi-wayback
ports:
- 8629:8080
strategy:
fail-fast: true
matrix:
config:
- { python-version: "3.8", tox-env: security }
- { python-version: "3.9", tox-env: security }
- { python-version: "3.10", tox-env: security }
- { python-version: "3.11", tox-env: security }
- { python-version: "3.10", tox-env: lint }
# - { python-version: "3.10", tox-env: docs }
- { python-version: "3.8", tox-env: type-checking }
- { python-version: "3.9", tox-env: type-checking }
- { python-version: "3.10", tox-env: type-checking }
- { python-version: "3.11", tox-env: type-checking }
- { python-version: "3.8", tox-env: py38, max-attempts: 3 }
- { python-version: "3.8", tox-env: py38-no-ext, max-attempts: 3 }
- { python-version: "3.9", tox-env: py39, max-attempts: 3 }
- { python-version: "3.9", tox-env: py39-no-ext, max-attempts: 3 }
- { python-version: "3.10", tox-env: py310, max-attempts: 3 }
- { python-version: "3.10", tox-env: py310-no-ext, max-attempts: 3 }
- { python-version: "3.11", tox-env: py311, max-attempts: 3 }
- { python-version: "3.12", tox-env: py312, max-attempts: 3 }
- { python-version: "3.11", tox-env: py311-no-ext, max-attempts: 3 }
- { python-version: "3.8", tox-env: py38-no-ext, platform: windows-latest, ignore-errors: true }
- { python-version: "3.9", tox-env: py39-no-ext, platform: windows-latest, ignore-errors: true }
- { python-version: "3.10", tox-env: py310-no-ext, platform: windows-latest, ignore-errors: true }
- { python-version: "3.11", tox-env: py310-no-ext, platform: windows-latest, ignore-errors: true }
steps:
- name: Run tests
uses: sanic-org/simple-tox-action@v1
with:
python-version: ${{ matrix.config.python-version }}
tox-env: ${{ matrix.config.tox-env }}
max-attempts: ${{ matrix.config.max-attempts || 1 }}
ignore-errors: ${{ matrix.config.ignore-errors || false }}
env:
PIP_INDEX_URL: http://localhost:8629/2023-12-17
UV_INDEX_URL: http://localhost:8629/2023-12-17
| [
{
"step_name": "Linux Python 3.12 tox -e py312/2_Run tests.txt",
"log": "##[group]Run sanic-org/simple-tox-action@v1\nwith:\n python-version: 3.12\n tox-env: py312\n max-attempts: 3\n ignore-errors: false\n timeout-minutes: 10\n warning-on-retry: false\n##[endgroup]\n##[group]Run actions/checkout@v3\nwith:\n repository: sanic-org/sanic\n token: ***\n ssh-strict: true\n persist-credentials: true\n clean: true\n sparse-checkout-cone-mode: true\n fetch-depth: 1\n fetch-tags: false\n lfs: false\n submodules: false\n set-safe-directory: true\n##[endgroup]\nSyncing repository: sanic-org/sanic\n##[group]Getting Git version info\nWorking directory is '/home/runner/work/sanic/sanic'\n[command]/usr/bin/git version\ngit version 2.43.0\n##[endgroup]\nTemporarily overriding HOME='/home/runner/work/_temp/4ed65391-2ae4-459e-9e2a-279a317c6c7d' before making global git config changes\nAdding repository directory to the temporary git global config as a safe directory\n[command]/usr/bin/git config --global --add safe.directory /home/runner/work/sanic/sanic\nDeleting the contents of '/home/runner/work/sanic/sanic'\n##[group]Initializing the repository\n[command]/usr/bin/git init /home/runner/work/sanic/sanic\nhint: Using 'master' as the name for the initial branch. This default branch name\nhint: is subject to change. To configure the initial branch name to use in all\nhint: of your new repositories, which will suppress this warning, call:\nhint: \nhint: \tgit config --global init.defaultBranch <name>\nhint: \nhint: Names commonly chosen instead of 'master' are 'main', 'trunk' and\nhint: 'development'. The just-created branch can be renamed via this command:\nhint: \nhint: \tgit branch -m <name>\nInitialized empty Git repository in /home/runner/work/sanic/sanic/.git/\n[command]/usr/bin/git remote add origin https://github.com/sanic-org/sanic\n##[endgroup]\n##[group]Disabling automatic garbage collection\n[command]/usr/bin/git config --local gc.auto 0\n##[endgroup]\n##[group]Setting up auth\n[command]/usr/bin/git config --local --name-only --get-regexp core\\.sshCommand\n[command]/usr/bin/git submodule foreach --recursive sh -c \"git config --local --name-only --get-regexp 'core\\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"\n[command]/usr/bin/git config --local --name-only --get-regexp http\\.https\\:\\/\\/github\\.com\\/\\.extraheader\n[command]/usr/bin/git submodule foreach --recursive sh -c \"git config --local --name-only --get-regexp 'http\\.https\\:\\/\\/github\\.com\\/\\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"\n[command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***\n##[endgroup]\n##[group]Fetching the repository\n[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c70813b35243c936909c498015f2d60e376efb7f:refs/remotes/pull/2870/merge\nremote: Enumerating objects: 713, done. \nremote: Counting objects: 0% (1/713) \nremote: Counting objects: 1% (8/713) \nremote: Counting objects: 2% (15/713) \nremote: Counting objects: 3% (22/713) \nremote: Counting objects: 4% (29/713) \nremote: Counting objects: 5% (36/713) \nremote: Counting objects: 6% (43/713) \nremote: Counting objects: 7% (50/713) \nremote: Counting objects: 8% (58/713) \nremote: Counting objects: 9% (65/713) \nremote: Counting objects: 10% (72/713) \nremote: Counting objects: 11% (79/713) \nremote: Counting objects: 12% (86/713) \nremote: Counting objects: 13% (93/713) \nremote: Counting objects: 14% (100/713) \nremote: Counting objects: 15% (107/713) \nremote: Counting objects: 16% (115/713) \nremote: Counting objects: 17% (122/713) \nremote: Counting objects: 18% (129/713) \nremote: Counting objects: 19% (136/713) \nremote: Counting objects: 20% (143/713) \nremote: Counting objects: 21% (150/713) \nremote: Counting objects: 22% (157/713) \nremote: Counting objects: 23% (164/713) \nremote: Counting objects: 24% (172/713) \nremote: Counting objects: 25% (179/713) \nremote: Counting objects: 26% (186/713) \nremote: Counting objects: 27% (193/713) \nremote: Counting objects: 28% (200/713) \nremote: Counting objects: 29% (207/713) \nremote: Counting objects: 30% (214/713) \nremote: Counting objects: 31% (222/713) \nremote: Counting objects: 32% (229/713) \nremote: Counting objects: 33% (236/713) \nremote: Counting objects: 34% (243/713) \nremote: Counting objects: 35% (250/713) \nremote: Counting objects: 36% (257/713) \nremote: Counting objects: 37% (264/713) \nremote: Counting objects: 38% (271/713) \nremote: Counting objects: 39% (279/713) \nremote: Counting objects: 40% (286/713) \nremote: Counting objects: 41% (293/713) \nremote: Counting objects: 42% (300/713) \nremote: Counting objects: 43% (307/713) \nremote: Counting objects: 44% (314/713) \nremote: Counting objects: 45% (321/713) \nremote: Counting objects: 46% (328/713) \nremote: Counting objects: 47% (336/713) \nremote: Counting objects: 48% (343/713) \nremote: Counting objects: 49% (350/713) \nremote: Counting objects: 50% (357/713) \nremote: Counting objects: 51% (364/713) \nremote: Counting objects: 52% (371/713) \nremote: Counting objects: 53% (378/713) \nremote: Counting objects: 54% (386/713) \nremote: Counting objects: 55% (393/713) \nremote: Counting objects: 56% (400/713) \nremote: Counting objects: 57% (407/713) \nremote: Counting objects: 58% (414/713) \nremote: Counting objects: 59% (421/713) \nremote: Counting objects: 60% (428/713) \nremote: Counting objects: 61% (435/713) \nremote: Counting objects: 62% (443/713) \nremote: Counting objects: 63% (450/713) \nremote: Counting objects: 64% (457/713) \nremote: Counting objects: 65% (464/713) \nremote: Counting objects: 66% (471/713) \nremote: Counting objects: 67% (478/713) \nremote: Counting objects: 68% (485/713) \nremote: Counting objects: 69% (492/713) \nremote: Counting objects: 70% (500/713) \nremote: Counting objects: 71% (507/713) \nremote: Counting objects: 72% (514/713) \nremote: Counting objects: 73% (521/713) \nremote: Counting objects: 74% (528/713) \nremote: Counting objects: 75% (535/713) \nremote: Counting objects: 76% (542/713) \nremote: Counting objects: 77% (550/713) \nremote: Counting objects: 78% (557/713) \nremote: Counting objects: 79% (564/713) \nremote: Counting objects: 80% (571/713) \nremote: Counting objects: 81% (578/713) \nremote: Counting objects: 82% (585/713) \nremote: Counting objects: 83% (592/713) \nremote: Counting objects: 84% (599/713) \nremote: Counting objects: 85% (607/713) \nremote: Counting objects: 86% (614/713) \nremote: Counting objects: 87% (621/713) \nremote: Counting objects: 88% (628/713) \nremote: Counting objects: 89% (635/713) \nremote: Counting objects: 90% (642/713) \nremote: Counting objects: 91% (649/713) \nremote: Counting objects: 92% (656/713) \nremote: Counting objects: 93% (664/713) \nremote: Counting objects: 94% (671/713) \nremote: Counting objects: 95% (678/713) \nremote: Counting objects: 96% (685/713) \nremote: Counting objects: 97% (692/713) \nremote: Counting objects: 98% (699/713) \nremote: Counting objects: 99% (706/713) \nremote: Counting objects: 100% (713/713) \nremote: Counting objects: 100% (713/713), done. \nremote: Compressing objects: 0% (1/658) \nremote: Compressing objects: 1% (7/658) \nremote: Compressing objects: 2% (14/658) \nremote: Compressing objects: 3% (20/658) \nremote: Compressing objects: 4% (27/658) \nremote: Compressing objects: 5% (33/658) \nremote: Compressing objects: 6% (40/658) \nremote: Compressing objects: 7% (47/658) \nremote: Compressing objects: 8% (53/658) \nremote: Compressing objects: 9% (60/658) \nremote: Compressing objects: 10% (66/658) \nremote: Compressing objects: 11% (73/658) \nremote: Compressing objects: 12% (79/658) \nremote: Compressing objects: 13% (86/658) \nremote: Compressing objects: 14% (93/658) \nremote: Compressing objects: 15% (99/658) \nremote: Compressing objects: 16% (106/658) \nremote: Compressing objects: 17% (112/658) \nremote: Compressing objects: 18% (119/658) \nremote: Compressing objects: 19% (126/658) \nremote: Compressing objects: 20% (132/658) \nremote: Compressing objects: 21% (139/658) \nremote: Compressing objects: 22% (145/658) \nremote: Compressing objects: 23% (152/658) \nremote: Compressing objects: 24% (158/658) \nremote: Compressing objects: 25% (165/658) \nremote: Compressing objects: 26% (172/658) \nremote: Compressing objects: 27% (178/658) \nremote: Compressing objects: 28% (185/658) \nremote: Compressing objects: 29% (191/658) \nremote: Compressing objects: 30% (198/658) \nremote: Compressing objects: 31% (204/658) \nremote: Compressing objects: 32% (211/658) \nremote: Compressing objects: 33% (218/658) \nremote: Compressing objects: 34% (224/658) \nremote: Compressing objects: 35% (231/658) \nremote: Compressing objects: 36% (237/658) \nremote: Compressing objects: 37% (244/658) \nremote: Compressing objects: 38% (251/658) \nremote: Compressing objects: 39% (257/658) \nremote: Compressing objects: 40% (264/658) \nremote: Compressing objects: 41% (270/658) \nremote: Compressing objects: 42% (277/658) \nremote: Compressing objects: 43% (283/658) \nremote: Compressing objects: 44% (290/658) \nremote: Compressing objects: 45% (297/658) \nremote: Compressing objects: 46% (303/658) \nremote: Compressing objects: 47% (310/658) \nremote: Compressing objects: 48% (316/658) \nremote: Compressing objects: 49% (323/658) \nremote: Compressing objects: 50% (329/658) \nremote: Compressing objects: 51% (336/658) \nremote: Compressing objects: 52% (343/658) \nremote: Compressing objects: 53% (349/658) \nremote: Compressing objects: 54% (356/658) \nremote: Compressing objects: 55% (362/658) \nremote: Compressing objects: 56% (369/658) \nremote: Compressing objects: 57% (376/658) \nremote: Compressing objects: 58% (382/658) \nremote: Compressing objects: 59% (389/658) \nremote: Compressing objects: 60% (395/658) \nremote: Compressing objects: 61% (402/658) \nremote: Compressing objects: 62% (408/658) \nremote: Compressing objects: 63% (415/658) \nremote: Compressing objects: 64% (422/658) \nremote: Compressing objects: 65% (428/658) \nremote: Compressing objects: 66% (435/658) \nremote: Compressing objects: 67% (441/658) \nremote: Compressing objects: 68% (448/658) \nremote: Compressing objects: 69% (455/658) \nremote: Compressing objects: 70% (461/658) \nremote: Compressing objects: 71% (468/658) \nremote: Compressing objects: 72% (474/658) \nremote: Compressing objects: 73% (481/658) \nremote: Compressing objects: 74% (487/658) \nremote: Compressing objects: 75% (494/658) \nremote: Compressing objects: 76% (501/658) \nremote: Compressing objects: 77% (507/658) \nremote: Compressing objects: 78% (514/658) \nremote: Compressing objects: 79% (520/658) \nremote: Compressing objects: 80% (527/658) \nremote: Compressing objects: 81% (533/658) \nremote: Compressing objects: 82% (540/658) \nremote: Compressing objects: 83% (547/658) \nremote: Compressing objects: 84% (553/658) \nremote: Compressing objects: 85% (560/658) \nremote: Compressing objects: 86% (566/658) \nremote: Compressing objects: 87% (573/658) \nremote: Compressing objects: 88% (580/658) \nremote: Compressing objects: 89% (586/658) \nremote: Compressing objects: 90% (593/658) \nremote: Compressing objects: 91% (599/658) \nremote: Compressing objects: 92% (606/658) \nremote: Compressing objects: 93% (612/658) \nremote: Compressing objects: 94% (619/658) \nremote: Compressing objects: 95% (626/658) \nremote: Compressing objects: 96% (632/658) \nremote: Compressing objects: 97% (639/658) \nremote: Compressing objects: 98% (645/658) \nremote: Compressing objects: 99% (652/658) \nremote: Compressing objects: 100% (658/658) \nremote: Compressing objects: 100% (658/658), done. \nReceiving objects: 0% (1/713)\nReceiving objects: 1% (8/713)\nReceiving objects: 2% (15/713)\nReceiving objects: 3% (22/713)\nReceiving objects: 4% (29/713)\nReceiving objects: 5% (36/713)\nReceiving objects: 6% (43/713)\nReceiving objects: 7% (50/713)\nReceiving objects: 8% (58/713)\nReceiving objects: 9% (65/713)\nReceiving objects: 10% (72/713)\nReceiving objects: 11% (79/713)\nReceiving objects: 12% (86/713)\nReceiving objects: 13% (93/713)\nReceiving objects: 14% (100/713)\nReceiving objects: 15% (107/713)\nReceiving objects: 16% (115/713)\nReceiving objects: 17% (122/713)\nReceiving objects: 18% (129/713)\nReceiving objects: 19% (136/713)\nReceiving objects: 20% (143/713)\nReceiving objects: 21% (150/713)\nReceiving objects: 22% (157/713)\nReceiving objects: 23% (164/713)\nReceiving objects: 24% (172/713)\nReceiving objects: 25% (179/713)\nReceiving objects: 26% (186/713)\nReceiving objects: 27% (193/713)\nReceiving objects: 28% (200/713)\nReceiving objects: 29% (207/713)\nReceiving objects: 30% (214/713)\nReceiving objects: 31% (222/713)\nReceiving objects: 32% (229/713)\nReceiving objects: 33% (236/713)\nReceiving objects: 34% (243/713)\nReceiving objects: 35% (250/713)\nReceiving objects: 36% (257/713)\nReceiving objects: 37% (264/713)\nReceiving objects: 38% (271/713)\nReceiving objects: 39% (279/713)\nReceiving objects: 40% (286/713)\nReceiving objects: 41% (293/713)\nReceiving objects: 42% (300/713)\nReceiving objects: 43% (307/713)\nReceiving objects: 44% (314/713)\nReceiving objects: 45% (321/713)\nReceiving objects: 46% (328/713)\nReceiving objects: 47% (336/713)\nReceiving objects: 48% (343/713)\nReceiving objects: 49% (350/713)\nReceiving objects: 50% (357/713)\nReceiving objects: 51% (364/713)\nReceiving objects: 52% (371/713)\nReceiving objects: 53% (378/713)\nReceiving objects: 54% (386/713)\nReceiving objects: 55% (393/713)\nReceiving objects: 56% (400/713)\nReceiving objects: 57% (407/713)\nReceiving objects: 58% (414/713)\nReceiving objects: 59% (421/713)\nReceiving objects: 60% (428/713)\nReceiving objects: 61% (435/713)\nReceiving objects: 62% (443/713)\nReceiving objects: 63% (450/713)\nReceiving objects: 64% (457/713)\nReceiving objects: 65% (464/713)\nReceiving objects: 66% (471/713)\nReceiving objects: 67% (478/713)\nReceiving objects: 68% (485/713)\nReceiving objects: 69% (492/713)\nReceiving objects: 70% (500/713)\nReceiving objects: 71% (507/713)\nReceiving objects: 72% (514/713)\nReceiving objects: 73% (521/713)\nReceiving objects: 74% (528/713)\nReceiving objects: 75% (535/713)\nReceiving objects: 76% (542/713)\nReceiving objects: 77% (550/713)\nReceiving objects: 78% (557/713)\nReceiving objects: 79% (564/713)\nReceiving objects: 80% (571/713)\nReceiving objects: 81% (578/713)\nReceiving objects: 82% (585/713)\nReceiving objects: 83% (592/713)\nReceiving objects: 84% (599/713)\nReceiving objects: 85% (607/713)\nReceiving objects: 86% (614/713)\nReceiving objects: 87% (621/713)\nReceiving objects: 88% (628/713)\nReceiving objects: 89% (635/713)\nReceiving objects: 90% (642/713)\nReceiving objects: 91% (649/713)\nremote: Total 713 (delta 28), reused 441 (delta 23), pack-reused 0 \nReceiving objects: 92% (656/713)\nReceiving objects: 93% (664/713)\nReceiving objects: 94% (671/713)\nReceiving objects: 95% (678/713)\nReceiving objects: 96% (685/713)\nReceiving objects: 97% (692/713)\nReceiving objects: 98% (699/713)\nReceiving objects: 99% (706/713)\nReceiving objects: 100% (713/713)\nReceiving objects: 100% (713/713), 3.74 MiB | 40.79 MiB/s, done.\nResolving deltas: 0% (0/28)\nResolving deltas: 3% (1/28)\nResolving deltas: 7% (2/28)\nResolving deltas: 10% (3/28)\nResolving deltas: 14% (4/28)\nResolving deltas: 17% (5/28)\nResolving deltas: 21% (6/28)\nResolving deltas: 25% (7/28)\nResolving deltas: 28% (8/28)\nResolving deltas: 32% (9/28)\nResolving deltas: 35% (10/28)\nResolving deltas: 39% (11/28)\nResolving deltas: 42% (12/28)\nResolving deltas: 46% (13/28)\nResolving deltas: 50% (14/28)\nResolving deltas: 53% (15/28)\nResolving deltas: 57% (16/28)\nResolving deltas: 60% (17/28)\nResolving deltas: 64% (18/28)\nResolving deltas: 67% (19/28)\nResolving deltas: 71% (20/28)\nResolving deltas: 75% (21/28)\nResolving deltas: 78% (22/28)\nResolving deltas: 82% (23/28)\nResolving deltas: 85% (24/28)\nResolving deltas: 89% (25/28)\nResolving deltas: 92% (26/28)\nResolving deltas: 96% (27/28)\nResolving deltas: 100% (28/28)\nResolving deltas: 100% (28/28), done.\nFrom https://github.com/sanic-org/sanic\n * [new ref] c70813b35243c936909c498015f2d60e376efb7f -> pull/2870/merge\n##[endgroup]\n##[group]Determining the checkout info\n##[endgroup]\n##[group]Checking out the ref\n[command]/usr/bin/git checkout --progress --force refs/remotes/pull/2870/merge\nNote: switching to 'refs/remotes/pull/2870/merge'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at c70813b Merge 2e41e783672597e2e0c7b2842b5934d879374028 into d0bbcf55d540e8d4c9d8bb1108384d8545355fcb\n##[endgroup]\n[command]/usr/bin/git log -1 --format='%H'\n'c70813b35243c936909c498015f2d60e376efb7f'\n##[group]Run actions/setup-python@v4\nwith:\n python-version: 3.12\n check-latest: false\n token: ***\n update-environment: true\n allow-prereleases: false\n##[endgroup]\n##[group]Installed versions\nSuccessfully set up CPython (3.12.1)\n##[endgroup]\n##[group]Run python -m pip install --upgrade pip\n\u001b[36;1mpython -m pip install --upgrade pip\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nRequirement already satisfied: pip in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (23.3.1)\nCollecting pip\n Downloading pip-23.3.2-py3-none-any.whl.metadata (3.5 kB)\nDownloading pip-23.3.2-py3-none-any.whl (2.1 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 2.1/2.1 MB 47.5 MB/s eta 0:00:00\nInstalling collected packages: pip\n Attempting uninstall: pip\n Found existing installation: pip 23.3.1\n Uninstalling pip-23.3.1:\n Successfully uninstalled pip-23.3.1\nSuccessfully installed pip-23.3.2\n##[group]Run pip install tox\n\u001b[36;1mpip install tox\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCollecting tox\n Downloading tox-4.11.4-py3-none-any.whl.metadata (5.0 kB)\nCollecting cachetools>=5.3.1 (from tox)\n Downloading cachetools-5.3.2-py3-none-any.whl.metadata (5.2 kB)\nCollecting chardet>=5.2 (from tox)\n Downloading chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)\nCollecting colorama>=0.4.6 (from tox)\n Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)\nCollecting filelock>=3.12.3 (from tox)\n Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)\nCollecting packaging>=23.1 (from tox)\n Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)\nCollecting platformdirs>=3.10 (from tox)\n Downloading platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)\nCollecting pluggy>=1.3 (from tox)\n Downloading pluggy-1.3.0-py3-none-any.whl.metadata (4.3 kB)\nCollecting pyproject-api>=1.6.1 (from tox)\n Downloading pyproject_api-1.6.1-py3-none-any.whl.metadata (2.8 kB)\nCollecting virtualenv>=20.24.3 (from tox)\n Downloading virtualenv-20.25.0-py3-none-any.whl.metadata (4.5 kB)\nCollecting distlib<1,>=0.3.7 (from virtualenv>=20.24.3->tox)\n Downloading distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)\nDownloading tox-4.11.4-py3-none-any.whl (153 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 154.0/154.0 kB 20.8 MB/s eta 0:00:00\nDownloading cachetools-5.3.2-py3-none-any.whl (9.3 kB)\nDownloading chardet-5.2.0-py3-none-any.whl (199 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 199.4/199.4 kB 55.5 MB/s eta 0:00:00\nDownloading filelock-3.13.1-py3-none-any.whl (11 kB)\nDownloading packaging-23.2-py3-none-any.whl (53 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 53.0/53.0 kB 18.1 MB/s eta 0:00:00\nDownloading platformdirs-4.1.0-py3-none-any.whl (17 kB)\nDownloading pluggy-1.3.0-py3-none-any.whl (18 kB)\nDownloading pyproject_api-1.6.1-py3-none-any.whl (12 kB)\nDownloading virtualenv-20.25.0-py3-none-any.whl (3.8 MB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 3.8/3.8 MB 54.9 MB/s eta 0:00:00\nDownloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)\n โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 468.9/468.9 kB 67.5 MB/s eta 0:00:00\nInstalling collected packages: distlib, pluggy, platformdirs, packaging, filelock, colorama, chardet, cachetools, virtualenv, pyproject-api, tox\nSuccessfully installed cachetools-5.3.2 chardet-5.2.0 colorama-0.4.6 distlib-0.3.8 filelock-3.13.1 packaging-23.2 platformdirs-4.1.0 pluggy-1.3.0 pyproject-api-1.6.1 tox-4.11.4 virtualenv-20.25.0\n##[group]Run env=\"\"\n\u001b[36;1menv=\"\"\u001b[0m\n\u001b[36;1mif [[ ! -z \"py312\" ]]; then\u001b[0m\n\u001b[36;1m env+=\"-e py312\"\u001b[0m\n\u001b[36;1mfi\u001b[0m\n\u001b[36;1mecho \"args=$env\" >> $GITHUB_OUTPUT\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\n##[group]Run nick-fields/retry@v2\nwith:\n timeout_minutes: 10\n max_attempts: 3\n continue_on_error: false\n warning_on_retry: false\n command: tox -e py312\n retry_wait_seconds: 10\n polling_interval_seconds: 1\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\npy312: install_deps> python -I -m pip install 'httpx>=0.23' setuptools\n.pkg: install_requires> python -I -m pip install setuptools wheel\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: install_requires_for_build_editable> python -I -m pip install wheel\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\npy312: install_package_deps> python -I -m pip install 'aiofiles>=0.6.0' aioquic bandit beautifulsoup4 'chardet==3.*' coverage docutils 'html5tagger>=1.2.1' 'httptools>=0.0.10' 'multidict<7.0,>=5.0' mypy pygments pytest-benchmark pytest-sanic 'pytest==7.1.*' ruff 'sanic-routing@ git+https://github.com/sanic-org/sanic-routing.git' 'sanic-testing>=23.6.0' 'slotscheck<1,>=0.8.0' 'tracerite>=1.0.0' 'types-ujson; sys_platform != \"win32\" and implementation_name == \"cpython\"' 'typing-extensions>=4.4.0' 'ujson>=1.35; sys_platform != \"win32\" and implementation_name == \"cpython\"' 'uvicorn<0.15.0' 'uvloop>=0.15.0; sys_platform != \"win32\" and implementation_name == \"cpython\"' 'websockets>=10.0'\npy312: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sanic/sanic/.tox/.tmp/package/1/sanic-23.12.0-0.editable-py3-none-any.whl\npy312: freeze> python -m pip freeze --all\npy312: aiofiles==23.2.1,aioquic==0.9.24,anyio==4.2.0,asgiref==3.7.2,async-generator==1.10,attrs==23.1.0,bandit==1.7.6,beautifulsoup4==4.12.2,certifi==2023.11.17,cffi==1.16.0,chardet==3.0.4,click==8.1.7,coverage==7.3.3,cryptography==41.0.7,docutils==0.20.1,gitdb==4.0.11,GitPython==3.1.40,h11==0.14.0,html5tagger==1.3.0,httpcore==1.0.2,httptools==0.6.1,httpx==0.25.2,idna==3.6,iniconfig==2.0.0,markdown-it-py==3.0.0,mdurl==0.1.2,multidict==6.0.4,mypy==1.7.1,mypy-extensions==1.0.0,packaging==23.2,pbr==6.0.0,pip==23.3.1,pluggy==1.3.0,py==1.11.0,py-cpuinfo==9.0.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycparser==2.21,Pygments==2.17.2,pylsqpack==0.3.18,pyOpenSSL==23.3.0,pytest==7.1.3,pytest-benchmark==4.0.0,pytest-sanic==1.9.1,PyYAML==6.0.1,rich==13.7.0,ruff==0.1.8,sanic @ file:///home/runner/work/sanic/sanic/.tox/.tmp/package/1/sanic-23.12.0-0.editable-py3-none-any.whl#sha256=56e6d7f737084de3b363bf69d559509f355c597274a992497dac135b20931485,sanic-routing @ git+https://github.com/sanic-org/sanic-routing.git@0f9405d6a7381ec11b30dafb2577e4b2d2318e45,sanic-testing==23.6.0,service-identity==23.1.0,setuptools==69.0.2,slotscheck==0.17.1,smmap==5.0.1,sniffio==1.3.0,soupsieve==2.5,stevedore==5.1.0,tomli==2.0.1,tracerite==1.1.1,types-ujson==5.9.0.0,typing_extensions==4.9.0,ujson==5.9.0,uvicorn==0.14.0,uvloop==0.19.0,websockets==10.4\npy312: commands[0]> coverage run --source ./sanic -m pytest tests\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:940: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:943: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expr = ast.IfExp(test, self.display(name), ast.Str(name.id))\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:914: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n assertmsg = ast.Str(\"\")\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:916: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:804: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n keys = [ast.Str(key) for key in current.keys()]\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:928: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead\n clear = ast.Assign(variables, ast.NameConstant(None))\ncollected 1661 items\n\ntests/test_app.py ...................................................... [ 3%]\n. [ 3%]\ntests/test_asgi.py ........................ [ 4%]\ntests/test_bad_request.py . [ 4%]\ntests/test_base.py ..................... [ 6%]\ntests/test_blueprint_copy.py ... [ 6%]\ntests/test_blueprint_group.py .......... [ 6%]\ntests/test_blueprints.py ............................................ [ 9%]\ntests/test_cancellederror.py . [ 9%]\ntests/test_cli.py ...................................................... [ 12%]\n [ 12%]\ntests/test_coffee.py .... [ 13%]\ntests/test_config.py ......................................... [ 15%]\ntests/test_constants.py ...... [ 15%]\ntests/test_cookies.py ................................... [ 18%]\ntests/test_create_task.py ..... [ 18%]\ntests/test_custom_request.py . [ 18%]\ntests/test_deprecation.py .... [ 18%]\ntests/test_dynamic_routes.py .... [ 18%]\ntests/test_errorpages.py ............................................... [ 21%]\n....... [ 22%]\ntests/test_exceptions.py ..................... [ 23%]\ntests/test_exceptions_handler.py ............. [ 24%]\ntests/test_ext_integration.py ....... [ 24%]\ntests/test_graceful_shutdown.py x. [ 24%]\ntests/test_handler.py . [ 24%]\ntests/test_handler_annotations.py .... [ 24%]\ntests/test_headers.py .................................................. [ 27%]\n...................... [ 29%]\ntests/test_helpers.py ....... [ 29%]\ntests/test_http.py ... [ 29%]\ntests/test_http_alt_svc.py . [ 29%]\ntests/test_init.py ............. [ 30%]\ntests/test_json_decoding.py ... [ 30%]\ntests/test_json_encoding.py ...s [ 31%]\ntests/test_keep_alive_timeout.py .... [ 31%]\ntests/test_late_adds.py ... [ 31%]\ntests/test_logging.py ................... [ 32%]\ntests/test_logo.py ..... [ 33%]\ntests/test_middleware.py ............... [ 33%]\ntests/test_middleware_priority.py ...................................... [ 36%]\n.............. [ 37%]\ntests/test_motd.py ..... [ 37%]\ntests/test_multiprocessing.py ......... [ 37%]\ntests/test_named_routes.py .......................... [ 39%]\ntests/test_payload_too_large.py ... [ 39%]\ntests/test_pipelining.py .... [ 39%]\ntests/test_prepare.py ..... [ 40%]\ntests/test_redirect.py ......... [ 40%]\ntests/test_reloader.py xxxxxx. [ 41%]\ntests/test_request.py .......................................... [ 43%]\ntests/test_request_cancel.py .. [ 43%]\ntests/test_request_data.py .. [ 43%]\ntests/test_request_stream.py ......... [ 44%]\ntests/test_requests.py ................................................. [ 47%]\n........................................................................ [ 51%]\n........... [ 52%]\ntests/test_response.py ................................................. [ 55%]\n.......... [ 55%]\ntests/test_response_file.py ...... [ 56%]\ntests/test_response_json.py ................ [ 57%]\ntests/test_response_timeout.py .... [ 57%]\ntests/test_routes.py ................................................... [ 60%]\n........................................................................ [ 64%]\n...................................... [ 67%]\ntests/test_server_events.py .................... [ 68%]\ntests/test_server_loop.py ss.. [ 68%]\ntests/test_signal_handlers.py ...... [ 69%]\ntests/test_signals.py ................................................. [ 72%]\ntests/test_static.py ..........sssss.................................... [ 75%]\n.......................................s [ 77%]\ntests/test_static_directory.py ....... [ 77%]\ntests/test_tasks.py ...... [ 78%]\ntests/test_test_client_port.py .. [ 78%]\ntests/test_timeout_logic.py ..... [ 78%]\ntests/test_tls.py ........xxx................................... [ 81%]\ntests/test_touchup.py ......... [ 81%]\ntests/test_unix_socket.py x........ [ 82%]\ntests/test_url_building.py ........................... [ 84%]\ntests/test_url_for.py ......... [ 84%]\ntests/test_url_for_static.py ..................... [ 85%]\ntests/test_utf8.py ... [ 86%]\ntests/test_utils.py ...... [ 86%]\ntests/test_versioning.py .............. [ 87%]\ntests/test_vhosts.py ... [ 87%]\ntests/test_views.py ................... [ 88%]\ntests/test_websockets.py ......................FFF...... [ 90%]\ntests/test_ws_handlers.py ........ [ 91%]\ntests/benchmark/test_route_resolution_benchmark.py .. [ 91%]\ntests/http3/test_http_receiver.py ............ [ 91%]\ntests/http3/test_server.py .... [ 92%]\ntests/http3/test_session_ticket_store.py . [ 92%]\ntests/typing/test_typing.py ....... [ 92%]\ntests/worker/test_inspector.py ......... [ 93%]\ntests/worker/test_loader.py ............ [ 93%]\ntests/worker/test_manager.py ................ [ 94%]\ntests/worker/test_multiplexer.py ................. [ 95%]\ntests/worker/test_reloader.py .......... [ 96%]\ntests/worker/test_runner.py .... [ 96%]\ntests/worker/test_shared_ctx.py ............... [ 97%]\ntests/worker/test_socket.py .. [ 97%]\ntests/worker/test_startup.py ......... [ 98%]\ntests/worker/test_state.py .................... [ 99%]\ntests/worker/test_worker_serve.py ......... [100%]\n\n=================================== FAILURES ===================================\n___________________ test_ws_frame_put_message_into_queue[0] ____________________\n\nopcode = <Opcode.CONT: 0>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='139970753877808'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[1] ____________________\n\nopcode = <Opcode.TEXT: 1>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='139970753843408'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[2] ____________________\n\nopcode = <Opcode.BINARY: 2>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='139970753532016'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n=============================== warnings summary ===============================\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:940: 3106 warnings\ntests/test_app.py: 4 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:940: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:943: 3106 warnings\ntests/test_app.py: 4 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:943: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expr = ast.IfExp(test, self.display(name), ast.Str(name.id))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1053: 2250 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1053: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n syms.append(ast.Str(sym))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1055: 2250 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1055: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expls.append(ast.Str(expl))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:804: 10789 warnings\ntests/test_app.py: 13 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:804: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n keys = [ast.Str(key) for key in current.keys()]\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:914: 2440 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:914: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n assertmsg = ast.Str(\"\")\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:916: 2444 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:916: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:928: 2428 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:928: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead\n clear = ast.Assign(variables, ast.NameConstant(None))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:965: 22 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:965: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expl_format = self.pop_format_context(ast.Str(expl))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:977: 11 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:977: DeprecationWarning: ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expl_template = self.helper(\"_format_boolop\", expl_list, ast.Num(is_or))\n\ntests/test_app.py: 9 warnings\ntests/test_asgi.py: 14 warnings\ntests/test_bad_request.py: 1 warning\ntests/test_blueprint_copy.py: 2 warnings\ntests/test_blueprint_group.py: 3 warnings\ntests/test_blueprints.py: 39 warnings\ntests/test_cancellederror.py: 1 warning\ntests/test_cli.py: 22 warnings\ntests/test_coffee.py: 1 warning\ntests/test_config.py: 2 warnings\ntests/test_constants.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_create_task.py: 4 warnings\ntests/test_custom_request.py: 1 warning\ntests/test_dynamic_routes.py: 3 warnings\ntests/test_errorpages.py: 18 warnings\ntests/test_exceptions.py: 341 warnings\ntests/test_exceptions_handler.py: 9 warnings\ntests/test_ext_integration.py: 4 warnings\ntests/test_graceful_shutdown.py: 2 warnings\ntests/test_handler.py: 1 warning\ntests/test_handler_annotations.py: 4 warnings\ntests/test_headers.py: 3 warnings\ntests/test_http.py: 3 warnings\ntests/test_http_alt_svc.py: 1 warning\ntests/test_json_decoding.py: 1 warning\ntests/test_keep_alive_timeout.py: 84 warnings\ntests/test_logging.py: 14 warnings\ntests/test_middleware.py: 15 warnings\ntests/test_middleware_priority.py: 46 warnings\ntests/test_multiprocessing.py: 6 warnings\ntests/test_named_routes.py: 1 warning\ntests/test_payload_too_large.py: 3 warnings\ntests/test_pipelining.py: 4 warnings\ntests/test_redirect.py: 9 warnings\ntests/test_request.py: 13 warnings\ntests/test_request_cancel.py: 2 warnings\ntests/test_request_data.py: 2 warnings\ntests/test_request_stream.py: 9 warnings\ntests/test_requests.py: 128 warnings\ntests/test_response.py: 58 warnings\ntests/test_response_json.py: 16 warnings\ntests/test_response_timeout.py: 4 warnings\ntests/test_routes.py: 69 warnings\ntests/test_server_events.py: 15 warnings\ntests/test_signal_handlers.py: 3 warnings\ntests/test_signals.py: 5 warnings\ntests/test_static.py: 79 warnings\ntests/test_static_directory.py: 6 warnings\ntests/test_tasks.py: 1 warning\ntests/test_test_client_port.py: 2 warnings\ntests/test_tls.py: 13 warnings\ntests/test_touchup.py: 6 warnings\ntests/test_unix_socket.py: 4 warnings\ntests/test_url_building.py: 11 warnings\ntests/test_url_for.py: 3 warnings\ntests/test_url_for_static.py: 21 warnings\ntests/test_utf8.py: 3 warnings\ntests/test_versioning.py: 14 warnings\ntests/test_vhosts.py: 3 warnings\ntests/test_views.py: 19 warnings\ntests/test_ws_handlers.py: 8 warnings\ntests/http3/test_server.py: 3 warnings\ntests/worker/test_inspector.py: 6 warnings\ntests/worker/test_multiplexer.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:70: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n if hasattr(event, \"s\"):\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 18 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py::test_cookie_customization\ntests/test_cookies.py::test_false_cookies_encoded[False-False]\ntests/test_cookies.py::test_false_cookies_encoded[True-True]\ntests/test_cookies.py::test_false_cookies[False-False]\ntests/test_cookies.py::test_false_cookies[True-True]\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.httponly=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n return super().__new__(cls)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n return super().__new__(cls)\n\ntests/test_cli.py: 21 warnings\ntests/test_exceptions.py: 336 warnings\ntests/test_keep_alive_timeout.py: 84 warnings\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:71: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n event_name = getattr(event, \"value\", event.s)\n\ntests/test_cookies.py::test_cookies\ntests/test_cookies.py::test_cookies_asgi\ntests/test_cookies.py::test_http2_cookies\ntests/test_requests.py::test_request_cookies\ntests/test_requests.py::test_request_cookies_asgi\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'test', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['test'] to request.cookies.get('test'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py: 12 warnings\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Direct encoding of a Cookie object has been deprecated and will be removed in v24.3.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_expires[expires0]\ntests/test_cookies.py::test_cookie_expires_illegal_instance_type[Fri, 21-Dec-2018 15:30:00 GMT]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.expires=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_deletion\ntests/test_cookies.py::test_cookie_jar_old_school_delete_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Deleting cookie values using the dict pattern has been deprecated. You should instead use the cookies.delete_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_set_unknown_property\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.invalid=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[0]\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\ntests/test_cookies.py::test_cookie_bad_max_age[30.0]\ntests/test_cookies.py::test_cookie_bad_max_age[30.1]\ntests/test_cookies.py::test_cookie_bad_max_age[test]\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.max-age=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:210: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:217: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n expires = datetime.utcnow().replace(microsecond=0) + timedelta(\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:249: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n expires_time = datetime.utcnow().replace(microsecond=0) + expires\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:263: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one; foo=two]\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one;foo=two]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'foo', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['foo'] to request.cookies.get('foo'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.domain=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.path=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.secure=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.samesite=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'one', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['one'] to request.cookies.get('one'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'two', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['two'] to request.cookies.get('two'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'three', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['three'] to request.cookies.get('three'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_custom_request.py: 1 warning\ntests/test_payload_too_large.py: 1 warning\ntests/test_pipelining.py: 2 warnings\ntests/test_request_stream.py: 28 warnings\ntests/test_requests.py: 41 warnings\ntests/test_utf8.py: 1 warning\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.\n warnings.warn(message, DeprecationWarning)\n\ntests/test_errorpages.py::test_guess_mime_logging[-auto-*/*-The client accepts */*, using 'json' from request.json]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Response type was determined by the JSON content of the request. This behavior is deprecated and will be removed in v24.3. Please specify the format either by\n error_format=\"json\" on route fakeroute, by\n FALLBACK_ERROR_FORMAT = \"json\", or by adding header\n accept: application/json to your requests.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_multiprocessing.py: 16 warnings\ntests/test_tls.py: 4 warnings\ntests/test_unix_socket.py: 3 warnings\ntests/worker/test_multiplexer.py: 2 warnings\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=2164) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n\ntests/test_signals.py::test_invalid_signal[foo.<bar>.baz]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/weakref.py:104: RuntimeWarning: coroutine 'Loop.create_server' was never awaited\n def __init__(self, other=(), /, **kw):\n\ntests/test_tasks.py::test_purge_tasks\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/pytest_sanic/plugin.py:76: RuntimeWarning: coroutine 'dummy' was never awaited\n loop.run_until_complete(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_timeout_logic.py::test_check_timeouts_no_timeout\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:404: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n def __init__(self, /, *args, **kwargs):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_url_attributes_with_ssl_context[/moo/boo-arg1=val1-https://{}:{}/moo/boo?arg1=val1]\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/sanic_routing/route.py:309: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n return tuple(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n context = ssl.SSLContext()\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n context = ssl.SSLContext()\n\ntests/test_websockets.py::test_ws_frame_put_fetched[0]\ntests/test_websockets.py::test_ws_frame_put_fetched[1]\ntests/test_websockets.py::test_ws_frame_put_fetched[2]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[0]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[1]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[2]\n /home/runner/work/sanic/sanic/sanic/server/websockets/frame.py:291: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited\n self.message_fetched.clear()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_send_headers\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:2185: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, name, parent):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_stream_id\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/sanic_routing/tree.py:435: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, router) -> None:\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_conn_info\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/weakref.py:104: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, other=(), /, **kw):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_header_encoding\n <frozen os>:685: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------------------------------------------------------------------------------------------------- benchmark: 2 tests ----------------------------------------------------------------------------------------------------\nName (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_resolve_route_no_arg_string_path 919.7150 (1.0) 22,357.5190 (1.96) 1,028.9591 (1.0) 675.3904 (2.04) 1,009.4915 (1.0) 18.2145 (1.0) 1;50 971.8559 (1.0) 1000 1000\ntest_resolve_route_with_typed_args 934.0110 (1.02) 11,421.9020 (1.0) 1,036.0337 (1.01) 330.4639 (1.0) 1,035.6305 (1.03) 24.8865 (1.37) 1;160 965.2196 (0.99) 1000 1000\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\nLegend:\n Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.\n OPS: Operations Per Second, computed as 1 / Mean\n=========================== short test summary info ============================\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[0] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[1] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[2] - At...\n= 3 failed, 1638 passed, 9 skipped, 11 xfailed, 30772 warnings in 232.06s (0:03:52) =\npy312: exit 1 (237.15 seconds) /home/runner/work/sanic/sanic> coverage run --source ./sanic -m pytest tests pid=2164\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n py312: FAIL code 1 (265.07=setup[27.92]+cmd[237.15] seconds)\n evaluation failed :( (265.80 seconds)\nAttempt 1 failed. Reason: Child_process exited with error code 1\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\npy312: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sanic/sanic/.tox/.tmp/package/2/sanic-23.12.0-0.editable-py3-none-any.whl\npy312: freeze> python -m pip freeze --all\npy312: aiofiles==23.2.1,aioquic==0.9.24,anyio==4.2.0,asgiref==3.7.2,async-generator==1.10,attrs==23.1.0,bandit==1.7.6,beautifulsoup4==4.12.2,certifi==2023.11.17,cffi==1.16.0,chardet==3.0.4,click==8.1.7,coverage==7.3.3,cryptography==41.0.7,docutils==0.20.1,gitdb==4.0.11,GitPython==3.1.40,h11==0.14.0,html5tagger==1.3.0,httpcore==1.0.2,httptools==0.6.1,httpx==0.25.2,idna==3.6,iniconfig==2.0.0,markdown-it-py==3.0.0,mdurl==0.1.2,multidict==6.0.4,mypy==1.7.1,mypy-extensions==1.0.0,packaging==23.2,pbr==6.0.0,pip==23.3.1,pluggy==1.3.0,py==1.11.0,py-cpuinfo==9.0.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycparser==2.21,Pygments==2.17.2,pylsqpack==0.3.18,pyOpenSSL==23.3.0,pytest==7.1.3,pytest-benchmark==4.0.0,pytest-sanic==1.9.1,PyYAML==6.0.1,rich==13.7.0,ruff==0.1.8,sanic @ file:///home/runner/work/sanic/sanic/.tox/.tmp/package/2/sanic-23.12.0-0.editable-py3-none-any.whl#sha256=6d63f66205472d98472734dd000cb69f4b649c3af34942a886ee6a5dcd3c88ed,sanic-routing @ git+https://github.com/sanic-org/sanic-routing.git@0f9405d6a7381ec11b30dafb2577e4b2d2318e45,sanic-testing==23.6.0,service-identity==23.1.0,setuptools==69.0.2,slotscheck==0.17.1,smmap==5.0.1,sniffio==1.3.0,soupsieve==2.5,stevedore==5.1.0,tomli==2.0.1,tracerite==1.1.1,types-ujson==5.9.0.0,typing_extensions==4.9.0,ujson==5.9.0,uvicorn==0.14.0,uvloop==0.19.0,websockets==10.4\npy312: commands[0]> coverage run --source ./sanic -m pytest tests\ncollected 1661 items\n\ntests/test_app.py ...................................................... [ 3%]\n. [ 3%]\ntests/test_asgi.py ........................ [ 4%]\ntests/test_bad_request.py . [ 4%]\ntests/test_base.py ..................... [ 6%]\ntests/test_blueprint_copy.py ... [ 6%]\ntests/test_blueprint_group.py .......... [ 6%]\ntests/test_blueprints.py ............................................ [ 9%]\ntests/test_cancellederror.py . [ 9%]\ntests/test_cli.py ...................................................... [ 12%]\n [ 12%]\ntests/test_coffee.py .... [ 13%]\ntests/test_config.py ......................................... [ 15%]\ntests/test_constants.py ...... [ 15%]\ntests/test_cookies.py ................................... [ 18%]\ntests/test_create_task.py ..... [ 18%]\ntests/test_custom_request.py . [ 18%]\ntests/test_deprecation.py .... [ 18%]\ntests/test_dynamic_routes.py .... [ 18%]\ntests/test_errorpages.py ............................................... [ 21%]\n....... [ 22%]\ntests/test_exceptions.py ..................... [ 23%]\ntests/test_exceptions_handler.py ............. [ 24%]\ntests/test_ext_integration.py ....... [ 24%]\ntests/test_graceful_shutdown.py x. [ 24%]\ntests/test_handler.py . [ 24%]\ntests/test_handler_annotations.py .... [ 24%]\ntests/test_headers.py .................................................. [ 27%]\n...................... [ 29%]\ntests/test_helpers.py ....... [ 29%]\ntests/test_http.py ... [ 29%]\ntests/test_http_alt_svc.py . [ 29%]\ntests/test_init.py ............. [ 30%]\ntests/test_json_decoding.py ... [ 30%]\ntests/test_json_encoding.py ...s [ 31%]\ntests/test_keep_alive_timeout.py .... [ 31%]\ntests/test_late_adds.py ... [ 31%]\ntests/test_logging.py ................... [ 32%]\ntests/test_logo.py ..... [ 33%]\ntests/test_middleware.py ............... [ 33%]\ntests/test_middleware_priority.py ...................................... [ 36%]\n.............. [ 37%]\ntests/test_motd.py ..... [ 37%]\ntests/test_multiprocessing.py ......... [ 37%]\ntests/test_named_routes.py .......................... [ 39%]\ntests/test_payload_too_large.py ... [ 39%]\ntests/test_pipelining.py .... [ 39%]\ntests/test_prepare.py ..... [ 40%]\ntests/test_redirect.py ......... [ 40%]\ntests/test_reloader.py xxxxxx. [ 41%]\ntests/test_request.py .......................................... [ 43%]\ntests/test_request_cancel.py .. [ 43%]\ntests/test_request_data.py .. [ 43%]\ntests/test_request_stream.py ......... [ 44%]\ntests/test_requests.py ................................................. [ 47%]\n........................................................................ [ 51%]\n........... [ 52%]\ntests/test_response.py ................................................. [ 55%]\n.......... [ 55%]\ntests/test_response_file.py ...... [ 56%]\ntests/test_response_json.py ................ [ 57%]\ntests/test_response_timeout.py .... [ 57%]\ntests/test_routes.py ................................................... [ 60%]\n........................................................................ [ 64%]\n...................................... [ 67%]\ntests/test_server_events.py .................... [ 68%]\ntests/test_server_loop.py ss.. [ 68%]\ntests/test_signal_handlers.py ...... [ 69%]\ntests/test_signals.py ................................................. [ 72%]\ntests/test_static.py ..........sssss.................................... [ 75%]\n.......................................s [ 77%]\ntests/test_static_directory.py ....... [ 77%]\ntests/test_tasks.py ...... [ 78%]\ntests/test_test_client_port.py .. [ 78%]\ntests/test_timeout_logic.py ..... [ 78%]\ntests/test_tls.py ........xxx................................... [ 81%]\ntests/test_touchup.py ......... [ 81%]\ntests/test_unix_socket.py x........ [ 82%]\ntests/test_url_building.py ........................... [ 84%]\ntests/test_url_for.py ......... [ 84%]\ntests/test_url_for_static.py ..................... [ 85%]\ntests/test_utf8.py ... [ 86%]\ntests/test_utils.py ...... [ 86%]\ntests/test_versioning.py .............. [ 87%]\ntests/test_vhosts.py ... [ 87%]\ntests/test_views.py ................... [ 88%]\ntests/test_websockets.py ......................FFF...... [ 90%]\ntests/test_ws_handlers.py ........ [ 91%]\ntests/benchmark/test_route_resolution_benchmark.py .. [ 91%]\ntests/http3/test_http_receiver.py ............ [ 91%]\ntests/http3/test_server.py .... [ 92%]\ntests/http3/test_session_ticket_store.py . [ 92%]\ntests/typing/test_typing.py ....... [ 92%]\ntests/worker/test_inspector.py ......... [ 93%]\ntests/worker/test_loader.py ............ [ 93%]\ntests/worker/test_manager.py ................ [ 94%]\ntests/worker/test_multiplexer.py ................. [ 95%]\ntests/worker/test_reloader.py .......... [ 96%]\ntests/worker/test_runner.py .... [ 96%]\ntests/worker/test_shared_ctx.py ............... [ 97%]\ntests/worker/test_socket.py .. [ 97%]\ntests/worker/test_startup.py ......... [ 98%]\ntests/worker/test_state.py .................... [ 99%]\ntests/worker/test_worker_serve.py ......... [100%]\n\n=================================== FAILURES ===================================\n___________________ test_ws_frame_put_message_into_queue[0] ____________________\n\nopcode = <Opcode.CONT: 0>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='139960760787472'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[1] ____________________\n\nopcode = <Opcode.TEXT: 1>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='139960759547520'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[2] ____________________\n\nopcode = <Opcode.BINARY: 2>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='139960757038464'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n=============================== warnings summary ===============================\ntests/test_app.py: 9 warnings\ntests/test_asgi.py: 14 warnings\ntests/test_bad_request.py: 1 warning\ntests/test_blueprint_copy.py: 2 warnings\ntests/test_blueprint_group.py: 3 warnings\ntests/test_blueprints.py: 39 warnings\ntests/test_cancellederror.py: 1 warning\ntests/test_cli.py: 22 warnings\ntests/test_coffee.py: 1 warning\ntests/test_config.py: 2 warnings\ntests/test_constants.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_create_task.py: 4 warnings\ntests/test_custom_request.py: 1 warning\ntests/test_dynamic_routes.py: 3 warnings\ntests/test_errorpages.py: 18 warnings\ntests/test_exceptions.py: 341 warnings\ntests/test_exceptions_handler.py: 9 warnings\ntests/test_ext_integration.py: 4 warnings\ntests/test_graceful_shutdown.py: 2 warnings\ntests/test_handler.py: 1 warning\ntests/test_handler_annotations.py: 4 warnings\ntests/test_headers.py: 3 warnings\ntests/test_http.py: 3 warnings\ntests/test_http_alt_svc.py: 1 warning\ntests/test_json_decoding.py: 1 warning\ntests/test_keep_alive_timeout.py: 84 warnings\ntests/test_logging.py: 14 warnings\ntests/test_middleware.py: 15 warnings\ntests/test_middleware_priority.py: 46 warnings\ntests/test_multiprocessing.py: 6 warnings\ntests/test_named_routes.py: 1 warning\ntests/test_payload_too_large.py: 3 warnings\ntests/test_pipelining.py: 4 warnings\ntests/test_redirect.py: 9 warnings\ntests/test_request.py: 13 warnings\ntests/test_request_cancel.py: 2 warnings\ntests/test_request_data.py: 2 warnings\ntests/test_request_stream.py: 9 warnings\ntests/test_requests.py: 128 warnings\ntests/test_response.py: 58 warnings\ntests/test_response_json.py: 16 warnings\ntests/test_response_timeout.py: 4 warnings\ntests/test_routes.py: 69 warnings\ntests/test_server_events.py: 15 warnings\ntests/test_signal_handlers.py: 3 warnings\ntests/test_signals.py: 5 warnings\ntests/test_static.py: 79 warnings\ntests/test_static_directory.py: 6 warnings\ntests/test_tasks.py: 1 warning\ntests/test_test_client_port.py: 2 warnings\ntests/test_tls.py: 13 warnings\ntests/test_touchup.py: 6 warnings\ntests/test_unix_socket.py: 4 warnings\ntests/test_url_building.py: 11 warnings\ntests/test_url_for.py: 3 warnings\ntests/test_url_for_static.py: 21 warnings\ntests/test_utf8.py: 3 warnings\ntests/test_versioning.py: 14 warnings\ntests/test_vhosts.py: 3 warnings\ntests/test_views.py: 19 warnings\ntests/test_ws_handlers.py: 8 warnings\ntests/http3/test_server.py: 3 warnings\ntests/worker/test_inspector.py: 6 warnings\ntests/worker/test_multiplexer.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:70: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n if hasattr(event, \"s\"):\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 18 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py::test_cookie_customization\ntests/test_cookies.py::test_false_cookies_encoded[False-False]\ntests/test_cookies.py::test_false_cookies_encoded[True-True]\ntests/test_cookies.py::test_false_cookies[False-False]\ntests/test_cookies.py::test_false_cookies[True-True]\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.httponly=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n return super().__new__(cls)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n return super().__new__(cls)\n\ntests/test_cli.py: 21 warnings\ntests/test_exceptions.py: 336 warnings\ntests/test_keep_alive_timeout.py: 84 warnings\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:71: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n event_name = getattr(event, \"value\", event.s)\n\ntests/test_cookies.py::test_cookies\ntests/test_cookies.py::test_cookies_asgi\ntests/test_cookies.py::test_http2_cookies\ntests/test_requests.py::test_request_cookies\ntests/test_requests.py::test_request_cookies_asgi\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'test', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['test'] to request.cookies.get('test'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py: 12 warnings\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Direct encoding of a Cookie object has been deprecated and will be removed in v24.3.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_expires[expires0]\ntests/test_cookies.py::test_cookie_expires_illegal_instance_type[Fri, 21-Dec-2018 15:30:00 GMT]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.expires=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_deletion\ntests/test_cookies.py::test_cookie_jar_old_school_delete_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Deleting cookie values using the dict pattern has been deprecated. You should instead use the cookies.delete_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_set_unknown_property\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.invalid=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[0]\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\ntests/test_cookies.py::test_cookie_bad_max_age[30.0]\ntests/test_cookies.py::test_cookie_bad_max_age[30.1]\ntests/test_cookies.py::test_cookie_bad_max_age[test]\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.max-age=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:210: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:217: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n expires = datetime.utcnow().replace(microsecond=0) + timedelta(\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:249: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n expires_time = datetime.utcnow().replace(microsecond=0) + expires\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:263: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one; foo=two]\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one;foo=two]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'foo', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['foo'] to request.cookies.get('foo'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.domain=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.path=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.secure=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.samesite=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'one', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['one'] to request.cookies.get('one'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'two', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['two'] to request.cookies.get('two'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'three', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['three'] to request.cookies.get('three'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_custom_request.py: 1 warning\ntests/test_payload_too_large.py: 1 warning\ntests/test_pipelining.py: 2 warnings\ntests/test_request_stream.py: 28 warnings\ntests/test_requests.py: 41 warnings\ntests/test_utf8.py: 1 warning\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.\n warnings.warn(message, DeprecationWarning)\n\ntests/test_errorpages.py::test_guess_mime_logging[-auto-*/*-The client accepts */*, using 'json' from request.json]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Response type was determined by the JSON content of the request. This behavior is deprecated and will be removed in v24.3. Please specify the format either by\n error_format=\"json\" on route fakeroute, by\n FALLBACK_ERROR_FORMAT = \"json\", or by adding header\n accept: application/json to your requests.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_multiprocessing.py: 16 warnings\ntests/test_tls.py: 4 warnings\ntests/test_unix_socket.py: 3 warnings\ntests/worker/test_multiplexer.py: 2 warnings\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=8050) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n\ntests/test_static.py::test_static_file_specified_host[test.file]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:52: RuntimeWarning: coroutine 'Loop.create_server' was never awaited\n return compile(source, filename, mode, flags,\n\ntests/test_tasks.py::test_purge_tasks\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/pytest_sanic/plugin.py:76: RuntimeWarning: coroutine 'dummy' was never awaited\n loop.run_until_complete(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_timeout_logic.py::test_check_timeouts_request_timeout\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:434: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n new = type(cls.__name__, bases, {'__doc__': cls.__doc__})\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_url_attributes_with_ssl_context[/moo/boo-arg1=val1-https://{}:{}/moo/boo?arg1=val1]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:52: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n return compile(source, filename, mode, flags,\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n context = ssl.SSLContext()\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n context = ssl.SSLContext()\n\ntests/test_views.py::test_methods[GET]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:1789: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n unparser = _Unparser()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_websockets.py::test_ws_frame_put_fetched[0]\ntests/test_websockets.py::test_ws_frame_put_fetched[1]\ntests/test_websockets.py::test_ws_frame_put_fetched[2]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[0]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[1]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[2]\n /home/runner/work/sanic/sanic/sanic/server/websockets/frame.py:291: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited\n self.message_fetched.clear()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_send_headers\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:52: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n return compile(source, filename, mode, flags,\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_stream_id\ntests/http3/test_http_receiver.py::test_request_conn_info\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:406: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n visitor = getattr(self, method, self.generic_visit)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_header_encoding\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:257: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def iter_fields(node):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------------------------------------------------------------------------------------------------- benchmark: 2 tests ----------------------------------------------------------------------------------------------------\nName (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_resolve_route_with_typed_args 940.0830 (1.0) 11,328.7800 (1.0) 1,018.3106 (1.0) 326.7959 (1.0) 1,007.4380 (1.00) 16.8465 (1.36) 1;19 982.0186 (1.0) 1000 1000\ntest_resolve_route_no_arg_string_path 979.7060 (1.04) 22,414.2740 (1.98) 1,031.2724 (1.01) 677.4905 (2.07) 1,006.1510 (1.0) 12.3480 (1.0) 1;41 969.6759 (0.99) 1000 1000\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\nLegend:\n Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.\n OPS: Operations Per Second, computed as 1 / Mean\n=========================== short test summary info ============================\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[0] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[1] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[2] - At...\n= 3 failed, 1638 passed, 9 skipped, 11 xfailed, 1891 warnings in 210.94s (0:03:30) =\npy312: exit 1 (214.50 seconds) /home/runner/work/sanic/sanic> coverage run --source ./sanic -m pytest tests pid=8050\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n py312: FAIL code 1 (216.13=setup[1.63]+cmd[214.50] seconds)\n evaluation failed :( (216.28 seconds)\nAttempt 2 failed. Reason: Child_process exited with error code 1\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\npy312: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sanic/sanic/.tox/.tmp/package/3/sanic-23.12.0-0.editable-py3-none-any.whl\npy312: freeze> python -m pip freeze --all\npy312: aiofiles==23.2.1,aioquic==0.9.24,anyio==4.2.0,asgiref==3.7.2,async-generator==1.10,attrs==23.1.0,bandit==1.7.6,beautifulsoup4==4.12.2,certifi==2023.11.17,cffi==1.16.0,chardet==3.0.4,click==8.1.7,coverage==7.3.3,cryptography==41.0.7,docutils==0.20.1,gitdb==4.0.11,GitPython==3.1.40,h11==0.14.0,html5tagger==1.3.0,httpcore==1.0.2,httptools==0.6.1,httpx==0.25.2,idna==3.6,iniconfig==2.0.0,markdown-it-py==3.0.0,mdurl==0.1.2,multidict==6.0.4,mypy==1.7.1,mypy-extensions==1.0.0,packaging==23.2,pbr==6.0.0,pip==23.3.1,pluggy==1.3.0,py==1.11.0,py-cpuinfo==9.0.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycparser==2.21,Pygments==2.17.2,pylsqpack==0.3.18,pyOpenSSL==23.3.0,pytest==7.1.3,pytest-benchmark==4.0.0,pytest-sanic==1.9.1,PyYAML==6.0.1,rich==13.7.0,ruff==0.1.8,sanic @ file:///home/runner/work/sanic/sanic/.tox/.tmp/package/3/sanic-23.12.0-0.editable-py3-none-any.whl#sha256=ab2a8fd4976dd590181074cd5462b3885d77bdd37b409090053b533f8f000cc9,sanic-routing @ git+https://github.com/sanic-org/sanic-routing.git@0f9405d6a7381ec11b30dafb2577e4b2d2318e45,sanic-testing==23.6.0,service-identity==23.1.0,setuptools==69.0.2,slotscheck==0.17.1,smmap==5.0.1,sniffio==1.3.0,soupsieve==2.5,stevedore==5.1.0,tomli==2.0.1,tracerite==1.1.1,types-ujson==5.9.0.0,typing_extensions==4.9.0,ujson==5.9.0,uvicorn==0.14.0,uvloop==0.19.0,websockets==10.4\npy312: commands[0]> coverage run --source ./sanic -m pytest tests\ncollected 1661 items\n\ntests/test_app.py ...................................................... [ 3%]\n. [ 3%]\ntests/test_asgi.py ........................ [ 4%]\ntests/test_bad_request.py . [ 4%]\ntests/test_base.py ..................... [ 6%]\ntests/test_blueprint_copy.py ... [ 6%]\ntests/test_blueprint_group.py .......... [ 6%]\ntests/test_blueprints.py ............................................ [ 9%]\ntests/test_cancellederror.py . [ 9%]\ntests/test_cli.py ...................................................... [ 12%]\n [ 12%]\ntests/test_coffee.py .... [ 13%]\ntests/test_config.py ......................................... [ 15%]\ntests/test_constants.py ...... [ 15%]\ntests/test_cookies.py ................................... [ 18%]\ntests/test_create_task.py ..... [ 18%]\ntests/test_custom_request.py . [ 18%]\ntests/test_deprecation.py .... [ 18%]\ntests/test_dynamic_routes.py .... [ 18%]\ntests/test_errorpages.py ............................................... [ 21%]\n....... [ 22%]\ntests/test_exceptions.py ..................... [ 23%]\ntests/test_exceptions_handler.py ............. [ 24%]\ntests/test_ext_integration.py ....... [ 24%]\ntests/test_graceful_shutdown.py x. [ 24%]\ntests/test_handler.py . [ 24%]\ntests/test_handler_annotations.py .... [ 24%]\ntests/test_headers.py .................................................. [ 27%]\n...................... [ 29%]\ntests/test_helpers.py ....... [ 29%]\ntests/test_http.py ... [ 29%]\ntests/test_http_alt_svc.py . [ 29%]\ntests/test_init.py ............. [ 30%]\ntests/test_json_decoding.py ... [ 30%]\ntests/test_json_encoding.py ...s [ 31%]\ntests/test_keep_alive_timeout.py .... [ 31%]\ntests/test_late_adds.py ... [ 31%]\ntests/test_logging.py ................... [ 32%]\ntests/test_logo.py ..... [ 33%]\ntests/test_middleware.py ............... [ 33%]\ntests/test_middleware_priority.py ...................................... [ 36%]\n.............. [ 37%]\ntests/test_motd.py ..... [ 37%]\ntests/test_multiprocessing.py ......... [ 37%]\ntests/test_named_routes.py .......................... [ 39%]\ntests/test_payload_too_large.py ... [ 39%]\ntests/test_pipelining.py .... [ 39%]\ntests/test_prepare.py ..... [ 40%]\ntests/test_redirect.py ......... [ 40%]\ntests/test_reloader.py xxxxxx. [ 41%]\ntests/test_request.py .......................................... [ 43%]\ntests/test_request_cancel.py .. [ 43%]\ntests/test_request_data.py .. [ 43%]\ntests/test_request_stream.py ......... [ 44%]\ntests/test_requests.py ................................................. [ 47%]\n........................................................................ [ 51%]\n........... [ 52%]\ntests/test_response.py ................................................. [ 55%]\n.......... [ 55%]\ntests/test_response_file.py ...... [ 56%]\ntests/test_response_json.py ................ [ 57%]\ntests/test_response_timeout.py .... [ 57%]\ntests/test_routes.py ................................................... [ 60%]\n........................................................................ [ 64%]\n...................................... [ 67%]\ntests/test_server_events.py .................... [ 68%]\ntests/test_server_loop.py ss.. [ 68%]\ntests/test_signal_handlers.py ...... [ 69%]\ntests/test_signals.py ................................................. [ 72%]\ntests/test_static.py ..........sssss.................................... [ 75%]\n.......................................s [ 77%]\ntests/test_static_directory.py ....... [ 77%]\ntests/test_tasks.py ...... [ 78%]\ntests/test_test_client_port.py .. [ 78%]\ntests/test_timeout_logic.py ..... [ 78%]\ntests/test_tls.py ........xxx................................... [ 81%]\ntests/test_touchup.py ......... [ 81%]\ntests/test_unix_socket.py x........ [ 82%]\ntests/test_url_building.py ........................... [ 84%]\ntests/test_url_for.py ......... [ 84%]\ntests/test_url_for_static.py ..................... [ 85%]\ntests/test_utf8.py ... [ 86%]\ntests/test_utils.py ...... [ 86%]\ntests/test_versioning.py .............. [ 87%]\ntests/test_vhosts.py ... [ 87%]\ntests/test_views.py ................... [ 88%]\ntests/test_websockets.py ......................FFF...... [ 90%]\ntests/test_ws_handlers.py ........ [ 91%]\ntests/benchmark/test_route_resolution_benchmark.py .. [ 91%]\ntests/http3/test_http_receiver.py ............ [ 91%]\ntests/http3/test_server.py .... [ 92%]\ntests/http3/test_session_ticket_store.py . [ 92%]\ntests/typing/test_typing.py ....... [ 92%]\ntests/worker/test_inspector.py ......... [ 93%]\ntests/worker/test_loader.py ............ [ 93%]\ntests/worker/test_manager.py ................ [ 94%]\ntests/worker/test_multiplexer.py ................. [ 95%]\ntests/worker/test_reloader.py .......... [ 96%]\ntests/worker/test_runner.py .... [ 96%]\ntests/worker/test_shared_ctx.py ............... [ 97%]\ntests/worker/test_socket.py .. [ 97%]\ntests/worker/test_startup.py ......... [ 98%]\ntests/worker/test_state.py .................... [ 99%]\ntests/worker/test_worker_serve.py ......... [100%]\n\n=================================== FAILURES ===================================\n___________________ test_ws_frame_put_message_into_queue[0] ____________________\n\nopcode = <Opcode.CONT: 0>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='140154738813136'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[1] ____________________\n\nopcode = <Opcode.TEXT: 1>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='140154738678896'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[2] ____________________\n\nopcode = <Opcode.BINARY: 2>\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <AsyncMock name='mock.put' id='140154738612448'>, name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n=============================== warnings summary ===============================\ntests/test_app.py: 9 warnings\ntests/test_asgi.py: 14 warnings\ntests/test_bad_request.py: 1 warning\ntests/test_blueprint_copy.py: 2 warnings\ntests/test_blueprint_group.py: 3 warnings\ntests/test_blueprints.py: 39 warnings\ntests/test_cancellederror.py: 1 warning\ntests/test_cli.py: 22 warnings\ntests/test_coffee.py: 1 warning\ntests/test_config.py: 2 warnings\ntests/test_constants.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_create_task.py: 4 warnings\ntests/test_custom_request.py: 1 warning\ntests/test_dynamic_routes.py: 3 warnings\ntests/test_errorpages.py: 18 warnings\ntests/test_exceptions.py: 341 warnings\ntests/test_exceptions_handler.py: 9 warnings\ntests/test_ext_integration.py: 4 warnings\ntests/test_graceful_shutdown.py: 2 warnings\ntests/test_handler.py: 1 warning\ntests/test_handler_annotations.py: 4 warnings\ntests/test_headers.py: 3 warnings\ntests/test_http.py: 3 warnings\ntests/test_http_alt_svc.py: 1 warning\ntests/test_json_decoding.py: 1 warning\ntests/test_keep_alive_timeout.py: 84 warnings\ntests/test_logging.py: 14 warnings\ntests/test_middleware.py: 15 warnings\ntests/test_middleware_priority.py: 46 warnings\ntests/test_multiprocessing.py: 6 warnings\ntests/test_named_routes.py: 1 warning\ntests/test_payload_too_large.py: 3 warnings\ntests/test_pipelining.py: 4 warnings\ntests/test_redirect.py: 9 warnings\ntests/test_request.py: 13 warnings\ntests/test_request_cancel.py: 2 warnings\ntests/test_request_data.py: 2 warnings\ntests/test_request_stream.py: 9 warnings\ntests/test_requests.py: 128 warnings\ntests/test_response.py: 58 warnings\ntests/test_response_json.py: 16 warnings\ntests/test_response_timeout.py: 4 warnings\ntests/test_routes.py: 69 warnings\ntests/test_server_events.py: 15 warnings\ntests/test_signal_handlers.py: 3 warnings\ntests/test_signals.py: 5 warnings\ntests/test_static.py: 79 warnings\ntests/test_static_directory.py: 6 warnings\ntests/test_tasks.py: 1 warning\ntests/test_test_client_port.py: 2 warnings\ntests/test_tls.py: 13 warnings\ntests/test_touchup.py: 6 warnings\ntests/test_unix_socket.py: 4 warnings\ntests/test_url_building.py: 11 warnings\ntests/test_url_for.py: 3 warnings\ntests/test_url_for_static.py: 21 warnings\ntests/test_utf8.py: 3 warnings\ntests/test_versioning.py: 14 warnings\ntests/test_vhosts.py: 3 warnings\ntests/test_views.py: 19 warnings\ntests/test_ws_handlers.py: 8 warnings\ntests/http3/test_server.py: 3 warnings\ntests/worker/test_inspector.py: 6 warnings\ntests/worker/test_multiplexer.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:70: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n if hasattr(event, \"s\"):\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 18 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py::test_cookie_customization\ntests/test_cookies.py::test_false_cookies_encoded[False-False]\ntests/test_cookies.py::test_false_cookies_encoded[True-True]\ntests/test_cookies.py::test_false_cookies[False-False]\ntests/test_cookies.py::test_false_cookies[True-True]\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.httponly=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n return super().__new__(cls)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n return super().__new__(cls)\n\ntests/test_cli.py: 21 warnings\ntests/test_exceptions.py: 336 warnings\ntests/test_keep_alive_timeout.py: 84 warnings\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:71: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n event_name = getattr(event, \"value\", event.s)\n\ntests/test_cookies.py::test_cookies\ntests/test_cookies.py::test_cookies_asgi\ntests/test_cookies.py::test_http2_cookies\ntests/test_requests.py::test_request_cookies\ntests/test_requests.py::test_request_cookies_asgi\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'test', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['test'] to request.cookies.get('test'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py: 12 warnings\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Direct encoding of a Cookie object has been deprecated and will be removed in v24.3.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_expires[expires0]\ntests/test_cookies.py::test_cookie_expires_illegal_instance_type[Fri, 21-Dec-2018 15:30:00 GMT]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.expires=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_deletion\ntests/test_cookies.py::test_cookie_jar_old_school_delete_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Deleting cookie values using the dict pattern has been deprecated. You should instead use the cookies.delete_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_set_unknown_property\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.invalid=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[0]\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\ntests/test_cookies.py::test_cookie_bad_max_age[30.0]\ntests/test_cookies.py::test_cookie_bad_max_age[30.1]\ntests/test_cookies.py::test_cookie_bad_max_age[test]\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.max-age=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:210: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:217: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n expires = datetime.utcnow().replace(microsecond=0) + timedelta(\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:249: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).\n expires_time = datetime.utcnow().replace(microsecond=0) + expires\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:263: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one; foo=two]\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one;foo=two]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'foo', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['foo'] to request.cookies.get('foo'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.domain=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.path=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.secure=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.samesite=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'one', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['one'] to request.cookies.get('one'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'two', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['two'] to request.cookies.get('two'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'three', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['three'] to request.cookies.get('three'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_custom_request.py: 1 warning\ntests/test_payload_too_large.py: 1 warning\ntests/test_pipelining.py: 2 warnings\ntests/test_request_stream.py: 28 warnings\ntests/test_requests.py: 41 warnings\ntests/test_utf8.py: 1 warning\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.\n warnings.warn(message, DeprecationWarning)\n\ntests/test_errorpages.py::test_guess_mime_logging[-auto-*/*-The client accepts */*, using 'json' from request.json]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Response type was determined by the JSON content of the request. This behavior is deprecated and will be removed in v24.3. Please specify the format either by\n error_format=\"json\" on route fakeroute, by\n FALLBACK_ERROR_FORMAT = \"json\", or by adding header\n accept: application/json to your requests.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_multiprocessing.py: 16 warnings\ntests/test_tls.py: 4 warnings\ntests/test_unix_socket.py: 3 warnings\ntests/worker/test_multiplexer.py: 2 warnings\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=13875) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n\ntests/test_signals.py::test_add_signal_method_handler\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:2185: RuntimeWarning: coroutine 'Loop.create_server' was never awaited\n def __init__(self, name, parent):\n\ntests/test_tasks.py::test_purge_tasks\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/pytest_sanic/plugin.py:76: RuntimeWarning: coroutine 'dummy' was never awaited\n loop.run_until_complete(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_url_attributes_with_ssl_context[/foo--https://{}:{}/foo]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/logging/__init__.py:234: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n def _acquireLock():\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n context = ssl.SSLContext()\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n context = ssl.SSLContext()\n\ntests/test_websockets.py::test_ws_frame_put_fetched[0]\ntests/test_websockets.py::test_ws_frame_put_fetched[1]\ntests/test_websockets.py::test_ws_frame_put_fetched[2]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[0]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[1]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[2]\n /home/runner/work/sanic/sanic/sanic/server/websockets/frame.py:291: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited\n self.message_fetched.clear()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_send_headers\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:2185: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, name, parent):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_stream_id\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/logging/__init__.py:452: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n if not self.validation_pattern.search(self._fmt):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_conn_info\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/weakref.py:117: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n self._iterating = set()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_header_encoding\n /home/runner/work/sanic/sanic/sanic/mixins/routes.py:42: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def route(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------------------------------------------------------------------------------------------------- benchmark: 2 tests ----------------------------------------------------------------------------------------------------\nName (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_resolve_route_no_arg_string_path 984.4250 (1.0) 22,370.3520 (1.93) 1,050.0664 (1.02) 684.2489 (2.04) 1,015.0820 (1.0) 14.0510 (1.38) 12;48 952.3207 (0.98) 1000 1000\ntest_resolve_route_with_typed_args 991.6080 (1.01) 11,604.6940 (1.0) 1,030.1549 (1.0) 334.9181 (1.0) 1,019.3110 (1.00) 10.2095 (1.0) 1;26 970.7278 (1.0) 1000 1000\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\nLegend:\n Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.\n OPS: Operations Per Second, computed as 1 / Mean\n=========================== short test summary info ============================\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[0] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[1] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[2] - At...\n= 3 failed, 1638 passed, 9 skipped, 11 xfailed, 1889 warnings in 214.41s (0:03:34) =\npy312: exit 1 (218.00 seconds) /home/runner/work/sanic/sanic> coverage run --source ./sanic -m pytest tests pid=13875\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n py312: FAIL code 1 (219.63=setup[1.63]+cmd[218.00] seconds)\n evaluation failed :( (219.78 seconds)\n##[error]Final attempt failed. Child_process exited with error code 1\n"
}
] | diff --git a/sanic/__version__.py b/sanic/__version__.py
index 1cea76e9..5e62ad89 100644
--- a/sanic/__version__.py
+++ b/sanic/__version__.py
@@ -1 +1 @@
-__version__ = "23.12.0"
+__version__ = "23.12.1"
diff --git a/tests/test_websockets.py b/tests/test_websockets.py
index dd8413b9..5809cfc0 100644
--- a/tests/test_websockets.py
+++ b/tests/test_websockets.py
@@ -5,7 +5,7 @@ from unittest.mock import Mock, call
import pytest
-from websockets.frames import CTRL_OPCODES, DATA_OPCODES, Frame
+from websockets.frames import CTRL_OPCODES, DATA_OPCODES, Frame, OP_TEXT
from sanic.exceptions import ServerError
from sanic.server.websockets.frame import WebsocketFrameAssembler
@@ -210,17 +210,14 @@ async def test_ws_frame_put_message_complete(opcode):
@pytest.mark.asyncio
@pytest.mark.parametrize("opcode", DATA_OPCODES)
async def test_ws_frame_put_message_into_queue(opcode):
+ foo = 'foo' if (opcode == OP_TEXT) else b"foo"
assembler = WebsocketFrameAssembler(Mock())
assembler.chunks_queue = AsyncMock(spec=Queue)
assembler.message_fetched = AsyncMock()
assembler.message_fetched.is_set = Mock(return_value=False)
-
await assembler.put(Frame(opcode, b"foo"))
- assembler.chunks_queue.put.has_calls(
- call(b"foo"),
- call(None),
- )
+ assert assembler.chunks_queue.put.call_args_list == [call(foo), call(None)]
@pytest.mark.asyncio
| 2 | [
"sanic/__version__.py",
"tests/test_websockets.py"
] | https://github.com/sanic-org/sanic/tree/2e41e783672597e2e0c7b2842b5934d879374028 | 2023-12-17T22:26:10Z |
Python | 23 | tornadoweb | tornado | iostream-hostname-test | Test | test.yml | .github/workflows/test.yml | bdarnell | d1b0280fb92d0d8590cf403ca46af3550507d4d2 | 2da0a9912bc5207e2ac8207b40035377de3e1cd5 | "# The \"test\" workflow is run on every PR and runs tests across all\n# supported python versions a(...TRUNCATED) | [{"step_name":"Run windows tests/4_Run test suite.txt","log":"##[group]Run py -m tornado.test --fail(...TRUNCATED) | "diff --git a/tornado/test/iostream_test.py b/tornado/test/iostream_test.py\nindex 02318db3..02fcd3e(...TRUNCATED) | 3 | [
"tornado/test/iostream_test.py"
] | https://github.com/tornadoweb/tornado/tree/d1b0280fb92d0d8590cf403ca46af3550507d4d2 | 2023-11-14T03:15:55Z |
Python | 24 | canonical | cloud-init | wsl-datasource | Lint Tests | check_format.yml | .github/workflows/check_format.yml | CarlosNihelton | f18f82de3e0270f6dfddf22f1f487104b2428e35 | a56c2fa8719ba2bffef04b4355cd5fd459eb946e | "name: Lint Tests\non:\n pull_request:\n push:\n branches:\n - main\n\nconcurrency:\n gro(...TRUNCATED) | [{"step_name":"Check ruff/6_Test.txt","log":"##[group]Run tox\n\u001b[36;1mtox\u001b[0m\nshell: /usr(...TRUNCATED) | "diff --git a/tests/unittests/sources/test_wsl.py b/tests/unittests/sources/test_wsl.py\nindex 9653c(...TRUNCATED) | 0 | [
"tests/unittests/sources/test_wsl.py"
] | https://github.com/canonical/cloud-init/tree/f18f82de3e0270f6dfddf22f1f487104b2428e35 | 2024-01-18T13:21:59Z |
Python | 25 | canonical | cloud-init | main | Lint Tests | check_format.yml | .github/workflows/check_format.yml | ani-sinha | 55d2e8d4abb024997be878797d5625effad65d43 | 9b3b3632cb86b74b79ed2b1fb3672a9f50604992 | "name: Lint Tests\non:\n pull_request:\n push:\n branches:\n - main\n\nconcurrency:\n gro(...TRUNCATED) | [{"step_name":"Check pylint/6_Test.txt","log":"##[group]Run tox\n\u001b[36;1mtox\u001b[0m\nshell: /u(...TRUNCATED) | "diff --git a/tests/unittests/test_net_activators.py b/tests/unittests/test_net_activators.py\nindex(...TRUNCATED) | 1 | [
"tests/unittests/test_net_activators.py"
] | https://github.com/canonical/cloud-init/tree/55d2e8d4abb024997be878797d5625effad65d43 | 2023-12-07T12:43:24Z |
Python | 26 | canonical | cloud-init | holman/dhcpcd | Lint Tests | check_format.yml | .github/workflows/check_format.yml | holmanb | 385c14d0ae500918cff5565ea836884bfaa2bfa5 | 0193e09ca15ed70a351203ab6f21dc52a60d6253 | "name: Lint Tests\non:\n pull_request:\n push:\n branches:\n - main\n\nconcurrency:\n gro(...TRUNCATED) | [{"step_name":"Check pylint/6_Test.txt","log":"##[group]Run tox\n\u001b[36;1mtox\u001b[0m\nshell: /u(...TRUNCATED) | "diff --git a/cloudinit/net/dhcp.py b/cloudinit/net/dhcp.py\nindex 1b8caee4f..6a4e5a3fa 100644\n--- (...TRUNCATED) | 0 | [
"cloudinit/net/dhcp.py",
"tests/unittests/net/test_dhcp.py"
] | https://github.com/canonical/cloud-init/tree/385c14d0ae500918cff5565ea836884bfaa2bfa5 | 2024-01-06T01:46:19Z |
Python | 27 | canonical | cloud-init | holman/dhcpcd | Lint Tests | check_format.yml | .github/workflows/check_format.yml | holmanb | 4d5898b8a73c93e1ed4434744c2fa7c3f7fbd501 | 2bd296ef8983a716a7b8d107571181333f093109 | "name: Lint Tests\non:\n pull_request:\n push:\n branches:\n - main\n\nconcurrency:\n gro(...TRUNCATED) | [{"step_name":"Check pylint/6_Test.txt","log":"##[group]Run tox\n\u001b[36;1mtox\u001b[0m\nshell: /u(...TRUNCATED) | "diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py\nindex 5c891f26e..c02166(...TRUNCATED) | 0 | ["cloudinit/distros/__init__.py","cloudinit/net/dhcp.py","cloudinit/sources/__init__.py","tests/unit(...TRUNCATED) | https://github.com/canonical/cloud-init/tree/4d5898b8a73c93e1ed4434744c2fa7c3f7fbd501 | 2024-01-12T20:05:57Z |
Python | 29 | canonical | cloud-init | main | Lint Tests | check_format.yml | .github/workflows/check_format.yml | phsm | ecb486addc70aecc9b28f2b30a77eaf2fd587091 | 5e42147f3332b7694dacaada70f86a21f709d139 | "name: Lint Tests\non:\n pull_request:\n push:\n branches:\n - main\n\nconcurrency:\n gro(...TRUNCATED) | [{"step_name":"Check mypy/6_Test.txt","log":"##[group]Run tox\n\u001b[36;1mtox\u001b[0m\nshell: /usr(...TRUNCATED) | "diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py\nindex 9a073742c..c857a8(...TRUNCATED) | 2 | [
"cloudinit/distros/__init__.py",
"cloudinit/sources/DataSourceCloudStack.py"
] | https://github.com/canonical/cloud-init/tree/ecb486addc70aecc9b28f2b30a77eaf2fd587091 | 2024-01-05T08:18:36Z |
๐๏ธ Long Code Arena (CI builds repair)
This is the benchmark for CI builds repair task as part of the ๐๏ธ Long Code Arena benchmark.
๐ ๏ธ Task. Given the logs of a failed GitHub Actions workflow and the corresponding repository snapshot, repair the repository contents in order to make the workflow pass.
All the data is collected from repositories published under permissive licenses (MIT, Apache-2.0, BSD-3-Clause, and BSD-2-Clause). The datapoints can be removed upon request.
To score your model on this dataset, you can use CI build repair benchmark. ๐ฉ If you have any questions or requests concerning this dataset, please contact [email protected]
How-to
List all the available configs
via datasets.get_dataset_config_names
and choose an appropriate one.
Current configs: python
Load the data
via load_dataset
:
from datasets import load_dataset
dataset = load_dataset("JetBrains-Research/lca-ci-builds-repair", split="test")
Note that all the data we have is considered to be in the test split.
NOTE: If you encounter any errors with loading the dataset on Windows, update the datasets
library (was tested on datasets==2.16.1
)
Usage
For the dataset usage please refer to our CI builds repair benchmark. Its workflow is following:
- Repairs repo by fix_repo_function function that utilizes repo state and logs of fails;
- Sends the datapoints to GitHub to run workflows;
- Requests results from GitHub;
- Analyzes results and prints them;
- Clones the necessary repos to the user's local machine.
The user should run their model to repair the failing CI workflows, and the benchmark will push commits to GitHub, returning the results of the workflow runs for all the datapoints.
Dataset Structure
This dataset contains logs of the failed GitHub Action workflows for some commits followed by the commit that passes the workflow successfully.
Note that, unlike other ๐๏ธ Long Code Arena datasets, this dataset does not contain repositories.
Datapoint Schema
Each example has the following fields:
Field | Description |
---|---|
contributor |
Username of the contributor that committed changes |
difficulty |
Difficulty of the problem (assessor-based. 1 means that the repair requires only the code formatting) |
diff |
Contents of the diff between the failed and the successful commits |
head_branch |
Name of the original branch that the commit was pushed at |
id |
Unique ID of the datapoint |
language |
Main language of the repository |
logs |
List of dicts with keys log (logs of the failed job, particular step) and step_name (name of the failed step of the job) |
repo_name |
Name of the original repository (second part of the owner/name on GitHub) |
repo owner |
Owner of the original repository (first part of the owner/name on GitHub) |
sha_fail |
SHA of the failed commit |
sha_success |
SHA of the successful commit |
workflow |
Contents of the workflow file |
workflow_filename |
The name of the workflow file (without directories) |
workflow_name |
The name of the workflow |
workflow_path |
The full path to the workflow file |
changed_files |
List of files changed in diff |
commit_link |
URL to commit corresponding to failed job |
Datapoint Example
{'contributor': 'Gallaecio',
'diff': 'diff --git a/scrapy/crawler.py b/scrapy/crawler.py/n<...>',
'difficulty': '2',
'head_branch': 'component-getters',
'id': 18,
'language': 'Python',
'logs': [{'log': '##[group]Run pip install -U tox\n<...>',
'step_name': 'checks (3.12, pylint)/4_Run check.txt'}],
'repo_name': 'scrapy',
'repo_owner': 'scrapy',
'sha_fail': '0f71221cf9875ed8ef3400e1008408e79b6691e6',
'sha_success': 'c1ba9ccdf916b89d875628ba143dc5c9f6977430',
'workflow': 'name: Checks\non: [push, pull_request]\n\n<...>',
'workflow_filename': 'checks.yml',
'workflow_name': 'Checks',
'workflow_path': '.github/workflows/checks.yml',
'changed_files': ["scrapy/crawler.py"],
'commit_link': "https://github.com/scrapy/scrapy/tree/0f71221cf9875ed8ef3400e1008408e79b6691e6"}
Citing
@article{bogomolov2024long,
title={Long Code Arena: a Set of Benchmarks for Long-Context Code Models},
author={Bogomolov, Egor and Eliseeva, Aleksandra and Galimzyanov, Timur and Glukhov, Evgeniy and Shapkin, Anton and Tigina, Maria and Golubev, Yaroslav and Kovrigin, Alexander and van Deursen, Arie and Izadi, Maliheh and Bryksin, Timofey},
journal={arXiv preprint arXiv:2406.11612},
year={2024}
}
You can find the paper here.
- Downloads last month
- 107