Repository navigation
fix(tts-audio): point the default bucket at tts-sredevopsorg - #280
Merged
Merged
Conversation
The deployed cluster has no `sredevops-audio` bucket; the real one is `tts-sredevopsorg` in project `sredevopsorg`. The service account has object access to it (verified: list, upload, delete all succeed), so the ConfigMap was the only thing wrong — but it was wrong in four places, and a job would have synthesised for ~20 minutes and then failed on upload. - base/configmap.yaml GCS_BUCKET, the Makefile's GCP_PROJECT/GCS_BUCKET defaults, and scripts/cors.sh - README: document the defaults, note that gcp-bootstrap needs a principal that can administer the bucket (the runner SA deliberately cannot), and name the three ways a pipeline looks deployed but produces nothing audible — wrong bucket, objects not public, CORS not applied — with the two curl checks that catch them. Verified end to end against the real bucket with the real model: the job synthesised, encoded, uploaded gs://tts-sredevopsorg/audio/... and wrote the marker, with contentType audio/mpeg and the immutable Cache-Control.
ngeorger
approved these changes
Nov 27, 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.
The deployed cluster has no
sredevops-audiobucket — the real one istts-sredevopsorgin projectsredevopsorg.What I verified
Using the in-cluster service account against the real bucket:
listobjectsupload+deletegetMetadatacontentType: audio/mpeg,cacheControl: public, max-age=31536000, immutable— the worker sets these correctlySo the service account and bucket are fine; the ConfigMap was the only thing wrong, and a job would have synthesised for ~20 minutes and then failed on upload.
The fix
GCS_BUCKETwas wrong in four places:base/configmap.yaml, the Makefile'sGCP_PROJECT/GCS_BUCKETdefaults, andscripts/cors.sh. The README now documents the defaults, notes thatgcp-bootstrapneeds a principal that can administer the bucket (the runner SA deliberately cannot — it is scoped to objects), and names the three ways a pipeline looks deployed but produces nothing a reader can hear:The specified bucket does not existGET→ 403allUsers → objectViewermissing; the player cannot read the fileOPTIONSpreflight has noaccess-control-allow-originEach has a
curlcheck in the runbook.Verified end to end
A real synthesis job against the real bucket with the real model:
Both gates pass (
deploy/tts-audio/test.sh,yarn verify). Test objects were deleted.Still outstanding (not code)
tts-audio-gatewayexists, sotts-audio.sredevops.orgreturns Cloudflare 1016./site/but/posts/returnsINVALID_JWT— the integration is not Administrator, so the job cannot read posts or write markers.