mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
feat(error-monitor): watch decide's mb-refresh job (#1067)
## Summary - Adds `mb-refresh` (karaoke-decide's new weekly MusicBrainz → BigQuery Cloud Run Job, nomadkaraoke/karaoke-decide PR to follow) to `MONITORED_CLOUD_RUN_JOBS`, so failed refreshes and staleness warnings raise error-monitor patterns / Discord alerts. - Version bump 0.245.0 → 0.245.1. ## Testing - `pytest tests/unit/services/error_monitor` — 361 passed (count + membership assertions updated). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Reliability** * The weekly MusicBrainz data refresh is now included in service monitoring. Issues with the refresh can be detected alongside problems with other monitored services, improving visibility into the availability of refreshed music data. * **Release** * This update is version 0.245.1. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
87a36bd2a5
commit
5b2a0f8c3e
3 files changed
+5
-2
No files matched your search
@@ -53,6 +53,8 @@ MONITORED_CLOUD_RUN_JOBS: list[str] = [
|
||||
"lyrics-transcription-job",
|
||||
"audio-separation-job",
|
||||
"audio-download-job",
|
||||
# karaoke-decide weekly MusicBrainz dump -> BigQuery refresh
|
||||
"mb-refresh",
|
||||
]
|
||||
|
||||
# Gen2 Cloud Functions log as cloud_run_revision, not cloud_function.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "karaoke-gen"
|
||||
version = "0.245.0"
|
||||
version = "0.245.1"
|
||||
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"
|
||||
|
||||
@@ -26,7 +26,7 @@ class TestMonitoredServiceLists:
|
||||
def test_cloud_run_jobs_count(self):
|
||||
from backend.services.error_monitor import config
|
||||
|
||||
assert len(config.MONITORED_CLOUD_RUN_JOBS) == 4
|
||||
assert len(config.MONITORED_CLOUD_RUN_JOBS) == 5
|
||||
|
||||
def test_cloud_run_jobs_contains_expected(self):
|
||||
from backend.services.error_monitor import config
|
||||
@@ -35,6 +35,7 @@ class TestMonitoredServiceLists:
|
||||
assert "lyrics-transcription-job" in config.MONITORED_CLOUD_RUN_JOBS
|
||||
assert "audio-separation-job" in config.MONITORED_CLOUD_RUN_JOBS
|
||||
assert "audio-download-job" in config.MONITORED_CLOUD_RUN_JOBS
|
||||
assert "mb-refresh" in config.MONITORED_CLOUD_RUN_JOBS
|
||||
|
||||
def test_gen2_cloud_functions_monitored_as_cloud_run_services(self):
|
||||
# Gen2 Cloud Functions log under resource.type=cloud_run_revision,
|
||||
|
||||
Reference in new issue
Block a user