Skip to content

fix(tts-audio): point the default bucket at tts-sredevopsorg - #280

Merged
ngeorger merged 1 commit into
mainfrom
fix/tts-audio-bucket-name
Nov 27, 2026
Merged

ngeorger merged 1 commit into
mainfrom
fix/tts-audio-bucket-name

Conversation

@sredevopsorgagents

Copy link
Copy Markdown
Collaborator

The deployed cluster has no sredevops-audio bucket — the real one is tts-sredevopsorg in project sredevopsorg.

What I verified

Using the in-cluster service account against the real bucket:

Operation Result
list objects ✅ 0 objects (bucket is empty, as expected)
upload + delete ✅ both succeed
getMetadata ✅ contentType: audio/mpeg, cacheControl: public, max-age=31536000, immutable — the worker sets these correctly

So 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_BUCKET was wrong in four places: base/configmap.yaml, the Makefile's GCP_PROJECT/GCS_BUCKET defaults, and scripts/cors.sh. The README now documents the defaults, notes that gcp-bootstrap needs 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:

Symptom Cause
The specified bucket does not exist wrong bucket name or project
anonymous GET → 403 allUsers → objectViewer missing; the player cannot read the file
OPTIONS preflight has no access-control-allow-origin CORS never applied; a ranged seek fails

Each has a curl check in the runbook.

Verified end to end

A real synthesis job against the real bucket with the real model:

synthesised 1/1 chunks → encoded 1 chunks → 59525 bytes
uploaded gs://tts-sredevopsorg/audio/e2ereal/90d32103b3d63183.mp3
marker written, duration 4.92s, result ok

Both gates pass (deploy/tts-audio/test.sh, yarn verify). Test objects were deleted.

Still outstanding (not code)

  • Bucket is not publicly readable (anonymous GET → 403) and CORS is not configured. The player cannot stream until both are set; the runner SA cannot set them by design.
  • No tts-audio-gateway exists, so tts-audio.sredevops.org returns Cloudflare 1016.
  • The Ghost Admin key reaches /site/ but /posts/ returns INVALID_JWT — the integration is not Administrator, so the job cannot read posts or write markers.

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
ngeorger merged commit 2c2d686 into main Nov 27, 2026
6 checks passed
@ngeorger
ngeorger deleted the fix/tts-audio-bucket-name branch November 27, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants