Commit 0bee740
ci: pin grpcio-tools==1.81.1 + regenerate stubs to fix proto stub drift
The 'proto stub drift' CI job (and thus the README CI badge on main) was red
because grpcio-tools was installed from a loose range (>=1.65,<2.0) in both
requirements.txt and ci.yaml. The range floated from 1.81.0 (when the stubs
were committed) up to 1.81.1, and the generated stub embeds the generator
version as GRPC_GENERATED_VERSION, so regeneration produced a one-line diff
(1.81.0 -> 1.81.1) that failed the byte-identical drift gate.
Fix (durable): pin grpcio-tools to the EXACT version in both places and
regenerate the committed stub so it matches. Future generator bumps now
require a deliberate pin change.
- requirements.txt: grpcio-tools>=1.65,<2.0 -> ==1.81.1 (+ rationale comment)
- .github/workflows/ci.yaml: install grpcio-tools==1.81.1 (+ rationale comment)
- runtime_pb2_grpc.py: GRPC_GENERATED_VERSION 1.81.0 -> 1.81.1 (regenerated)
Verified locally: drift check (git diff --exit-code after regenerate) PASSES;
proto stubs import OK.
Co-authored-by: FluffyAIcode <FluffyAIcode@users.noreply.github.com>1 parent 949bd97 commit 0bee740
3 files changed
Lines changed: 14 additions & 7 deletions
File tree
- .github/workflows
- inference_engine/server/proto_gen/kakeya/v1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | | - | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
0 commit comments