Skip to content

fix(sync): export v3 audio purge counter from backend-sync (SCA-3376) - #26329

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/sync-purge-metric
Nov 26, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/sync-purge-metric

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

What

Adds omi_conversations_v3_audio_purges_total to the backend-sync Cloud Run GMP sidecar's explicit metric allow-list (backend/deploy/cloud_run_gmp_sync.yaml), and pins it with a scrape test.

Why

The Path E v3 audio purge (#26294) runs on backend-sync as well as backend. utils/conversations/v3/metrics.py pre-creates all five outcome series at import, but the sync sidecar keeps an explicit omi_conversations_v3_* list instead of omi_.*, and that list omitted this counter. During the 2026-11-25 Sync canary of 6e3204f2, GMP returned the series only for service_name="backend" (85 series) and nothing for backend-sync. "No series" on Sync cannot be told apart from a purge path that never ran (SCA-3376).

The backend sidecar (cloud_run_gmp_sidecar.yaml) keeps omi_.* and is unchanged.

Failure-Class: FC-metric-dropped-by-scrape-allowlist

Tests

  • New tests/unit/test_v3_audio_purge_metric_is_scraped.py. It fails on the unfixed allow-list and passes with the fix: 1 failed / 2 passed before, 3 passed after.
  • Ran with the related scrape and sidecar suites (test_projection_finish_guard_metrics_are_scraped.py, test_attach_cloud_run_gmp_sidecar.py, test_monitoring_telemetry_contract.py): 186 passed.

Rollback

Revert this commit. It changes observability only, with no runtime or behaviour change. It takes effect on the next backend-sync deploy.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

The backend-sync GMP sidecar keeps an explicit omi_conversations_v3_* allow-list
that omitted omi_conversations_v3_audio_purges_total, so Path E purge outcomes
read as no series on Sync. Add it and pin it with a scrape test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T03:27:57.313542Z 2b9eadc New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

# Conflicts:
#	backend/deploy/cloud_run_gmp_sync.yaml
@Git-on-my-level
Git-on-my-level merged commit 17cdad6 into main Nov 26, 2026
66 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/sync-purge-metric branch November 26, 2026 04:10
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.

1 participant