Compare commits

..
Author SHA1 Message Date
Andrew Beveridge ☄️andClaude b39f37610c feat(frontend): Display brand code prefix on completed jobs (#243)
## Summary
- Display the brand code (e.g., "NOMAD-1194:") as a prefix on completed
job titles in the Recent Jobs UI
- Brand code is already stored in `state_data.brand_code` when jobs
complete with Dropbox distribution
- This change simply displays that existing data

## Changes
- `frontend/components/job/JobCard.tsx`: Add brand code prefix to job
title display

## Testing
- [x] Unit tests pass (128/128)
- [x] Manual review of code change

## Review
- [x] CodeRabbit CLI review completed locally
- [x] No issues found

@coderabbitai ignore

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-08 15:31:53 -05:00
Andrew Beveridge ☄️andClaude Opus 4.5 6da758dc0c docs: Add zone availability notes for c4d instances (#246)
## Summary
- Documents zone availability lesson learned during c4d-highcpu-32
deployment
- Updates performance investigation status to Phase 2 Complete

## Changes
- `docs/LESSONS-LEARNED.md`: Added note about c4d instance zone
availability (us-central1-c works when us-central1-a/b have resource
exhaustion)
- `docs/archive/2026-01-08-performance-investigation.md`: Updated status
from "In Progress" to "Complete"

## Testing
- [x] Documentation only - no code changes

## Review
- [x] Docs-only change, no code review needed

@coderabbitai ignore

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 15:30:53 -05:00
Andrew Beveridge ☄️andClaude Opus 4.5 98ea1519a1 fix(infra): Use us-central1-c for encoding worker (c4d availability) (#245)
## Summary

Quick fix for encoding worker deployment failure - c4d-highcpu-32 is
unavailable in us-central1-a.

## Changes

- Added `ENCODING_WORKER_ZONE = us-central1-c` in config.py
- Updated encoding_worker_vm.py to use the new zone constant
- Deleted the terminated instance in us-central1-a

## Context

PR #244 merged but Pulumi failed with:
> The zone 'projects/nomadkaraoke/zones/us-central1-a' does not have
enough resources available

Tested: us-central1-c has c4d-highcpu-32 capacity.

@coderabbitai ignore

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 19:27:27 +00:00
5 changed files with 6 additions and 3 deletions

No files matched your search

+2
View File
@@ -105,6 +105,8 @@ Audio separation and lyrics transcription run in parallel:
**Important**: C4D instances require `hyperdisk-balanced` disk type, not `pd-balanced`.
**Zone availability**: High-end C4D instances (e.g., c4d-highcpu-32) may not be available in all zones. During deployment, us-central1-a and us-central1-b failed with "does not have enough resources available" while us-central1-c succeeded. Added `ENCODING_WORKER_ZONE` config to explicitly specify zone instead of using the default region zone.
**Scripts**: See `scripts/benchmark_candidates.sh` for multi-instance benchmarking orchestration.
## Common Gotchas
@@ -1,7 +1,7 @@
# Performance Investigation: Karaoke Generation Pipeline
**Date**: 2026-01-08
**Status**: Phase 2 In Progress - Encoding Infrastructure Benchmarking
**Status**: Phase 2 Complete - Encoding Infrastructure Upgraded
**Goal**: Reduce total karaoke generation time from ~30 minutes to ~10 minutes
## Executive Summary
+1
View File
@@ -183,6 +183,7 @@ export function JobCard({ job, onRefresh }: JobCardProps) {
{/* Header row with title and non-interactive badge */}
<div className="flex items-start justify-between gap-2">
<p className="font-medium truncate" style={{ color: 'var(--text)' }}>
{job.state_data?.brand_code && `${job.state_data.brand_code}: `}
{job.artist || "Unknown"} - {job.title || "Unknown"}
</p>
{job.non_interactive && (
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "karaoke-gen-frontend",
"version": "0.82.0",
"version": "0.82.1",
"private": true,
"scripts": {
"build": "next build",
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "karaoke-gen"
version = "0.99.2"
version = "0.99.3"
description = "Generate karaoke videos with synchronized lyrics. Handles the entire process from downloading audio and lyrics to creating the final video with title screens."
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
license = "MIT"