Skip to content

Integrate ignore_patterns into Competitions upload#1128

Closed
stevemessick wants to merge 5 commits into
mainfrom
feature/ignore-patterns-competitions
Closed

Integrate ignore_patterns into Competitions upload#1128
stevemessick wants to merge 5 commits into
mainfrom
feature/ignore-patterns-competitions

Reformat Python files using black

3113934
Select commit
Loading
Failed to load commit list.
Google Cloud Build / kaggle-cli-branch-3-11-15 (kaggle-cicd) succeeded Jul 16, 2026 in 2m 7s

Summary

Build Information

Trigger kaggle-cli-branch-3-11-15
Build d0b45d56-cae7-4b6e-9afd-30aa59cdead1
Start 2026-07-16T13:36:58-07:00
Duration 2m5.224s
Status SUCCESS

Steps

Step Status Duration
check_substitutions SUCCESS 43.983s
build-hatch-image SUCCESS 5.08s
tests SUCCESS 1m9.381s
lint SUCCESS 1m1.957s
download-secrets SUCCESS 8.709s
integration-tests SUCCESS 43.803s

Details

starting build "d0b45d56-cae7-4b6e-9afd-30aa59cdead1"

FETCHSOURCE
From https://github.com/Kaggle/kaggle-cli
 * branch            3113934255c090b82bf70e6cd54f698f478d5660 -> FETCH_HEAD
