Fix kokoros backend build break from Backend trait drift#9972
Merged
Conversation
Agent-Logs-Url: https://github.com/mudler/LocalAI/sessions/e3c6b042-f055-4df9-a05e-e2d8434ee58b Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job tests-kokoros
Fix kokoros backend build break from Backend trait drift
May 24, 2026
mudler
approved these changes
May 24, 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.
tests-kokorosstarted failing because the Rustkokorosbackend no longer satisfied the generatedBackendtrait afterAudioToAudioStreamwas added to the shared gRPC surface. The backend implementation was missing both the new associated stream type and RPC method.Root cause
backend/rust/kokoros/src/service.rsdid not implement newly required trait items:AudioToAudioStreamStreamaudio_to_audio_stream(...)Change made
UNIMPLEMENTEDstubs inKokorosServiceto keep interface parity without changing kokoros runtime behavior.Why this is minimal
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.pyke.io/home/REDACTED/work/LocalAI/LocalAI/backend/rust/kokoros/target/release/build/ort-sys-7d323129fad21ae4/build-script-main /home/REDACTED/work/LocalAI/LocalAI/backend/rust/kokoros/target/release/build/ort-sys-7d323129fad21ae4/build-script-main c-rendered-ansi,-f ctions -fdata-seconftest.er1 + ocal��(dns block)/home/REDACTED/work/LocalAI/LocalAI/backend/rust/kokoros/target/release/build/ort-sys-7d323129fad21ae4/build-script-main /home/REDACTED/work/LocalAI/LocalAI/backend/rust/kokoros/target/release/build/ort-sys-7d323129fad21ae4/build-script-main -o util.o /tmp/ccSMj8Xi.s 1.11/lame-3.100/include e \(.*(DEPDIR).*-I/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mp3lame-sys-as 1.11/lame-3.100/libmp3lame /usr/bin/sed 1.11/lame-3.100/mpglib .2.2/opus/includ-W -1949cf8c6b5b557-I _FLP.c.o f/mp�� s/g f/mp3lame-sys-0.-I /bin/sh f/mp3lame-sys-0.sort .2.2/opus/silk /index.crates.io-I re_FLP.c.o(dns block)/home/REDACTED/work/LocalAI/LocalAI/backend/rust/kokoros/target/release/build/ort-sys-7d323129fad21ae4/build-script-main /home/REDACTED/work/LocalAI/LocalAI/backend/rust/kokoros/target/release/build/ort-sys-7d323129fad21ae4/build-script-main --color= /kokoros/target/.libs/libmp3lame.lai ex.crates.io-194/tmp/ccDEFvUS.s f/mp�� io-1949cf8c6b5b557f/audiopus_sys-0.2.2/opus/silk f/mp3lame-sys-0.1.11/lame-3.100/libmp3lame u/13/cc1 f/mp3lame-sys-0.llvm-config .2.2/opus/includ--prefix /index.crates.io-1949cf8c6b5b557-I u/13/cc1 f/mp�� cc -DHAVE_CONFIG_H -I. -I/home//home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557git f/mp3lame-sys-0.1.11/lame-3.100/libmp3lame rgo/bin/as f/mp3lame-sys-0./usr/bin/gmake e /index.crates.io-f ild(dns block)If you need me to access, download, or install something from one of these locations, you can either: