Repository navigation
Conversation
|
MLCommons CLA bot: All contributors are covered by the MLCommons CLA ✍️ ✅ |
theodorbadea
requested changes
Nov 24, 2026
theodorbadea
approved these changes
Nov 24, 2026
theodorbadea
requested review from
HanjiangWu313,
ajbalogh,
briancoutinho,
danmih-ixia,
jinsun-yoo and
winstonliu1111
November 24, 2026 13:50
danmih-ixia
requested changes
Nov 24, 2026
danmih-ixia
left a comment
Contributor
There was a problem hiding this comment.
Please add proper descriptive commit messages.
mihncalo
force-pushed
the
build/issue-271-protocompiled-files
branch
from
November 24, 2026 20:14
db42ee8 to
5edd069
Compare
Contributor
Author
Addressed the issue by changing the name of the first commit to something indicative of the changes done in said commit |
danmih-ixia
approved these changes
Nov 25, 2026
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.
Summary
The generated protobuf code (
*_pb2.py,*_pb2.pyi) is now committed, so installing no longer runs protoc.Problem:
grpcio-tools==1.80.0. That package has no Python 3.15 wheel, so 3.15 installs failed.requires-python <3.15.protobuf>=7.35.1, which would drop protobuf 6.x users.*_pb2_grpc.pymodules. They importgrpc, which is not a dependency.Changes:
pip install .produces onmain..gitignorenow ignores only*_pb2_grpc.py.[build-system].setup.cfgis deleted. Its only section was[build_grpc].cache-keysblock is gone.requires-pythonhas no upper bound any more..pyistubs are listed inpackage-data. setuptools before 69 leaves them out otherwise.scripts/gen_proto.sh:--proto_path=schema/protobuf.--checkcompares against the committed files and writes nothing.python_tests.yml..pyistubs are present and no*_pb2_grpc.pyis shipped.gen-protoandproto-checkrecipes.proto-checkis part ofgate..protochange that wasn't regenerated.doc/DEVELOPMENT.mdcovers the new steps.The import path
chakra.schema.protobuf.et_def_pb2is unchanged.Test Plan
Environment:
requirements-dev.txt, as CI does.Results:
main's built wheel (checked withcmp, all 4 files).just proto-checkreports the files are up to date. After a.protoedit without regenerating, it reports "out of date" and exits with 1.ruff format --check .,ruff check .,vulture,shellcheckandpyrightare clean, with 0 errors.CHAKRA_TOOLING_TESTS=1 CHAKRA_TEST_SLOW=1 python -m pytest testsgives 383 passed. The pipeline output tests pass, so the.etoutput is unchanged.scripts/wheel_check.shpasses with protobuf 6.31.1 and with the newest protobuf.scripts/check_clean_install.shpasses on Python 3.11 and 3.15.2, building from the sdist.Additional Notes
.protochange: runjust gen-proto(orscripts/gen_proto.sh) and commit the result. It needs a network and Python 3.9 to 3.14.gen_proto.sh, regenerate, and raise theprotobuflower bound inpyproject.toml. If you forget, the proto smoke test fails in CI.Closes #271