## Summary
Motivated by external contributor Martín (netux) asking "is there an
easy way to run the full backend without GCS?" — he couldn't test PR
#895's backend changes locally. This PR makes the whole backend runnable
locally against emulators with **zero GCP credentials and zero paid API
keys**.
### What was broken for contributors
- Workers migrated to Cloud Run Jobs for prod robustness
(audio-download, audio-separation, lyrics-transcription, bulk-search)
silently bypassed the direct-HTTP dev mode → local jobs stalled at
PENDING forever
- Signed URL generation called `google.auth.default()` → crashed with no
credentials (review audio, downloads, theme previews, upload URLs)
- Magic-link login 503'd locally (console email provider counted as "not
configured")
- Fresh emulator had no default theme → every job create returned 422
- `docs/DEVELOPMENT.md` told people to `cp .env.example .env` but the
file didn't exist — and nothing loaded `.env` anyway
- `run-backend-local.sh` defaulted to the production GCP project
### Changes
- **worker_service**: CRJ-based workers run as local subprocesses
(`python -m backend.workers.X --job-id Y`, exact CRJ parity) when
`ENABLE_CLOUD_TASKS=false` **and** not `is_production()`
(regression-tested both ways)
- **storage_service**: signed URLs → plain fake-gcs-server URLs when
`STORAGE_EMULATOR_HOST` set (GET via JSON API download path; PUT via
unvalidated-signature path, enabled by `-public-host` on the emulator)
- **users route**: magic-link 503 only in production; dev prints the
link to the console
- **file_upload bugfix**: a theme with style params but no asset files
never got `style_params_gcs_path` written (empty-dict falsiness in `elif
theme_style_assets:`) — surfaced by the minimal seed theme, latent in
prod
- **scripts/seed-local-data.py** (new): creates bucket + default theme;
wired into `run-backend-local.sh --with-emulators`, which now uses
`test-project`
- **config**: `load_dotenv()` so `.env` actually works; new root
`.env.example`
- **CONTRIBUTING.md** (new): no-credentials quickstart; README +
DEVELOPMENT.md link to it
### Verified end-to-end locally (no GCP credentials)
Upload job → local audio separation (real models) → transcription →
screens → `awaiting_review`; review endpoints all working including
`/api/review/{job}/audio/vocals` (the PR #895 endpoint) and 302 →
emulator audio URLs. Magic-link login round-trip via console link.
### Tests
- 224 tests across affected files pass; full backend unit suite: 3969
passed
- `backend/tests/test_emulator_integration.py` has 8 pre-existing
failures that reproduce identically on unmodified `main` locally (broken
theme-service mock in that file) — unrelated to this PR
- New tests: dev-mode subprocess dispatch (audio + bulk-search),
prod-mode never-Popen guard, emulator URL generation (GET + PUT)
@coderabbitai ignore
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
## Summary
- Remove the `cloudbuild-deploy-as-backend` IAM resource that was
causing Pulumi deployment failures
- Delete legacy Cloud Build files that were never working
## Problem
Every push to main has been failing in the "Deploy - Infrastructure
(Pulumi)" step with:
```
Permission 'iam.serviceAccounts.setIamPolicy' denied on resource
```
This resource was added to grant Cloud Build permission to deploy Cloud
Run services, but:
1. CI uses GitHub Actions for builds and deployments, not Cloud Build
2. The GitHub Actions SA doesn't have `iam.serviceAccounts.setIamPolicy`
permission
3. The Cloud Build yaml files were legacy/unused
## Changes
- Remove `cloudbuild-deploy-as-backend` IAM binding from Pulumi
- Delete `cloudbuild.yaml`, `cloudbuild-base.yaml`, `scripts/deploy.sh`
- Update README to note deployments happen via GitHub Actions CI
## Test plan
- [x] Verify Python syntax: `cd infrastructure && python -c "import
__main__"`
- [ ] CI should pass - Pulumi will no longer try to create the
problematic IAM binding
@coderabbitai ignore
🤖 Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
## Summary
- Add `--no-video` flag to skip video encoding and distribution features
- Allows CDG/TXT-only generation for faster processing (~15-20 min saved
on full songs)
- Skips: final video encoding, remuxing, YouTube upload, Discord,
rclone, brand code organization
- Still runs: audio separation, transcription, CDG/TXT package
generation
Addresses #278
## Test plan
- [x] Unit tests for `--no-video` flag handling
- [x] Integration test: `test_full_cli_integration_no_video`
- [x] Manual testing on macOS with Local Whisper
## Known Behaviors
**Preview and prep phase videos still generated:**
- Preview video (360p) - needed for Transcription Review UI (~few
seconds)
- Prep phase video (4K) - `(With Vocals).mkv` (~several seconds)
- The `--no-video` flag specifically skips **finalisation phase
encoding** (~15-20 min for full songs)
**Output format requirements:**
- When using `--no-video`, specify at least one of: `--enable_cdg` or
`--enable_txt`
- Without these, command completes but generates no output packages
## Usage Examples
```bash
# CDG only
karaoke-gen --no-video --enable_cdg audio.flac "Artist" "Title"
# CDG + TXT
karaoke-gen --no-video --enable_cdg --enable_txt audio.flac "Artist" "Title"
# With auto-download
karaoke-gen --no-video --enable_cdg --auto-download "Artist" "Title"
```
## Questions for Reviewers
1. **Video generation behavior:** Is the current behavior (generating
preview and prep phase videos) acceptable, or should we document it more
prominently in the help text?
2. **Output format requirements:** Should we add validation to require
at least one of `--enable_cdg` or `--enable_txt` when `--no-video` is
specified, or is the current behavior (completing with no output
packages) acceptable?
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added `--no-video` flag to skip video encoding and distribution steps,
enabling faster CDG/TXT-only package generation.
* **Documentation**
* Updated README with usage example for the new `--no-video` option.
* **Tests**
* Added comprehensive integration and unit tests for the no-video
workflow.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Andrew Beveridge ☄️ <andrew@beveridge.uk>
Wrap package names with extras notation in double quotes to prevent
zsh and other shells from interpreting square brackets as glob patterns.
Fixes#91🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements LocalWhisperTranscriber for running Whisper inference locally
using the whisper-timestamped library, addressing issue #68.
Changes:
- Add LocalWhisperTranscriber class with lazy model loading
- Support auto-detection of device (CPU/CUDA/MPS) with fallback
- Add configuration via environment variables (WHISPER_MODEL_SIZE,
WHISPER_DEVICE, WHISPER_CACHE_DIR, WHISPER_LANGUAGE)
- Integrate into controller with priority 3 (fallback after cloud services)
- Add whisper-timestamped as optional dependency [local-whisper]
- Add comprehensive unit tests
- Update README with setup instructions and troubleshooting guide
Installation:
pip install karaoke-gen[local-whisper]
For CPU-only systems:
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install karaoke-gen[local-whisper]
Fixes#68🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Nomad Karaoke logo to both frontend headers
- Fix SVG viewBox to display logo at correct size
- Implement working dark/light mode toggle for both UIs
- Make karaoke-gen layout full-width to match lyrics-transcriber
- Standardize header height (70px) across both UIs
- Use lucide-react icons (Sun/Moon) for theme toggle in both UIs
- Add CSS variables for theme-aware styling in karaoke-gen
- Refactor lyrics-transcriber theme system for dynamic switching
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses GitHub issue #55 - users were getting "No suitable files found for processing"
error without understanding the root cause was missing transcription providers.
Changes:
- lyrics_processor.py: Add _check_transcription_providers() and validation in
transcribe_lyrics() that raises ValueError with detailed setup instructions when
transcription is enabled but no providers configured
- controller.py: Improve "Starting transcription with providers: []" to WARNING
level with explanation of consequences and setup instructions
- karaoke_finalise.py: Update find_with_vocals_file() exception to explain that
missing "(With Vocals).mkv" typically indicates transcription failure, with
common causes and troubleshooting steps
- README.md: Add "Transcription Providers" section with setup instructions for
AudioShake and Whisper/RunPod, and add "Troubleshooting" section
- tests/unit/test_lyrics.py: Add comprehensive tests for new provider validation
Bump version to 0.75.36
- Complete overview of frontend architecture and deployment
- Authentication system documentation
- All features explained (job submission, monitoring, interactive elements)
- Component structure and key files
- Local development guide
- Deployment process and CI/CD
- Common issues and troubleshooting
- API integration patterns
- Future enhancement ideas
This provides a complete reference for understanding and working with the frontend.
Address CodeRabbit PR review feedback:
- Add admin auth to internal worker endpoints and bulk delete
- Add request timeouts to all HTTP calls (credential_manager, tests)
- Fix async sleep in lyrics worker to not block event loop
- Fix background task garbage collection in review routes
- Fix exception chaining and f-string issues
- Remove duplicate emulators_running() function
- Update tests to include auth headers and test 401 responses
- Update remote CLI to actually use KARAOKE_GEN_AUTH_TOKEN env var
- Document authentication in README
The admin token is read from ADMIN_TOKENS env var (comma-separated).
WorkerService now includes the token when calling internal endpoints.
This marks the first successful end-to-end run of karaoke-gen-remote with
the Google Cloud backend. All core features are now working:
- README.md completely rewritten with comprehensive documentation:
- Both CLI tools (karaoke-gen, karaoke-gen-remote) fully documented
- API reference for backend endpoints
- Infrastructure deployment guide with Pulumi
- Style configuration examples
- Output file structure
- BACKEND-FEATURE-PARITY-PLAN.md updated to reflect:
- All core processing features complete
- All distribution features working (YouTube, Dropbox, GDrive, Discord)
- Future architecture plans for shared pipeline refactor
- Comprehensive testing/deployment sections
- Job model enhanced with request_metadata field for operational tracking