Repository navigation
Conversation
noise64
force-pushed
the
python-sdk-wheel
branch
from
November 17, 2026 01:51
19dbe25 to
5615a63
Compare
|
Found 6 test failures on Blacksmith runners: Failures
|
noise64
force-pushed
the
python-agents
branch
from
November 18, 2026 12:47
1284a7e to
da2dd66
Compare
noise64
force-pushed
the
python-sdk-wheel
branch
from
November 18, 2026 12:47
5615a63 to
4cf68b1
Compare
noise64
force-pushed
the
python-agents
branch
from
November 18, 2026 23:58
da2dd66 to
9503f7d
Compare
noise64
force-pushed
the
python-sdk-wheel
branch
from
November 18, 2026 23:58
4cf68b1 to
1dc8767
Compare
noise64
force-pushed
the
python-agents
branch
from
November 20, 2026 13:38
9503f7d to
e81883f
Compare
noise64
force-pushed
the
python-sdk-wheel
branch
from
November 20, 2026 13:38
1dc8767 to
3867fb5
Compare
PREPARED_IDENTITY and COMPONENTIZE_PY_REVISION name the assets that componentize-py 58d479e prepares. The assembler's dev-dependencies repeated normal dependencies and are removed.
COMPONENTIZE_PY_REVISION and PREPARED_IDENTITY name componentize-py cad25ee and its prepared assets. The workspace now pins componentize-py once, because wit-component comes from the wasm-tools fork.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Part of GOL-1852. Stacked on #4518 (PY-03), which is stacked on #4516 (PY-02). PY-05 comes next.
This PR packages the Python SDK as one host-independent wheel,
golem-py-sdk, imported asgolem. The Rust assembler reads the wheel directly, without host Python.sdks/python/pyproject.tomlbuilds the wheel with hatchling. The wheel containssrc/golemwithpy.typed. It also contains the prepared assets asgolem/_preparedandgolem/_compatibility.json, which records the componentize-py revision of the prepared assets.python-sdk-preparenow writescompatibility.json. The newpython-sdk-wheeltask setsSOURCE_DATE_EPOCH. Without it, the archive timestamps follow the file mtimes and the wheel bytes change between checkouts.golem_python_assembler::read_sdk_wheelreads the ZIP. It rejects unsafe or duplicate paths and checks every file against RECORD in both directions (sha256 and size). It rejects a wheel with another distribution name, another SDK version or another componentize-py revision before it extracts the prepared assets and before it imports any application code. After it extracts the prepared assets, it checks that their identity, the SHA-256 of their manifest, isPREPARED_IDENTITY. The assembler owns this value. The manifest names the digests of the world bindings, the standard library, the adapter and every runtime library, so a set that is internally valid but prepared for another world or runtime fails, even when it comes from the same componentize-py revision.read_preparedapplies the same check to atarget/prepareddirectory. The SDK version and the revision are constants of the assembler crate. A unit test checks that the revision equals the pins inCargo.tomlandMakefile.toml.Limits:
SDK_VERSIONcomes from the assembler crate version, butcargo make set-versiondoes not updatesdks/python/pyproject.toml(0.0.0). A released assembler would reject a wheel built from the tree until the release sets both. The wheel has no license notices yet, so it is not publishable, and its layout is not frozen until GOL-1349 attribution is agreed. Only Linux builds were checked. The final upload size of a component is not measured yet. The CLI does not link the assembler yet (PY-05). Golem CI does not run the assembler integration tests, because they need the prepared assets.Verification
This head, 91f926c, merges the new #4518 head into the previous head bcc09df and adds one commit:
PREPARED_IDENTITYandCOMPONENTIZE_PY_REVISIONname the assets of componentize-pycad25ee. The pin test now expects one componentize-py line inCargo.toml, because the wit-component patch no longer names the componentize-py repository. Checks on this head:cad25ee, built with the pinned SQLite tarball from a local cache (the same SHA-256).cargo make python-sdk-preparedid not run, because sqlite.org is not reachable from the build host. Two prepares gave the same manifest identity,a120875a…0234.PREPARED_IDENTITYis that value. The previous identity,b1d3997f…, differs only in the blob oflibcomponentize_py_runtime.so, whose strings differ only in.llvm.<n>symbol suffixes.uv build --wheelwithSOURCE_DATE_EPOCH=315532800: two builds gave the same wheel bytes. An install into a new virtual environment andimport golem, withpy.typedand_prepared/manifest.jsonpresent: pass.python -I -m unittest discover -s testsinsdks/python: pass.cargo test -p golem-python-assembler --testsand--doc,cargo clippy -p golem-python-assembler --all-targets -- -D warningsandcargo fmt -p golem-python-assembler -- --check: pass. A wheel built with the previous assets (componentize-py58d479e) failsbuilds_from_the_sdk_wheelwith the revision error, before it is rebuilt.ruff format --check: pass.ruff check: fails with the known findings BLE001 (twice, in_registry.py) and S102 (intests/test_declarations.py).CI: pull requests run no Golem tests. A missing result is not a pass.