Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working version of aiohttp upgrade #140

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Working version of aiohttp upgrade

997f88d
Select commit
Loading
Failed to load commit list.
Draft

Working version of aiohttp upgrade #140

Working version of aiohttp upgrade
997f88d
Select commit
Loading
Failed to load commit list.
Google Cloud Build / kagglehub-branch-3-11-6 (kaggle-cicd) failed Jul 3, 2024 in 52s

Summary

Build Information

Trigger kagglehub-branch-3-11-6
Build 66cd8e0f-6671-442a-a4c8-0f622796afc5
Start 2024-07-03T03:31:15-07:00
Duration 49.29s
Status FAILURE

Steps

Step Status Duration
check_substitutions SUCCESS 27.562s
build-hatch-image SUCCESS 1.138s
tests CANCELLED 17.611s
lint FAILURE 16.971s

Details

starting build "66cd8e0f-6671-442a-a4c8-0f622796afc5"

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.11.6: Pulling from kaggle-cicd/tools/hatch
Step #0 - "check_substitutions": 90e5e7d8b87a: Pulling fs layer
Step #0 - "check_substitutions": 27e1a8ca91d3: Pulling fs layer
Step #0 - "check_substitutions": d3a767d1d12e: Pulling fs layer
Step #0 - "check_substitutions": 711be5dc5044: Pulling fs layer
Step #0 - "check_substitutions": 48b2d58a56e9: Pulling fs layer
Step #0 - "check_substitutions": f4b2d251d97d: Pulling fs layer
Step #0 - "check_substitutions": 289cc84fca99: Pulling fs layer
Step #0 - "check_substitutions": d2774833febd: Pulling fs layer
Step #0 - "check_substitutions": d6a6af5c9fc9: Pulling fs layer
Step #0 - "check_substitutions": 711be5dc5044: Waiting
Step #0 - "check_substitutions": 48b2d58a56e9: Waiting
Step #0 - "check_substitutions": f4b2d251d97d: Waiting
Step #0 - "check_substitutions": d6a6af5c9fc9: Waiting
Step #0 - "check_substitutions": 289cc84fca99: Waiting
Step #0 - "check_substitutions": d2774833febd: Waiting
Step #0 - "check_substitutions": 27e1a8ca91d3: Verifying Checksum
Step #0 - "check_substitutions": 27e1a8ca91d3: Download complete
Step #0 - "check_substitutions": 90e5e7d8b87a: Verifying Checksum
Step #0 - "check_substitutions": 90e5e7d8b87a: Download complete
Step #0 - "check_substitutions": 48b2d58a56e9: Verifying Checksum
Step #0 - "check_substitutions": 48b2d58a56e9: Download complete
Step #0 - "check_substitutions": d3a767d1d12e: Verifying Checksum
Step #0 - "check_substitutions": d3a767d1d12e: Download complete
Step #0 - "check_substitutions": 289cc84fca99: Verifying Checksum
Step #0 - "check_substitutions": 289cc84fca99: Download complete
Step #0 - "check_substitutions": d2774833febd: Verifying Checksum
Step #0 - "check_substitutions": d2774833febd: Download complete
Step #0 - "check_substitutions": f4b2d251d97d: Verifying Checksum
Step #0 - "check_substitutions": f4b2d251d97d: Download complete
Step #0 - "check_substitutions": d6a6af5c9fc9: Verifying Checksum
Step #0 - "check_substitutions": d6a6af5c9fc9: Download complete
Step #0 - "check_substitutions": 711be5dc5044: Verifying Checksum
Step #0 - "check_substitutions": 711be5dc5044: Download complete
Step #0 - "check_substitutions": 90e5e7d8b87a: Pull complete
Step #0 - "check_substitutions": 27e1a8ca91d3: Pull complete
Step #0 - "check_substitutions": d3a767d1d12e: Pull complete
Step #0 - "check_substitutions": 711be5dc5044: Pull complete
Step #0 - "check_substitutions": 48b2d58a56e9: Pull complete
Step #0 - "check_substitutions": f4b2d251d97d: Pull complete
Step #0 - "check_substitutions": 289cc84fca99: Pull complete
Step #0 - "check_substitutions": d2774833febd: Pull complete
Step #0 - "check_substitutions": d6a6af5c9fc9: Pull complete
Step #0 - "check_substitutions": Digest: sha256:693626265ef63407412f4169a586dd4faf720d9e52c23c1df370edfacc8eb6d6
Step #0 - "check_substitutions": Status: Downloaded newer image for us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.11.6
Step #0 - "check_substitutions": us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.11.6
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.11.6: Pulling from library/python
Step #1 - "build-hatch-image": 90e5e7d8b87a: Already exists
Step #1 - "build-hatch-image": 27e1a8ca91d3: Already exists
Step #1 - "build-hatch-image": d3a767d1d12e: Already exists
Step #1 - "build-hatch-image": 711be5dc5044: Already exists
Step #1 - "build-hatch-image": 48b2d58a56e9: Already exists
Step #1 - "build-hatch-image": f4b2d251d97d: Already exists
Step #1 - "build-hatch-image": 289cc84fca99: Already exists
Step #1 - "build-hatch-image": d2774833febd: Already exists
Step #1 - "build-hatch-image": Digest: sha256:2a725c9721f737a2944244c98c714d24f8bcfaddd9f5c15083cbaa024f7fce54
Step #1 - "build-hatch-image": Status: Downloaded newer image for python:3.11.6
Step #1 - "build-hatch-image":  ---> 0dba5a08d425
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":  ---> 7c398c392897
Step #1 - "build-hatch-image": Step 4/4 : ENTRYPOINT ["hatch"]
Step #1 - "build-hatch-image":  ---> Using cache
Step #1 - "build-hatch-image":  ---> 7fd38aad08fb
Step #1 - "build-hatch-image": Successfully built 7fd38aad08fb
Step #1 - "build-hatch-image": Successfully tagged us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.11.6
Finished Step #1 - "build-hatch-image"
Starting Step #3 - "lint"
Starting Step #2 - "tests"
Step #3 - "lint": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.11.6
Step #2 - "tests": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/hatch:3.11.6
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.11.6" failed: step exited with non-zero status: 1

Build Log: https://console.cloud.google.com/cloud-build/builds/66cd8e0f-6671-442a-a4c8-0f622796afc5?project=464139560241