HEAD is now at 3113934 Reformat Python files using black
GitCommit:
3113934255c090b82bf70e6cd54f698f478d5660
BUILD
Starting Step #0 - "check_substitutions"
Starting Step #4 - "download-secrets"
Step #0 - "check_substitutions": Already have image (with digest): gcr.io/cloud-builders/docker
Step #4 - "download-secrets": Already have image (with digest): gcr.io/cloud-builders/gcloud
Step #0 - "check_substitutions": 3.11.15: Pulling from kaggle-cicd/tools/cli-builder
Step #0 - "check_substitutions": b890c9407285: Pulling fs layer
Step #0 - "check_substitutions": b453535073b6: Pulling fs layer
Step #0 - "check_substitutions": 9e002cae30c4: Pulling fs layer
Step #0 - "check_substitutions": 65956eab0c1c: Pulling fs layer
Step #0 - "check_substitutions": c33cfc2a5779: Pulling fs layer
Step #0 - "check_substitutions": b1cafede9a66: Pulling fs layer
Step #0 - "check_substitutions": 4d58361a56b3: Pulling fs layer
Step #0 - "check_substitutions": 3af5430cdc27: Pulling fs layer
Step #0 - "check_substitutions": 7a048787715e: Pulling fs layer
Step #0 - "check_substitutions": 4d58361a56b3: Waiting
Step #0 - "check_substitutions": 3af5430cdc27: Waiting
Step #0 - "check_substitutions": 7a048787715e: Waiting
Step #0 - "check_substitutions": c33cfc2a5779: Download complete
Step #0 - "check_substitutions": 4d58361a56b3: Verifying Checksum
Step #0 - "check_substitutions": 4d58361a56b3: Download complete
Step #0 - "check_substitutions": b1cafede9a66: Verifying Checksum
Step #0 - "check_substitutions": b1cafede9a66: Download complete
Step #0 - "check_substitutions": b453535073b6: Verifying Checksum
Step #0 - "check_substitutions": b453535073b6: Download complete
Step #0 - "check_substitutions": 3af5430cdc27: Verifying Checksum
Step #0 - "check_substitutions": 3af5430cdc27: Download complete
Step #0 - "check_substitutions": b890c9407285: Verifying Checksum
Step #0 - "check_substitutions": b890c9407285: Download complete
Step #0 - "check_substitutions": 9e002cae30c4: Verifying Checksum
Step #0 - "check_substitutions": 9e002cae30c4: Download complete
Step #0 - "check_substitutions": 7a048787715e: Verifying Checksum
Step #0 - "check_substitutions": 7a048787715e: Download complete
Step #0 - "check_substitutions": 65956eab0c1c: Verifying Checksum
Step #0 - "check_substitutions": 65956eab0c1c: Download complete
Finished Step #4 - "download-secrets"
Step #0 - "check_substitutions": b890c9407285: Pull complete
Step #0 - "check_substitutions": b453535073b6: Pull complete
Step #0 - "check_substitutions": 9e002cae30c4: Pull complete
Step #0 - "check_substitutions": 65956eab0c1c: Pull complete
Step #0 - "check_substitutions": c33cfc2a5779: Pull complete
Step #0 - "check_substitutions": b1cafede9a66: Pull complete
Step #0 - "check_substitutions": 4d58361a56b3: Pull complete
Step #0 - "check_substitutions": 3af5430cdc27: Pull complete
Step #0 - "check_substitutions": 7a048787715e: Pull complete
Step #0 - "check_substitutions": Digest: sha256:5790c6a12a514528d5ce7a141be82baf5b70de08f65c9fa90675baec7805ef06
Step #0 - "check_substitutions": Status: Downloaded newer image for us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
Step #0 - "check_substitutions": us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
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/5 : ARG PYTHON_VERSION
Step #1 - "build-hatch-image": Step 2/5 : FROM python:${PYTHON_VERSION}
Step #1 - "build-hatch-image": 3.11.15: Pulling from library/python
Step #1 - "build-hatch-image": b890c9407285: Already exists
Step #1 - "build-hatch-image": b453535073b6: Already exists
Step #1 - "build-hatch-image": 9e002cae30c4: Already exists
Step #1 - "build-hatch-image": 65956eab0c1c: Already exists
Step #1 - "build-hatch-image": c33cfc2a5779: Already exists
Step #1 - "build-hatch-image": b1cafede9a66: Already exists
Step #1 - "build-hatch-image": 4d58361a56b3: Already exists
Step #1 - "build-hatch-image": Digest: sha256:13f0881a239ca0d27fb8b2539536ace85f7d680a707bfaa178571e1dbfe85a91
Step #1 - "build-hatch-image": Status: Downloaded newer image for python:3.11.15
Step #1 - "build-hatch-image":  ---> 7ba83304cb51
Step #1 - "build-hatch-image": Step 3/5 : RUN python -m pip install --upgrade pip
Step #1 - "build-hatch-image":  ---> Using cache
Step #1 - "build-hatch-image":  ---> a7aafb324210
Step #1 - "build-hatch-image": Step 4/5 : RUN python -m pip install hatch==1.16.5
Step #1 - "build-hatch-image":  ---> Using cache
Step #1 - "build-hatch-image":  ---> e2a1643d1216
Step #1 - "build-hatch-image": Step 5/5 : ENTRYPOINT ["hatch"]
Step #1 - "build-hatch-image":  ---> Using cache
Step #1 - "build-hatch-image":  ---> 19f76fb88eda
Step #1 - "build-hatch-image": Successfully built 19f76fb88eda
Step #1 - "build-hatch-image": Successfully tagged us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
Finished Step #1 - "build-hatch-image"
Starting Step #3 - "lint"
Starting Step #5 - "integration-tests"
Starting Step #2 - "tests"
Step #3 - "lint": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
Step #5 - "integration-tests": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
Step #2 - "tests": Already have image (with digest): us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
Step #5 - "integration-tests": Creating environment: test
Step #2 - "tests": Creating environment: test
Step #3 - "lint": Creating environment: lint
Step #3 - "lint": Checking dependencies
Step #2 - "tests": Installing project in development mode
Step #5 - "integration-tests": Installing project in development mode
Step #3 - "lint": Syncing dependencies
Step #3 - "lint": cmd [1] | black --check --diff .
Step #3 - "lint": Skipping .ipynb files as Jupyter dependencies are not installed.
Step #3 - "lint": You can fix this by running ``pip install "black[jupyter]"``
Step #5 - "integration-tests": Checking dependencies
Step #5 - "integration-tests": Syncing dependencies
Step #2 - "tests": Checking dependencies
Step #2 - "tests": Syncing dependencies
Step #5 - "integration-tests": ============================= test session starts ==============================
Step #5 - "integration-tests": platform linux -- Python 3.11.15, pytest-9.1.1, pluggy-1.6.0
Step #5 - "integration-tests": rootdir: /workspace
Step #5 - "integration-tests": configfile: pyproject.toml
Step #5 - "integration-tests": plugins: cov-7.1.0
Step #5 - "integration-tests": collected 2 items
Step #5 - "integration-tests": 
Step #5 - "integration-tests": tests/integration/test_models.py ..                                      [100%]
Step #5 - "integration-tests": 
Step #5 - "integration-tests": ============================== 2 passed in 2.01s ===============================
Finished Step #5 - "integration-tests"
Step #3 - "lint": All done! ✨ 🍰 ✨
Step #3 - "lint": 57 files would be left unchanged.
Step #3 - "lint": cmd [2] | mypy --install-types --non-interactive src/kaggle tests
Step #2 - "tests": ============================= test session starts ==============================
Step #2 - "tests": platform linux -- Python 3.11.15, pytest-9.1.1, pluggy-1.6.0
Step #2 - "tests": rootdir: /workspace
Step #2 - "tests": configfile: pyproject.toml
Step #2 - "tests": testpaths: tests/unit
Step #2 - "tests": plugins: cov-7.1.0
Step #2 - "tests": collected 1018 items
Step #2 - "tests": 
Step #2 - "tests": tests/unit/test_authenticate.py ......                                   [  0%]
Step #2 - "tests": tests/unit/test_benchmarks_cli.py ...................................... [  4%]
Step #2 - "tests": ........................................................................ [ 11%]
Step #2 - "tests": ........................................................................ [ 18%]
Step #2 - "tests": ........................................................................ [ 25%]
Step #2 - "tests": ...................................                                      [ 28%]
Step #2 - "tests": tests/unit/test_benchmarks_leaderboard.py ............                   [ 30%]
Step #2 - "tests": tests/unit/test_cli_benchmarks.py .............................          [ 33%]
Step #3 - "lint": Collecting types-PySocks
Step #3 - "lint":   Downloading types_pysocks-1.7.1.20260518-py3-none-any.whl.metadata (1.7 kB)
Step #3 - "lint": Collecting types-PyYAML
Step #3 - "lint":   Downloading types_pyyaml-6.0.12.20260518-py3-none-any.whl.metadata (1.7 kB)
Step #3 - "lint": Collecting types-Pygments
Step #3 - "lint":   Downloading types_pygments-2.20.0.20260518-py3-none-any.whl.metadata (2.0 kB)
Step #3 - "lint": Collecting types-bleach
Step #3 - "lint":   Downloading types_bleach-6.4.0.20260607-py3-none-any.whl.metadata (1.7 kB)
Step #3 - "lint": Collecting types-pexpect
Step #3 - "lint":   Downloading types_pexpect-4.9.0.20260518-py3-none-any.whl.metadata (1.7 kB)
Step #3 - "lint": Collecting types-protobuf
Step #3 - "lint":   Downloading types_protobuf-7.34.1.20260518-py3-none-any.whl.metadata (2.2 kB)
Step #3 - "lint": Collecting types-python-dateutil
Step #3 - "lint":   Downloading types_python_dateutil-2.9.0.20260716-py3-none-any.whl.metadata (1.8 kB)
Step #3 - "lint": Collecting types-six
Step #3 - "lint":   Downloading types_six-1.17.0.20260518-py3-none-any.whl.metadata (1.7 kB)
Step #3 - "lint": Collecting types-docutils (from types-Pygments)
Step #3 - "lint":   Downloading types_docutils-0.22.3.20260712-py3-none-any.whl.metadata (1.7 kB)
Step #2 - "tests": tests/unit/test_cli_commands.py ..............                           [ 34%]
Step #3 - "lint": Collecting types-html5lib (from types-bleach)
Step #3 - "lint":   Downloading types_html5lib-1.1.11.20260518-py3-none-any.whl.metadata (1.8 kB)
Step #3 - "lint": Collecting types-webencodings (from types-html5lib->types-bleach)
Step #3 - "lint":   Downloading types_webencodings-0.5.0.20260408-py3-none-any.whl.metadata (1.8 kB)
Step #3 - "lint": Downloading types_pysocks-1.7.1.20260518-py3-none-any.whl (9.6 kB)
Step #3 - "lint": Downloading types_pyyaml-6.0.12.20260518-py3-none-any.whl (20 kB)
Step #3 - "lint": Downloading types_pygments-2.20.0.20260518-py3-none-any.whl (29 kB)
Step #3 - "lint": Downloading types_bleach-6.4.0.20260607-py3-none-any.whl (11 kB)
Step #3 - "lint": Downloading types_pexpect-4.9.0.20260518-py3-none-any.whl (17 kB)
Step #3 - "lint": Downloading types_protobuf-7.34.1.20260518-py3-none-any.whl (85 kB)
Step #3 - "lint": Downloading types_python_dateutil-2.9.0.20260716-py3-none-any.whl (18 kB)
Step #3 - "lint": Downloading types_six-1.17.0.20260518-py3-none-any.whl (19 kB)
Step #3 - "lint": Downloading types_docutils-0.22.3.20260712-py3-none-any.whl (91 kB)
Step #3 - "lint": Downloading types_html5lib-1.1.11.20260518-py3-none-any.whl (24 kB)
Step #3 - "lint": Downloading types_webencodings-0.5.0.20260408-py3-none-any.whl (8.7 kB)
Step #3 - "lint": Installing collected packages: types-webencodings, types-six, types-PyYAML, types-python-dateutil, types-PySocks, types-protobuf, types-pexpect, types-docutils, types-Pygments, types-html5lib, types-bleach
Step #3 - "lint": 
Step #3 - "lint": Successfully installed types-PySocks-1.7.1.20260518 types-PyYAML-6.0.12.20260518 types-Pygments-2.20.0.20260518 types-bleach-6.4.0.20260607 types-docutils-0.22.3.20260712 types-html5lib-1.1.11.20260518 types-pexpect-4.9.0.20260518 types-protobuf-7.34.1.20260518 types-python-dateutil-2.9.0.20260716 types-six-1.17.0.20260518 types-webencodings-0.5.0.20260408
Step #2 - "tests": tests/unit/test_cli_competitions.py .................................... [ 37%]
Step #2 - "tests": ............                                                             [ 39%]
Step #2 - "tests": tests/unit/test_cli_datasets.py ..........................               [ 41%]
Step #2 - "tests": tests/unit/test_cli_forums.py .......                                    [ 42%]
Step #3 - "lint": src/kaggle/api/kaggle_api_extended.py:2722: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
Step #3 - "lint": src/kaggle/api/kaggle_api_extended.py:6952: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
Step #3 - "lint": src/kaggle/api/kaggle_api_extended.py:7409: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
Step #3 - "lint": Installing missing stub packages:
Step #3 - "lint": /builder/home/lint/.local/share/hatch/env/virtual/kaggle/xS3fZVNL/lint/bin/python -m pip install types-PySocks types-PyYAML types-Pygments types-bleach types-pexpect types-protobuf types-python-dateutil types-six
Step #3 - "lint": 
Step #3 - "lint": 
Step #3 - "lint": Success: no issues found in 56 source files
Step #2 - "tests": tests/unit/test_cli_kernels.py ..............................            [ 45%]
Finished Step #3 - "lint"
Step #2 - "tests": tests/unit/test_cli_main.py ..........                                   [ 46%]
Step #2 - "tests": tests/unit/test_cli_models.py .........................................  [ 50%]
Step #2 - "tests": tests/unit/test_cli_pagination.py .......                                [ 50%]
Step #2 - "tests": tests/unit/test_competition_create.py ............                       [ 52%]
Step #2 - "tests": tests/unit/test_competition_create_page.py ........                      [ 52%]
Step #2 - "tests": tests/unit/test_competition_data_update.py ................              [ 54%]
Step #2 - "tests": tests/unit/test_competition_delete_page.py ........                      [ 55%]
Step #2 - "tests": tests/unit/test_competition_launch.py .........                          [ 56%]
Step #2 - "tests": tests/unit/test_competition_list_hosts.py ........                       [ 56%]
Step #2 - "tests": tests/unit/test_competition_settings_get.py ........                     [ 57%]
Step #2 - "tests": tests/unit/test_competition_settings_update.py .................         [ 59%]
Step #2 - "tests": tests/unit/test_competition_submit.py ............                       [ 60%]
Step #2 - "tests": tests/unit/test_competition_update_page.py ............                  [ 61%]
Step #2 - "tests": tests/unit/test_competitions_list.py .............                       [ 63%]
Step #2 - "tests": tests/unit/test_dataset_create.py .......................                [ 65%]
Step #2 - "tests": tests/unit/test_dataset_delete.py ..                                     [ 65%]
Step #2 - "tests": tests/unit/test_dataset_download.py ........                             [ 66%]
Step #2 - "tests": tests/unit/test_dataset_list.py ................                         [ 67%]
Step #2 - "tests": tests/unit/test_dataset_metadata_update.py .........                     [ 68%]
Step #2 - "tests": tests/unit/test_dataset_status.py ..............                         [ 70%]
Step #2 - "tests": tests/unit/test_discussions_cli.py ..................................... [ 73%]
Step #2 - "tests": ..........................................................               [ 79%]
Step #2 - "tests": tests/unit/test_help_version_auth.py ..........                          [ 80%]
Step #2 - "tests": tests/unit/test_http_client.py x..                                       [ 80%]
Step #2 - "tests": tests/unit/test_ignore_patterns.py ....                                  [ 81%]
Step #2 - "tests": tests/unit/test_kernel_parsing.py .......                                [ 81%]
Step #2 - "tests": tests/unit/test_kernels_logs.py ......................                   [ 83%]
Step #2 - "tests": tests/unit/test_kernels_pull.py .........                                [ 84%]
Step #2 - "tests": tests/unit/test_kernels_push.py .................                        [ 86%]
Step #2 - "tests": tests/unit/test_model_create.py ................................         [ 89%]
Step #2 - "tests": tests/unit/test_model_delete.py ......                                   [ 90%]
Step #2 - "tests": tests/unit/test_model_download.py ..........                             [ 91%]
Step #2 - "tests": tests/unit/test_model_list.py ...........                                [ 92%]
Step #2 - "tests": tests/unit/test_quota.py ..........                                      [ 93%]
Step #2 - "tests": tests/unit/test_retry_after.py ...............                           [ 94%]
Step #2 - "tests": tests/unit/test_team_submissions.py ........                             [ 95%]
Step #2 - "tests": tests/unit/test_upload_helpers.py ...................................... [ 99%]
Step #2 - "tests": .......                                                                  [100%]
Step #2 - "tests": 
Step #2 - "tests": =============================== warnings summary ===============================
Step #2 - "tests": tests/unit/test_benchmarks_cli.py:827
Step #2 - "tests":   /workspace/tests/unit/test_benchmarks_cli.py:827: DeprecationWarning: invalid escape sequence '\('
Step #2 - "tests":     with patch("time.sleep"), pytest.raises(ValueError, match="run\(s\) failed"):
Step #2 - "tests": 
Step #2 - "tests": -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Step #2 - "tests": ================= 1017 passed, 1 xfailed, 1 warning in 26.59s ==================
Finished Step #2 - "tests"
PUSH
Pushing us-docker.pkg.dev/kaggle-cicd/tools/cli-builder:3.11.15
The push refers to repository [us-docker.pkg.dev/kaggle-cicd/tools/cli-builder]
2231badaeae8: Preparing
6817acbebe00: Preparing
1ce29ed69c04: Preparing
fe389decb1fd: Preparing
210f7b7ec26a: Preparing
9ba280139d95: Preparing
21ac065449b5: Preparing
f86e5327aae0: Preparing
102f96b3f4ce: Preparing
102f96b3f4ce: Layer already exists
1ce29ed69c04: Layer already exists
6817acbebe00: Layer already exists
9ba280139d95: Layer already exists
f86e5327aae0: Layer already exists
fe389decb1fd: Layer already exists
2231badaeae8: Layer already exists
210f7b7ec26a: Layer already exists
21ac065449b5: Layer already exists
3.11.15: digest: sha256:5790c6a12a514528d5ce7a141be82baf5b70de08f65c9fa90675baec7805ef06 size: 2219
DONE

Build Log: https://console.cloud.google.com/cloud-build/builds/d0b45d56-cae7-4b6e-9afd-30aa59cdead1?project=464139560241