Working version of aiohttp upgrade #140
Draft
Google Cloud Build / kagglehub-branch-3-7-17 (kaggle-cicd)
failed
Jul 3, 2024 in 1m 5s
Summary
Build Information
Trigger | kagglehub-branch-3-7-17 |
Build | f74bd2d3-c2a2-405e-af69-1c7b93f32ebc |
Start | 2024-07-03T03:31:15-07:00 |
Duration | 1m2.635s |
Status | FAILURE |
Steps
Step | Status | Duration |
---|---|---|
check_substitutions | SUCCESS | 27.488s |
build-hatch-image | SUCCESS | 2.03s |
tests | CANCELLED | 29.562s |
lint | FAILURE | 28.777s |
Details
starting build "f74bd2d3-c2a2-405e-af69-1c7b93f32ebc"
FETCHSOURCE
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /workspace/.git/
From https://github.com/Kaggle/kagglehub
* branch 997f88da6db69faef574751c9cc1a2b07786208b -> FETCH_HEAD
HEAD is now at 997f88d Working version of aiohttp upgrade
BUILD
Starting Step #0 - "check_substitutions"
Step #0 - "check_substitutions": Already have image (with digest): gcr.io/cloud-builders/docker
Step #0 - "check_substitutions": 3.7.17: Pulling from kaggle-cicd/tools/hatch
Step #0 - "check_substitutions": 167b8a53ca45: Pulling fs layer
Step #0 - "check_substitutions": b47a222d28fa: Pulling fs layer
Step #0 - "check_substitutions": debce5f9f3a9: Pulling fs layer
Step #0 - "check_substitutions": 1d7ca7cd2e06: Pulling fs layer
Step #0 - "check_substitutions": ff3119008f58: Pulling fs layer
Step #0 - "check_substitutions": c2423a76a32b: Pulling fs layer
Step #0 - "check_substitutions": e1c98ca4926a: Pulling fs layer
Step #0 - "check_substitutions": 3b62c8e1d79b: Pulling fs layer
Step #0 - "check_substitutions": c13b37bb483e: Pulling fs layer
Step #0 - "check_substitutions": 1d7ca7cd2e06: Waiting
Step #0 - "check_substitutions": ff3119008f58: Waiting
Step #0 - "check_substitutions": c2423a76a32b: Waiting
Step #0 - "check_substitutions": e1c98ca4926a: Waiting
Step #0 - "check_substitutions": 3b62c8e1d79b: Waiting
Step #0 - "check_substitutions": c13b37bb483e: Waiting
Step #0 - "check_substitutions": b47a222d28fa: Download complete
Step #0 - "check_substitutions": 167b8a53ca45: Verifying Checksum
Step #0 - "check_substitutions": 167b8a53ca45: Download complete
Step #0 - "check_substitutions": ff3119008f58: Verifying Checksum
Step #0 - "check_substitutions": ff3119008f58: Download complete
Step #0 - "check_substitutions": debce5f9f3a9: Verifying Checksum
Step #0 - "check_substitutions": debce5f9f3a9: Download complete
Step #0 - "check_substitutions": e1c98ca4926a: Verifying Checksum
Step #0 - "check_substitutions": e1c98ca4926a: Download complete
Step #0 - "check_substitutions": c2423a76a32b: Verifying Checksum
Step #0 - "check_substitutions": c2423a76a32b: Download complete
Step #0 - "check_substitutions": 3b62c8e1d79b: Verifying Checksum
Step #0 - "check_substitutions": 3b62c8e1d79b: Download complete
Step #0 - "check_substitutions": c13b37bb483e: Verifying Checksum
Step #0 - "check_substitutions": c13b37bb483e: Download complete
Step #0 - "check_substitutions": 1d7ca7cd2e06: Verifying Checksum
Step #0 - "check_substitutions": 1d7ca7cd2e06: Download complete
Step #0 - "check_substitutions": 167b8a53ca45: Pull complete
Step #0 - "check_substitutions": b47a222d28fa: Pull complete
Step #0 - "check_substitutions": debce5f9f3a9: Pull complete
Step #0 - "check_substitutions": 1d7ca7cd2e06: Pull complete
Step #0 - "check_substitutions": ff3119008f58: Pull complete
Step #0 - "check_substitutions": c2423a76a32b: Pull complete
Step #0 - "check_substitutions": e1c98ca4926a: Pull complete
Step #0 - "check_substitutions": 3b62c8e1d79b: Pull complete
Step #0 - "check_substitutions": c13b37bb483e: Pull complete
Step #0 - "check_substitutions": Digest: sha256:900a099f97554ed4c7d764d10f7002ade1a727a7500fbc8074ef1cceac14f1b6
Step #0 - "check_substitutions": Status: Downloaded newer image for us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.7.17
Step #0 - "check_substitutions": us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.7.17
Finished Step #0 - "check_substitutions"
Starting Step #1 - "build-hatch-image"
Step #1 - "build-hatch-image": Already have image (with digest): gcr.io/cloud-builders/docker
Step #1 - "build-hatch-image": Sending build context to Docker daemon 6.656kB
Step #1 - "build-hatch-image": Step 1/4 : ARG PYTHON_VERSION
Step #1 - "build-hatch-image": Step 2/4 : FROM python:${PYTHON_VERSION}
Step #1 - "build-hatch-image": 3.7.17: Pulling from library/python
Step #1 - "build-hatch-image": 167b8a53ca45: Already exists
Step #1 - "build-hatch-image": b47a222d28fa: Already exists
Step #1 - "build-hatch-image": debce5f9f3a9: Already exists
Step #1 - "build-hatch-image": 1d7ca7cd2e06: Already exists
Step #1 - "build-hatch-image": ff3119008f58: Already exists
Step #1 - "build-hatch-image": c2423a76a32b: Already exists
Step #1 - "build-hatch-image": e1c98ca4926a: Already exists
Step #1 - "build-hatch-image": 3b62c8e1d79b: Already exists
Step #1 - "build-hatch-image": Digest: sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0
Step #1 - "build-hatch-image": Status: Downloaded newer image for python:3.7.17
Step #1 - "build-hatch-image": ---> 16d93ae3411b
Step #1 - "build-hatch-image": Step 3/4 : RUN python -m pip install hatch twine
Step #1 - "build-hatch-image": ---> Using cache
Step #1 - "build-hatch-image": ---> 689f36cabd67
Step #1 - "build-hatch-image": Step 4/4 : ENTRYPOINT ["hatch"]
Step #1 - "build-hatch-image": ---> Using cache
Step #1 - "build-hatch-image": ---> 0b79f9b2ce27
Step #1 - "build-hatch-image": Successfully built 0b79f9b2ce27
Step #1 - "build-hatch-image": Successfully tagged us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.7.17
Finished Step #1 - "build-hatch-image"
Starting Step #2 - "tests"
Starting Step #3 - "lint"
Step #3 - "lint": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.7.17
Step #2 - "tests": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.7.17
Step #3 - "lint": Creating environment: lint
Step #2 - "tests": Creating environment: default
Step #3 - "lint": Checking dependencies
Step #2 - "tests": Installing project in development mode
Step #3 - "lint": Syncing dependencies
Step #3 - "lint": cmd [1] | ruff check .
Step #3 - "lint": src/kagglehub/auth.py:1:1: I001 [*] Import block is un-sorted or un-formatted
Step #3 - "lint": |
Step #3 - "lint": 1 | / import io
Step #3 - "lint": 2 | | import logging
Step #3 - "lint": 3 | | from contextlib import contextmanager
Step #3 - "lint": 4 | | from typing import Generator
Step #3 - "lint": 5 | |
Step #3 - "lint": 6 | | from kagglehub.clients import KaggleApiV1Client
Step #3 - "lint": 7 | | from kagglehub.config import get_kaggle_credentials, set_kaggle_credentials
Step #3 - "lint": 8 | | from kagglehub.exceptions import UnauthenticatedError
Step #3 - "lint": 9 | |
Step #3 - "lint": 10 | | from aiohttp import ClientSession
Step #3 - "lint": 11 | |
Step #3 - "lint": 12 | | _logger = logging.getLogger(__name__)
Step #3 - "lint": | |_^ I001
Step #3 - "lint": 13 |
Step #3 - "lint": 14 | INVALID_CREDENTIALS_ERROR = 401
Step #3 - "lint": |
Step #3 - "lint": = help: Organize imports
Step #3 - "lint":
Step #3 - "lint": src/kagglehub/colab_cache_resolver.py:1:1: I001 [*] Import block is un-sorted or un-formatted
Step #3 - "lint": |
Step #3 - "lint": 1 | / import logging
Step #3 - "lint": 2 | | import os
Step #3 - "lint": 3 | | from typing import Optional
Step #3 - "lint": 4 | |
Step #3 - "lint": 5 | | from kagglehub.clients import ColabClient
Step #3 - "lint": 6 | | from kagglehub.config import is_colab_cache_disabled
Step #3 - "lint": 7 | | from kagglehub.exceptions import BackendError, NotFoundError
Step #3 - "lint": 8 | | from kagglehub.handle import ModelHandle
Step #3 - "lint": 9 | | from kagglehub.resolver import Resolver
Step #3 - "lint": 10 | |
Step #3 - "lint": 11 | | from aiohttp import ClientSession
Step #3 - "lint": 12 | |
Step #3 - "lint": 13 | | COLAB_CACHE_MOUNT_FOLDER_ENV_VAR_NAME = "COLAB_CACHE_MOUNT_FOLDER"
Step #3 - "lint": | |_^ I001
Step #3 - "lint": 14 | DEFAULT_COLAB_CACHE_MOUNT_FOLDER = "/kaggle/input"
Step #3 - "lint": |
Step #3 - "lint": = help: Organize imports
Step #3 - "lint":
Step #3 - "lint": src/kagglehub/gcs_upload.py:1:1: I001 [*] Import block is un-sorted or un-formatted
Step #3 - "lint": |
Step #3 - "lint": 1 | / import logging
Step #3 - "lint": 2 | | import os
Step #3 - "lint": 3 | | import time
Step #3 - "lint": 4 | | import zipfile
Step #3 - "lint": 5 | | from datetime import datetime
Step #3 - "lint": 6 | | from tempfile import TemporaryDirectory
Step #3 - "lint": 7 | | from typing import Dict, List, Optional, Union
Step #3 - "lint": 8 | |
Step #3 - "lint": 9 | | import requests
Step #3 - "lint": 10 | | from aiohttp import ClientSession
Step #3 - "lint": 11 | | from requests.exceptions import ConnectionError, Timeout
Step #3 - "lint": 12 | | from tqdm import tqdm
Step #3 - "lint": 13 | | from tqdm.utils import CallbackIOWrapper
Step #3 - "lint": 14 | | import asyncio
Step #3 - "lint": 15 | |
Step #3 - "lint": 16 | | from kagglehub.clients import KaggleApiV1Client
Step #3 - "lint": 17 | | from kagglehub.exceptions import BackendError
Step #3 - "lint": 18 | |
Step #3 - "lint": 19 | | logger = logging.getLogger(__name__)
Step #3 - "lint": | |_^ I001
Step #3 - "lint": 20 |
Step #3 - "lint": 21 | MAX_FILES_TO_UPLOAD = 50
Step #3 - "lint": |
Step #3 - "lint": = help: Organize imports
Step #3 - "lint":
Step #3 - "lint": src/kagglehub/gcs_upload.py:14:8: F401 `asyncio` imported but unused
Step #3 - "lint": |
Step #3 - "lint": 12 | from tqdm import tqdm
Step #3 - "lint": 13 | from tqdm.utils import CallbackIOWrapper
Step #3 - "lint": 14 | import asyncio
Step #3 - "lint": | ^^^^^^^ F401
Step #3 - "lint": 15 |
Step #3 - "lint": 16 | from kagglehub.clients import KaggleApiV1Client
Step #3 - "lint": |
Step #3 - "lint": = help: Remove unused import: `asyncio`
Step #3 - "lint":
Step #3 - "lint": src/kagglehub/models_helpers.py:1:1: I001 [*] Import block is un-sorted or un-formatted
Step #3 - "lint": |
Step #3 - "lint": 1 | / import logging
Step #3 - "lint": 2 | | from http import HTTPStatus
Step #3 - "lint": 3 | | from typing import Optional
Step #3 - "lint": 4 | |
Step #3 - "lint": 5 | | from aiohttp import ClientSession
Step #3 - "lint": 6 | |
Step #3 - "lint": 7 | | from kagglehub.clients import BackendError, KaggleApiV1Client
Step #3 - "lint": 8 | | from kagglehub.exceptions import KaggleApiHTTPError, KaggleApiHTTP1Error
Step #3 - "lint": 9 | | from kagglehub.gcs_upload import UploadDirectoryInfo
Step #3 - "lint": 10 | | from kagglehub.handle import ModelHandle
Step #3 - "lint": 11 | |
Step #3 - "lint": 12 | | logger = logging.getLogger(__name__)
Step #3 - "lint": | |_^ I001
Step #3 - "lint": |
Step #3 - "lint": = help: Organize imports
Step #3 - "lint":
Step #3 - "lint": tests/test_kaggle_api_client.py:1:1: I001 [*] Import block is un-sorted or un-formatted
Step #3 - "lint": |
Step #3 - "lint": 1 | / import os
Step #3 - "lint": 2 | | from tempfile import TemporaryDirectory
Step #3 - "lint": 3 | |
Step #3 - "lint": 4 | | from kagglehub.clients import KaggleApiV1Client
Step #3 - "lint": 5 | | from kagglehub.exceptions import DataCorruptionError
Step #3 - "lint": 6 | | from tests.fixtures import BaseTestCase
Step #3 - "lint": 7 | |
Step #3 - "lint": 8 | | from .server_stubs import kaggle_api_stub as stub
Step #3 - "lint": 9 | | from .server_stubs import serv
Step #3 - "lint": 10 | |
Step #3 - "lint": 11 | | from aiohttp import ClientSession
Step #3 - "lint": 12 | |
Step #3 - "lint": 13 | |
Step #3 - "lint": 14 | | class TestKaggleApiV1Client(BaseTestCase):
Step #3 - "lint": | |_^ I001
Step #3 - "lint": 15 | @classmethod
Step #3 - "lint": 16 | def setUpClass(cls):
Step #3 - "lint": |
Step #3 - "lint": = help: Organize imports
Step #3 - "lint":
Step #3 - "lint": Found 6 errors.
Step #3 - "lint": [*] 5 fixable with the `--fix` option.
Finished Step #3 - "lint"
ERROR
ERROR: build step 3 "us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.7.17" failed: step exited with non-zero status: 1
Loading