Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

bindings: a wheel at or over 100 MB fails the build and the release workflow - #204

Merged
tae898 merged 2 commits into
mainfrom
wheel-size-gate
Oct 6, 2026
Merged

tae898 merged 2 commits into
mainfrom
wheel-size-gate

Conversation

@tae898

@tae898 tae898 commented Oct 6, 2026

Copy link
Copy Markdown

Summary

A wheel at or over 100 MB is a mistake (a whole distribution in JAR_LIB_DIR, an optional jar, a stale artifact), and nothing failed it before.

  • scripts/verify_wheel_size.py: fails a wheel at or over 100 MB (decimal), prints its largest members, and warns for a wheel within 10 MB of the limit or below 30 MB (engine or JRE missing?). ARCADEDB_WHEEL_MAX_MB overrides it for an exceptional build and says so.
  • build.sh runs it on the wheel it just built, on every path (Docker, native, CI).
  • The release workflow checks the same limit before the PyPI upload.
  • release.md: the policy, the pre-tag checks (no tag of that name here or on origin), and git config remote.upstream.tagopt --no-tags.

Verification

8 tests (tests/test_wheel_size.py) with small limits instead of 100 MB files. On the real 26.10.1 dev wheel (72.6 MB): passes at the default limit and fails with the largest members listed when the limit is forced to 50 MB. bash -n build.sh and the workflow YAML parse.

Closes #203.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi

tae898 and others added 2 commits October 6, 2026 13:12
…orkflow

verify_wheel_size.py checks every wheel against the 100 MB policy, with the largest members in the failure message and warnings for a wheel within 10 MB of the limit or below 30 MB. build.sh runs it on the wheel it just built, and the release workflow checks the same limit before the PyPI upload. release.md states the policy, the pre-tag checks (no existing tag of that name here or on origin), and the tagopt tip.

Closes #203.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
…rashed on the emoji)

The Windows examples jobs failed with a UnicodeEncodeError: the cp1252 console cannot print the check marks, and build.sh treats a failing check as fatal. The messages are plain text now, and a test pins that the script has no non-ASCII character.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
@tae898
tae898 merged commit ca014cd into main Oct 6, 2026
48 checks passed
@tae898
tae898 deleted the wheel-size-gate branch October 6, 2026 05:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: fail a wheel at or over 100 MB in build.sh and in the release workflow

1 participant