Repository navigation
Fix Azure Government Speech routing and transcription failure reporting - #1947
Merged
Paul Lizer (paullizer) merged 1 commit intoNov 17, 2026
Merged
Conversation
Refs #1946 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
SpeechConfig(endpoint=...), then assign the existingaad#resource-id#tokenauthorization value; preserve public-cloud region-based MI and endpoint/key authentication.Linked issue
Refs #1946. This is the Development implementation; a separate main port is coordinated independently. No merge or Azure deployment is authorized.
Release Notes & Latest Features
Is this visible to end users?
Is this admin-facing (Admin Settings, governance, deployment, config)?
Should this become a Latest Feature card?
Screenshot needed for the card?
Version bump
application/single_app/config.pyVERSIONthird segment bumped, or not needed because this is docs-onlydeployers/version.txtbumped, or not needed becausedeployers/was not changedApplication:
0.261.449->0.261.450. No deployer changes.Testing / validation
All commands below ran offline where application behavior was exercised; no live Azure calls or customer credentials were used.
Speech regressions:
python -m pytest functional_tests\test_government_speech.py -q -p no:cacheprovider— 2 passed on installed Speech SDK 1.47.0, then 2 passed again with pinned SDK 1.48.2 onPYTHONPATH(restored into a session-only dependency directory, not the repository/shared installation). The two fresh-process probes cover native SDK Government/custom endpoint retention and auth format; public MI/key compatibility; normal speech/silence/EOF; cancellation with/without partial text; interruption; timeout with/without partial text; late/startup failure; safe route responses; cleanup; logger sanitizer code retention; and Government/custom Fast API bypass.Related regressions: the following exact PowerShell/Python invocation — 17 passed:
Affected document-owner runtime SDK evidence: the following exact command — 45 passed:
python scripts\check_cosmos_response_boundaries.py --refresh— completed. Reviewed only the 45 affected document-module entries after AST comparison proved that every storage owner and import remained unchanged; existing representative owner-runtime SDK evidence was rerun above. No source-only baseline expansion or unrelated review approval.Known baseline blocker:
python scripts\check_cosmos_response_boundaries.py --run-contracts— failed before executing its aggregate suite, reporting 18 pre-existing stale reviews inroute_backend_orchestration.py(1,104 owners / 433 doubles). Those source files and inventory reviews are unchanged by this PR; all affectedfunctions_documents.pyentries are current. Do not interpret the separately passing owner checks as a green full Cosmos gate.Additional exact commands/results:
python functional_tests\route_tests\test_route_blueprint_policy_inventory.py— 15/15 passed.python functional_tests\route_tests\test_route_unauthenticated_policy_contract.py— 10/10 passed.python functional_tests\route_tests\test_route_policy_test_coverage.py— 5/5 passed.python functional_tests\test_docs_site_quality.py— 6/6 passed.python functional_tests\test_docs_app_surface_coverage.py— 7/7 passed, generated surface inventory remains current; no surface additions/renames.python -m py_compile application\single_app\functions_documents.py application\single_app\route_backend_speech.py functional_tests\test_government_speech.py— passed.git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --check— passed.No live Government resource smoke test was performed. RBAC, network reachability, actual service availability, and the customer's exact failing workflow remain environment-specific validation needs.
Documentation
Fix documentation:
docs/explanation/fixes/AZURE_GOVERNMENT_SPEECH_FIX.md; related setup guide:docs/guides/azure-speech-managed-identity-setup.md. Release notes and issue progress comments are intentionally deferred to the coordinator's user decision.Security checklist
@swagger_route(security=get_auth_security())sanitize_settings_for_user()No routes, auth policies, settings response payloads, frontend assets, token scopes, or Government/custom Fast Transcription eligibility were added/changed. New diagnostics use
[SPEECH]withfailure_codevaluesspeech_sdk_canceled,speech_sdk_interrupted, andspeech_sdk_timeout, not provider details or transcript/audio contents.