Skip to content

fix(backend): size notes loop deadline at the whole transport budget - #22226

Merged
Git-on-my-level merged 4 commits into
mainfrom
fix/errfix-1018-gcp-timeouts-py-115-traceback-most-recen
Oct 21, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
fix/errfix-1018-gcp-timeouts-py-115-traceback-most-recen

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Error group

{"source": "gcp", "service": "backend", "group": "timeouts.py:115 | Traceback (most recent call last):\n  File \"/app/utils/conversations/process_conversation.py\", line 653, in _ge", "count": 3, "id": "gcp:backend-timeouts-py-115-traceback-most-recent-call-last-file-app-utils-conversations-process-conversation-py-l", "fingerprint": "fp:18636057478641c3"}

Root cause

timeouts.py:115 is CPython's asyncio/timeouts.py: the asyncio.timeout() context manager raising TimeoutError on expiry. The app frame is _get_structured's llm_input_dedupe.notes( call — line 653 in the backend image deployed 2026-10-18 — i.e. whole-transcript conversation structuring. The only uncaught asyncio.timeout on that path is shaped_agent.run_loop's budget deadline, and notes_mount() sized it at CONVERSATION_STRUCTURE_TIMEOUT_SECONDS (60s): the same value get_llm('conv_structure') already enforces per attempt. That made the loop deadline a total wall-clock ceiling equal to a single transport attempt — it fired while the first attempt (or the direct lane's single retry, max_retries=1) was still in flight, and _get_structured mapped the bare TimeoutError to the generic 500, so the conversation finalized with no title, summary, or action items.

This is the sixth instance of the class documented in backend/utils/llm/model_config.py and backend/tests/unit/test_conversation_structure_provider_timeout.py (2026-08-19 APITimeoutError at the 15s background deadline; 2026-09-04 httpcore.ReadTimeout on the app summary; 2026-09-05 memory_l1): a user-waiting whole-transcript summary call dying on a deadline smaller than the route's 120s TimeoutMiddleware budget.

Fix

Size the notes mount's run_loop deadline at the transport's whole recovery budget — NOTES_LOOP_DEADLINE_SECONDS = 2 * CONVERSATION_STRUCTURE_TIMEOUT_SECONDS (120s, the route budget) — instead of one attempt. The per-attempt deadline stays where the earlier fixes of this class designated it: the provider client via get_llm('conv_structure'). This mirrors the existing messaging.summarize mount, which already sizes its loop deadline at 2x its lane's per-attempt deadline (30s over 15s).

No behavior change for calls that fit in one attempt; the loop deadline stops preempting the client-owned deadline and its retry.

Verification

  • python3.11 -m py_compile backend/utils/llm/conversation_processing.py backend/tests/unit/test_conversation_structure_provider_timeout.py — clean.
  • pytest tests/unit/test_conversation_structure_provider_timeout.py (locked backend venv):
..........                                                       [100%]
10 passed in 3.71s
  • Both new tests fail against the unfixed source (git stash of the source change): 2 failed, 8 deselected.
  • Neighboring suites sharing the notes/shaped machinery: pytest tests/unit/test_notes_tier_escalation.py tests/unit/test_shaped_agent.py tests/unit/test_action_item_extraction_policy.py tests/unit/test_conversation_title_people.py:
217 passed, 137 warnings in 11.35s

Includes two new regression tests:

  • test_notes_loop_deadline_covers_the_whole_transport_recovery_budget — pins the 2x sizing.
  • test_first_attempt_past_the_per_attempt_deadline_still_summarizes — a model turn slower than one per-attempt deadline but inside the mount budget produces the summary; before the fix run_loop cancelled it and raised TimeoutError.

Failure-Class: none

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T21:16:23.419171Z fce590d 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7cde7e486a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Git-on-my-level

Copy link
Copy Markdown
Member Author

errfix finisher: CI red on Backend unit shard 6/6. Failing log tail:

Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6059828Z cachedir: .pytest_cache
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6060355Z rootdir: /home/runner/work/omi/omi/backend
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6060924Z configfile: pyproject.toml
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6061658Z plugins: anyio-4.4.0, asyncio-1.4.0, langsmith-0.8.5, pytest_httpserver-1.1.5, xdist-3.8.0
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6062871Z asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6540461Z collecting ... collected 130 items / 14 deselected / 116 selected
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6579638Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6600612Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookHealthLuaScript::test_first_failure_returns_no_action PASSED [  0%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6602280Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookHealthLuaScript::test_day1_warning_returns_1 PASSED [  1%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6630341Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookHealthLuaScript::test_day2_warning_returns_2 PASSED [  2%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6660420Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookHealthLuaScript::test_disable_returns_3 PASSED [  3%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6690317Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookHealthLuaScript::test_redis_error_returns_no_action PASSED [  4%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6750281Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookHealthLuaScript::test_error_message_truncated PASSED [  5%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6760498Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookSuccessReset::test_success_calls_lua_script PASSED [  6%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6800382Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookSuccessReset::test_success_redis_error_does_not_raise PASSED [  6%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6830358Z tests/unit/test_webhook_auto_disable.py::TestAppWebhookSuccessReset::test_success_clears_redirect_state PASSED [  7%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6850247Z tests/unit/test_webhook_auto_disable.py::TestIsAppWebhookDisabled::test_disabled_returns_true PASSED [  8%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6880271Z tests/unit/test_webhook_auto_disable.py::TestIsAppWebhookDisabled::test_not_disabled_returns_false PASSED [  9%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6900399Z tests/unit/test_webhook_auto_disable.py::TestIsAppWebhookDisabled::test_no_data_returns_false PASSED [ 10%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6930339Z tests/unit/test_webhook_auto_disable.py::TestIsAppWebhookDisabled::test_redis_error_returns_false PASSED [ 11%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6960191Z tests/unit/test_webhook_auto_disable.py::TestClearAppWebhookHealth::test_clear_deletes_key PASSED [ 12%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.6980308Z tests/unit/test_webhook_auto_disable.py::TestClearAppWebhookHealth::test_clear_redis_error_does_not_raise PASSED [ 12%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7000586Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookHealthTracking::test_below_threshold_returns_false PASSED [ 13%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7030329Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookHealthTracking::test_threshold_exceeded_returns_true PASSED [ 14%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7060407Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookHealthTracking::test_redis_error_returns_false PASSED [ 15%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7100393Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookHealthTracking::test_success_resets_failure_count_and_disabled PASSED [ 16%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7140438Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_append_query_params_preserves_existing_query PASSED [ 17%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7170416Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_retry_delays_can_be_overridden_by_env PASSED [ 18%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7336002Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_retries_until_success PASSED [ 18%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7480859Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_does_not_retry_deterministic_4xx[400] PASSED [ 19%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7610617Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_does_not_retry_deterministic_4xx[401] PASSED [ 20%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7760627Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_does_not_retry_deterministic_4xx[404] PASSED [ 21%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.7890563Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_does_not_retry_deterministic_4xx[410] PASSED [ 22%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8070641Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_does_not_retry_deterministic_4xx[422] PASSED [ 23%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8180490Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_still_retries_transient_4xx[408] PASSED [ 24%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8350611Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_still_retries_transient_4xx[429] PASSED [ 25%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8450702Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_post_dev_webhook_enqueues_exhausted_delivery_without_blocking_event_loop PASSED [ 25%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8500539Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_enqueue_dev_webhook_dlq_caps_entries_and_sets_ttl PASSED [ 26%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8650363Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_dev_webhook_disabled_on_threshold PASSED [ 27%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8730626Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_dev_webhook_success_records_health PASSED [ 28%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.8820465Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_dev_webhook_exception_records_failure PASSED [ 29%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9001002Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookAutoDisable::test_realtime_transcript_retry_success_records_success_only PASSED [ 30%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9040434Z tests/unit/test_webhook_auto_disable.py::TestDisableAppInFirestore::test_disable_updates_firestore PASSED [ 31%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9060554Z tests/unit/test_webhook_auto_disable.py::TestDisableAppInFirestore::test_disable_firestore_error_does_not_raise PASSED [ 31%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9090353Z tests/unit/test_webhook_auto_disable.py::TestGetAppWebhookHealth::test_returns_decoded_data PASSED [ 32%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9110421Z tests/unit/test_webhook_auto_disable.py::TestGetAppWebhookHealth::test_returns_single_endpoint_data PASSED [ 33%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9130346Z tests/unit/test_webhook_auto_disable.py::TestGetAppWebhookHealth::test_returns_none_when_no_data PASSED [ 34%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9160683Z tests/unit/test_webhook_auto_disable.py::TestGetAppWebhookHealth::test_returns_none_on_redis_error PASSED [ 35%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9200330Z tests/unit/test_webhook_auto_disable.py::TestGetAppWebhookHealth::test_returns_none_for_single_endpoint_no_data PASSED [ 36%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9400455Z tests/unit/test_webhook_auto_disable.py::TestChatToolCircuitBreaker::test_disabled_app_returns_early PASSED [ 37%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9590668Z tests/unit/test_webhook_auto_disable.py::TestChatToolCircuitBreaker::test_circuit_breaker_open_returns_early PASSED [ 37%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:33.9870846Z tests/unit/test_webhook_auto_disable.py::TestChatToolCircuitBreaker::test_success_records_health PASSED [ 38%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0170842Z tests/unit/test_webhook_auto_disable.py::TestChatToolCircuitBreaker::test_failure_records_health PASSED [ 39%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0460863Z tests/unit/test_webhook_auto_disable.py::TestChatToolCircuitBreaker::test_timeout_records_failure PASSED [ 40%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0490438Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_no_endpoints_returns_400 PASSED [ 41%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0500707Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_webhook_unhealthy_blocks_reenable PASSED [ 42%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0540977Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_webhook_healthy_allows_reenable PASSED [ 43%]============================= test session starts ==============================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0570374Z platform linux -- Python 3.11.15, pytest-8.4.1, pluggy-1.6.0 -- /home/runner/work/omi/omi/backend/.venv/bin/python
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0571413Z cachedir: .pytest_cache
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0599977Z rootdir: /home/runner/work/omi/omi/backend
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0629852Z configfile: pyproject.toml
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0630671Z plugins: anyio-4.4.0, asyncio-1.4.0, langsmith-0.8.5, pytest_httpserver-1.1.5, xdist-3.8.0
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0632089Z asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0633168Z collecting ... 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0634092Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_mcp_non_2xx_allowed PASSED [ 43%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0660359Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_chat_tool_reachability_check_allows_non_2xx PASSED [ 44%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0661963Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_timeout_blocks_reenable PASSED [ 45%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0663487Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_connect_error_blocks_reenable PASSED [ 46%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0700316Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_all_endpoints_checked PASSED [ 47%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0720536Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_second_webhook_failure_blocks_even_if_first_healthy PASSED [ 48%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0747011Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_updated_chat_tools_preferred_over_stale_db PASSED [ 49%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0770586Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_exact_duplicate_url_deduped PASSED [ 50%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0793816Z tests/unit/test_webhook_auto_disable.py::TestReEnableRouterBehavior::test_same_host_different_path_both_checked PASSED [ 50%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0820373Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_full_graduated_timeline PASSED [ 51%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0845688Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_notifications_are_idempotent PASSED [ 52%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0870446Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_just_under_thresholds_no_action PASSED [ 53%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0900274Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_python_sim_matches_lua_source_thresholds PASSED [ 54%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0910566Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_success_between_failures_resets_window PASSED [ 55%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0930541Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_no_success_between_failures_still_disables PASSED [ 56%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.0960575Z tests/unit/test_webhook_auto_disable.py::TestLuaTimeProgression::test_same_second_success_failure_does_not_prevent_disable PASSED [ 56%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1130501Z tests/unit/test_webhook_auto_disable.py::TestDisableAction::test_disable_action_disables_and_notifies_owner PASSED [ 57%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1313558Z tests/unit/test_webhook_auto_disable.py::TestDisableAction::test_disable_preserves_user_enabled_sets PASSED [ 58%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1340745Z tests/unit/test_webhook_auto_disable.py::TestLuaSourceVerification::test_lua_checks_thresholds_in_descending_order PASSED [ 59%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1369600Z tests/unit/test_webhook_auto_disable.py::TestLuaSourceVerification::test_lua_sets_disabled_flag PASSED [ 60%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1392960Z tests/unit/test_webhook_auto_disable.py::TestLuaSourceVerification::test_lua_checks_idempotent_flags PASSED [ 61%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1420458Z tests/unit/test_webhook_auto_disable.py::TestLuaSourceVerification::test_lua_first_failure_initializes_all_fields PASSED [ 62%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1440240Z tests/unit/test_webhook_auto_disable.py::TestLuaSourceVerification::test_lua_checks_last_success_before_elapsed PASSED [ 62%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1640735Z tests/unit/test_webhook_auto_disable.py::TestMarketplaceIntegrationHealthPaths::test_action_1_warns_owner PASSED [ 63%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.1810550Z tests/unit/test_webhook_auto_disable.py::TestMarketplaceIntegrationHealthPaths::test_action_2_final_warning PASSED [ 64%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2000619Z tests/unit/test_webhook_auto_disable.py::TestMarketplaceIntegrationHealthPaths::test_action_0_does_nothing PASSED [ 65%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2170850Z tests/unit/test_webhook_auto_disable.py::TestMarketplaceIntegrationHealthPaths::test_action_4_notifies_owner_without_disabling PASSED [ 66%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2418917Z tests/unit/test_webhook_auto_disable.py::TestMarketplaceIntegrationHealthPaths::test_http_connect_error_records_failure PASSED [ 67%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2450552Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookEdgeCases::test_below_threshold_99_no_disable PASSED [ 68%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2480624Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookEdgeCases::test_at_threshold_100_triggers_disable PASSED [ 68%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2510481Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookEdgeCases::test_already_disabled_returns_no_action PASSED [ 69%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2540437Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookEdgeCases::test_dev_success_clears_disabled_flag PASSED [ 70%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2751103Z tests/unit/test_webhook_auto_disable.py::TestMCPToolHealthTracking::test_mcp_disabled_app_returns_early PASSED [ 71%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.2922646Z tests/unit/test_webhook_auto_disable.py::TestMCPToolHealthTracking::test_mcp_circuit_breaker_open_returns_early PASSED [ 72%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3120672Z tests/unit/test_webhook_auto_disable.py::TestMCPToolHealthTracking::test_mcp_success_records_health PASSED [ 73%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3320363Z tests/unit/test_webhook_auto_disable.py::TestMCPToolHealthTracking::test_mcp_failure_records_health PASSED [ 74%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3463882Z tests/unit/test_webhook_auto_disable.py::TestLoadAppToolsSkipsDisabled::test_disabled_app_skipped PASSED [ 75%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3650464Z tests/unit/test_webhook_auto_disable.py::TestLoadAppToolsSkipsDisabled::test_non_disabled_app_loaded PASSED [ 75%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3690231Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookManualReEnable::test_success_on_enable_clears_state PASSED [ 76%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3710390Z tests/unit/test_webhook_auto_disable.py::TestDisabledCacheInMemory::test_caches_false_avoids_repeated_get PASSED [ 77%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3730381Z tests/unit/test_webhook_auto_disable.py::TestDisabledCacheInMemory::test_caches_true_avoids_repeated_get PASSED [ 78%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3767325Z tests/unit/test_webhook_auto_disable.py::TestDisabledCacheInMemory::test_cache_expires_after_ttl PASSED [ 79%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3790517Z tests/unit/test_webhook_auto_disable.py::TestDisabledCacheInMemory::test_redis_error_returns_false_not_cached PASSED [ 80%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3830353Z tests/unit/test_webhook_auto_disable.py::TestDisabledCacheInMemory::test_clear_invalidates_disabled_cache PASSED [ 81%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3880447Z tests/unit/test_webhook_auto_disable.py::TestDisabledCacheInMemory::test_disable_in_firestore_sets_cache_true PASSED [ 81%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3900465Z tests/unit/test_webhook_auto_disable.py::TestCacheRaceSafety::test_stale_read_does_not_overwrite_disable PASSED [ 82%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3940391Z tests/unit/test_webhook_auto_disable.py::TestCacheRaceSafety::test_stale_read_does_not_overwrite_clear PASSED [ 83%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.3980285Z tests/unit/test_webhook_auto_disable.py::TestCacheRaceSafety::test_generation_increments_on_disable PASSED [ 84%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4000639Z tests/unit/test_webhook_auto_disable.py::TestSuccessDebounce::test_success_calls_lua_script PASSED [ 85%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4027443Z tests/unit/test_webhook_auto_disable.py::TestSuccessDebounce::test_failure_not_debounced PASSED [ 86%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4060340Z tests/unit/test_webhook_auto_disable.py::TestSuccessDebounce::test_dev_webhook_success_not_debounced PASSED [ 87%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4080351Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_first_success_writes PASSED [ 87%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4103704Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_second_success_within_window_debounced PASSED [ 88%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4130392Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_success_after_window_writes PASSED [ 89%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4140337Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_recovery_success_bypasses_debounce PASSED [ 90%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4159457Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_same_second_recovery_writes PASSED [ 91%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4190362Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_after_recovery_debounce_resumes PASSED [ 92%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4215685Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_different_apps_independent PASSED [ 93%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4240464Z tests/unit/test_webhook_auto_disable.py::TestSuccessLuaScript::test_multi_pod_recovery_sequence PASSED [ 93%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4260296Z tests/unit/test_webhook_auto_disable.py::TestCacheEviction::test_disabled_cache_evicts_when_over_max PASSED [ 94%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4293136Z tests/unit/test_webhook_auto_disable.py::TestPerEndpointHealthIsolation::test_endpoint_a_success_does_not_mask_endpoint_b_failure PASSED [ 95%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4350611Z tests/unit/test_webhook_auto_disable.py::TestPerEndpointHealthIsolation::test_different_endpoints_use_different_redis_keys PASSED [ 96%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4381238Z tests/unit/test_webhook_auto_disable.py::TestPerEndpointHealthIsolation::test_disable_on_any_endpoint_sets_app_level_flag PASSED [ 97%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4560803Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookIntegrationPaths::test_conversation_created_records_success PASSED [ 98%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.4721077Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookIntegrationPaths::test_conversation_created_records_failure PASSED [ 99%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.9801216Z tests/unit/test_webhook_auto_disable.py::TestDevWebhookIntegrationPaths::test_conversation_created_auto_disables PASSED [100%]collected 8 items
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.9829596Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.9866253Z tests/unit/test_ws_i_hardening.py::test_atomic_bump_uses_firestore_transaction_primitive PASSED [ 12%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:34.9921188Z tests/unit/test_ws_i_hardening.py::test_sequential_source_generation_bumps_are_monotonic PASSED [ 25%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.0040656Z tests/unit/test_ws_i_hardening.py::test_retract_path_is_one_idempotent_atomic_source_replacement PASSED [ 37%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.0140229Z tests/unit/test_ws_i_hardening.py::test_persist_evidence_preserves_redaction_status_on_active_reprocess_refresh PASSED [ 50%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.1141155Z tests/unit/test_ws_i_hardening.py::test_persist_evidence_keeps_terminal_state_and_apply_rejects_same_id_replay[missing-ephemeral_already_missing-ephemeral_already_missing] PASSED [ 62%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.1240980Z tests/unit/test_ws_i_hardening.py::test_persist_evidence_keeps_terminal_state_and_apply_rejects_same_id_replay[tombstoned-deleted_by_user-deleted_by_user] PASSED [ 75%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.1350880Z tests/unit/test_ws_i_hardening.py::test_persist_evidence_keeps_terminal_state_and_apply_rejects_same_id_replay[purged-account_purged-account_purged] PASSED [ 87%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.4840988Z tests/unit/test_ws_i_hardening.py::test_persist_evidence_defaults_redaction_when_no_prior_value PASSED [100%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.4842176Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.4870064Z ============================== 8 passed in 1.56s ===============================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.7637957Z ##[endgroup]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.7810654Z ##[group]tests/unit/test_x_posts_list_endpoint.py
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.7982878Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8009859Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8040282Z =============================== warnings summary ===============================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8041303Z utils/other/raw_audio.py:4
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8070680Z   /home/runner/work/omi/omi/backend/utils/other/raw_audio.py:4: DeprecationWarning: 'audioop' is deprecated and slated for removal in Python 3.13
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8100011Z     import audioop
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8129638Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8130296Z .venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:323
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8162143Z   /home/runner/work/omi/omi/backend/.venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:323: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8189990Z     warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8219637Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8250213Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8251698Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8280117Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8310087Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8330354Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8360078Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8361134Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8364741Z   /home/runner/work/omi/omi/backend/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298: PydanticDeprecatedSince20: `json_encoders` is deprecated. See https://docs.pydantic.dev/2.11/concepts/serialization/#custom-serializers for alternatives. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8367650Z     warnings.warn(
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8367910Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8368302Z -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:35.8399500Z ================ 116 passed, 14 deselected, 9 warnings in 8.04s ================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6380563Z ============================= test session starts ==============================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6400721Z platform linux -- Python 3.11.15, pytest-8.4.1, pluggy-1.6.0 -- /home/runner/work/omi/omi/backend/.venv/bin/python
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6430041Z cachedir: .pytest_cache
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6459871Z rootdir: /home/runner/work/omi/omi/backend
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6460869Z configfile: pyproject.toml
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6490276Z plugins: anyio-4.4.0, asyncio-1.4.0, langsmith-0.8.5, pytest_httpserver-1.1.5, xdist-3.8.0
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.6520324Z asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.7440245Z collecting ... PASSED [ 50%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.7616381Z tests/unit/test_runtime_image_contracts.py::test_jit_projection_declares_optional_plugin_sdk_fallback PASSED [ 54%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:36.9954721Z tests/unit/test_runtime_image_contracts.py::test_structured_model_fallback_imports_without_plugin_sdk ::endgroup::
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.0765460Z PASSED [ 58%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.0824791Z tests/unit/test_runtime_image_contracts.py::test_dependency_probe_checks_dotted_module_when_namespace_exists PASSED [ 62%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.0874748Z tests/unit/test_runtime_image_contracts.py::test_dependency_probe_reports_the_underlying_import_exception PASSED [ 66%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.0895569Z tests/unit/test_runtime_image_contracts.py::test_image_smoke_is_network_isolated_and_uses_registered_entrypoint PASSED [ 70%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.0935718Z tests/unit/test_runtime_image_contracts.py::test_image_smoke_uses_registered_python_executable PASSED [ 75%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.0976327Z tests/unit/test_runtime_image_contracts.py::test_memory_maintenance_smoke_uses_a_non_production_openai_key PASSED [ 79%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.1016695Z tests/unit/test_runtime_image_contracts.py::test_build_smoke_uses_the_registered_dockerfile_and_context PASSED [ 83%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.1050511Z tests/unit/test_runtime_image_contracts.py::test_load_contracts_dockerfile_filter_skips_non_matching_entries PASSED [ 87%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.1071828Z tests/unit/test_runtime_image_contracts.py::test_pusher_installs_typesense_because_finalization_indexes_conversations PASSED [ 91%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.1415996Z tests/unit/test_runtime_image_contracts.py::test_pusher_posthog_pin_matches_backend_cohort_flag_client PASSED [ 95%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.3008118Z tests/unit/test_runtime_image_contracts.py::test_pusher_lock_covers_mentor_v2_lazy_imports PASSED [100%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.3009605Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.3010212Z ======================== 24 passed in 152.54s (0:02:32) ========================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:37.4161500Z ##[endgroup]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5264145Z collected 22 items
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5264666Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5290807Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[javascript:alert(1)] PASSED [  4%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5305657Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[javascript://x%0aalert(1)] PASSED [  9%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5322114Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[data:text/html,<script>alert(1)</script>] PASSED [ 13%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5340745Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[vbscript:msgbox(1)] PASSED [ 18%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5357068Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[file:///etc/passwd] PASSED [ 22%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5371598Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[ftp://x.test] PASSED [ 27%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5385681Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[omi://done\nX-Injected: 1] PASSED [ 31%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5399750Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[omi://done\r\nsmi://evil] PASSED [ 36%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5413427Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[omi://a\tb] PASSED [ 40%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5726269Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 45%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5993490Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[] PASSED [ 50%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5994725Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[   ] PASSED [ 54%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5996369Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[None] PASSED [ 59%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5997562Z tests/unit/test_x_connector_hardening.py::test_unsafe_redirect_urls_rejected[42] PASSED [ 63%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.5998820Z tests/unit/test_x_connector_hardening.py::test_safe_redirect_urls_pass[omi://oauth/success] PASSED [ 68%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.6000524Z tests/unit/test_x_connector_hardening.py::test_safe_redirect_urls_pass[omi-computer://x/callback] PASSED [ 72%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.6001973Z tests/unit/test_x_connector_hardening.py::test_safe_redirect_urls_pass[omi-computer-dev://done] PASSED [ 77%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.6003358Z tests/unit/test_x_connector_hardening.py::test_safe_redirect_urls_pass[https://h.omi.me/x/done] PASSED [ 81%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.6004761Z tests/unit/test_x_connector_hardening.py::test_safe_redirect_urls_pass[http://localhost:3000/cb] PASSED [ 86%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.6006269Z tests/unit/test_x_connector_hardening.py::test_redirect_html_escapes_meta_and_js_contexts PASSED [ 90%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:39.6007523Z tests/unit/test_x_connector_hardening.py::test_redirect_html_round_trip_clean PASSED [ 95%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4838991Z tests/unit/test_x_connector_hardening.py::test_build_authorize_url_fails_closed_on_bad_redirect PASSED [100%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4840644Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4841242Z =============================== warnings summary ===============================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4842393Z .venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:323
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4845005Z   /home/runner/work/omi/omi/backend/.venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:323: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4847500Z     warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4848281Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4849137Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4850421Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4851443Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4852467Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4853462Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4854461Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4855476Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4858564Z   /home/runner/work/omi/omi/backend/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298: PydanticDeprecatedSince20: `json_encoders` is deprecated. See https://docs.pydantic.dev/2.11/concepts/serialization/#custom-serializers for alternatives. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4861637Z     warnings.warn(
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4862022Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4862557Z -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:40.4863461Z ======================== 22 passed, 8 warnings in 5.52s ========================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.0989979Z collected 4 items
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.0990345Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.1012576Z tests/unit/test_x_posts_list_endpoint.py::test_list_x_posts_limit_has_documented_bounds_and_default PASSED [ 25%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.1026432Z tests/unit/test_x_posts_list_endpoint.py::test_list_x_posts_returns_posts_wrapped PASSED [ 50%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.1039403Z tests/unit/test_x_posts_list_endpoint.py::test_list_x_posts_passes_kind_and_limit PASSED [ 75%]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.3515694Z tests/unit/test_x_posts_list_endpoint.py::test_list_x_posts_rejects_invalid_kind PASSED [100%]::endgroup::
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9701634Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9701715Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9702467Z =============================== warnings summary ===============================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9703585Z .venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:323
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9706563Z   /home/runner/work/omi/omi/backend/.venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:323: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9709636Z     warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9710154Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9710584Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9711539Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9712713Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9713644Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9714568Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9715623Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9716536Z .venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9719716Z   /home/runner/work/omi/omi/backend/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:298: PydanticDeprecatedSince20: `json_encoders` is deprecated. See https://docs.pydantic.dev/2.11/concepts/serialization/#custom-serializers for alternatives. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9722368Z     warnings.warn(
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9722570Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9722899Z -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:41.9723752Z ======================== 4 passed, 8 warnings in 4.48s =========================
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7404714Z ##[endgroup]
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7471615Z Backend unit test file failed: tests/unit/test_omi_qos_tiers.py (status 1)
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7520252Z 
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7520555Z Backend unit suite failed.
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7521290Z Reproduce only the failed file(s) with the same test.sh runner and timing guard:
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7522002Z   : > /tmp/omi-backend-unit-failures.txt
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7522679Z   echo tests/unit/test_omi_qos_tiers.py >> /tmp/omi-backend-unit-failures.txt
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7523688Z   BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-backend-unit-failures.txt bash test.sh
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7524708Z Do not use bare pytest for fast-unit timing failures; it omits test.sh's guard settings.
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7833757Z ##[error]Process completed with exit code 1.
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.7958252Z Post job cleanup.
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8831272Z [command]/usr/bin/git version
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8871444Z git version 2.55.0
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8906447Z Temporarily overriding HOME='/home/runner/work/_temp/1491ccc2-6a7c-4545-a78a-554112cbee1e' before making global git config changes
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8907710Z Adding repository directory to the temporary git global config as a safe directory
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8912895Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/omi/omi
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8943990Z Removing SSH command configuration
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8950547Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.8985837Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9232771Z Removing HTTP extra header
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9238133Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9274828Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9522869Z Removing includeIf entries pointing to credentials config files
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9530326Z [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9560092Z includeif.gitdir:/home/runner/work/omi/omi/.git.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9561094Z includeif.gitdir:/home/runner/work/omi/omi/.git/worktrees/*.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9562055Z includeif.gitdir:/github/workspace/.git.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9563012Z includeif.gitdir:/github/workspace/.git/worktrees/*.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9569787Z [command]/usr/bin/git config --local --get-all includeif.gitdir:/home/runner/work/omi/omi/.git.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9593664Z /home/runner/work/_temp/git-credentials-8746e9d2-0d0e-4edb-941f-87299c6b1278.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9605906Z [command]/usr/bin/git config --local --unset includeif.gitdir:/home/runner/work/omi/omi/.git.path \/home\/runner\/work\/_temp\/git\-credentials\-8746e9d2\-0d0e\-4edb\-941f\-87299c6b1278\.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9645592Z [command]/usr/bin/git config --local --get-all includeif.gitdir:/home/runner/work/omi/omi/.git/worktrees/*.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9670582Z /home/runner/work/_temp/git-credentials-8746e9d2-0d0e-4edb-941f-87299c6b1278.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9681666Z [command]/usr/bin/git config --local --unset includeif.gitdir:/home/runner/work/omi/omi/.git/worktrees/*.path \/home\/runner\/work\/_temp\/git\-credentials\-8746e9d2\-0d0e\-4edb\-941f\-87299c6b1278\.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9717306Z [command]/usr/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9740607Z /github/runner_temp/git-credentials-8746e9d2-0d0e-4edb-941f-87299c6b1278.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9749986Z [command]/usr/bin/git config --local --unset includeif.gitdir:/github/workspace/.git.path \/github\/runner_temp\/git\-credentials\-8746e9d2\-0d0e\-4edb\-941f\-87299c6b1278\.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9786351Z [command]/usr/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git/worktrees/*.path
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9810469Z /github/runner_temp/git-credentials-8746e9d2-0d0e-4edb-941f-87299c6b1278.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9818846Z [command]/usr/bin/git config --local --unset includeif.gitdir:/github/workspace/.git/worktrees/*.path \/github\/runner_temp\/git\-credentials\-8746e9d2\-0d0e\-4edb\-941f\-87299c6b1278\.config
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:42.9862191Z [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:43.0200879Z Removing credentials config '/home/runner/work/_temp/git-credentials-8746e9d2-0d0e-4edb-941f-87299c6b1278.config'
Backend unit shard 6/6	UNKNOWN STEP	2026-10-18T20:44:43.0406193Z Cleaning up orphan processes

David Zhang and others added 2 commits October 19, 2026 08:42
The shaped notes mount reused the per-attempt transport deadline as
run_loop's total deadline, so whole-transcript structuring that outlived
one attempt (or its direct-lane retry) died as a bare TimeoutError from
asyncio/timeouts.py:115 and mapped to the generic 500 - the sixth
instance of the class documented in model_config and
test_conversation_structure_provider_timeout.py. Size the mount at 2x
the per-attempt deadline (the route's 120s budget), matching
messaging.summarize's mount sizing; the provider client keeps owning the
per-attempt deadline.
…lsite scan

The qos-tiers source scan counts get_llm('...') occurrences in raw source,
including comments; the new rationale comment contained the literal call and
inflated the conv_structure count to 2, failing shard 6/6. Reword it to name
the client instead of quoting the call.
@Git-on-my-level
Git-on-my-level force-pushed the fix/errfix-1018-gcp-timeouts-py-115-traceback-most-recen branch from 7cde7e4 to 3652a93 Compare October 19, 2026 02:03
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor run summary (context 8eebde2abc):

CI red fixed (push 3652a93): Backend unit shard 6/6 failed test_conversation_processing_all_keys because the qos-tiers source scan counts get_llm('…') occurrences in raw source — comments included — and the new rationale comment quoted the literal get_llm('conv_structure') call, inflating the callsite count to 2. Reworded the comment to name the conv_structure client without quoting the call; behavior unchanged. Also rebased onto current origin/main (34 commits). All checks green on the new head.

On the deadline-sizing thread (PRRT_kwDOLkKqys6tuQTY) — keeping 120s deliberately, no change:

The run_loop deadline is a backstop, not the timing owner. Per-attempt timing belongs to the transport: request_timeout=60s per attempt plus the direct lane's single retry. Any inner bound tighter than the work it guards reintroduces exactly the incident this PR fixes — the pre-PR 60s loop deadline cancelled an in-flight attempt/retry and the conversation finalized with no title/summary/action items.

  • Derive from remaining request time: the mount is static and shared across routes with different budgets (sync route 120s, finalization-job route 1500s); coupling it to per-request remaining time adds plumbing for a bound that would still sit below the transport's own budget.
  • Shorten the attempts: the 60s per-attempt foreground deadline is itself a prior fix of this incident class (_FOREGROUND_TIMEOUT_FEATURES in model_config.py).
  • Raise endpoint timeouts: route timeout policy is outside this PR's scope.

Also note the consuming handlers (POST /v1/conversations, reprocess) are sync defs in the threadpool — a TimeoutMiddleware 504 abandons the client awaitable but does not cancel the structuring work, which still completes and persists. Worst case on the double-slow scenario is a stale client response, not the data loss this PR addresses.

Review finding on the 2x mount sizing: the rationale comment claimed the
direct lane's retry fits 'inside the route's 120s budget' — it does not
(2x60s plus the auth/db preamble exceeds the middleware default on sync
create/reprocess), so the outer wait_for 504s the response before the loop
deadline is reached. The sizing is still right, but for reasons the comment
did not state: the sync 504 cuts only the response (plain-def handler on a
threadpool thread, notes loop on its own asyncio.run loop), so the recovery
completes out-of-band under the admission guard, with the orphan sweep as
the crash floor; the whole budget actually fits on the durable finalizer's
1500s lease, and EPISODE_DEADLINES.md keeps sync at one 60s attempt with no
route increase. Rewrote the comment around that boundary and pinned it with
a test that fails if the deadline is ever headroom-capped under the route
budget — the regression the thread's suggested remedy would reintroduce on
the finalizer lane. No behavior change.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b13a7e3ae9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Review finding on 2x: the SDK sleeps before its retry (0.5s doubling
backoff after a timed-out attempt, Retry-After up to 60s after a retried
status) and the per-attempt deadline buys each HTTP attempt afresh, so
two timeout-length attempts need strictly more than 2x60s; an exactly-2x
loop deadline still cancelled the viable retry in its final stretch -
the same bare TimeoutError this PR prevents. Size the mount at 3x
(two attempts plus one inter-attempt delay bound, 180s). Disabling the
transport retry is not taken: the direct lane is the documented recovery
path and owns its deadline/retry budget. 180s fits the durable
finalizer's 1500s lease - the lane where the whole budget runs - with
120s of headroom; sync create/reprocess still 504 the response at the
middleware's 120s while the threadpool handler finishes recovery
out-of-band. Tests pin the 3x sizing, the >2x headroom, and the
no-headroom-cap-under-route-budget boundary.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor run summary (context c83a30e1fe):

Retry-backoff headroom fixed (push fce590d): the Codex P2 on the notes loop deadline was correct — the SDK sleeps before its retry (0.5s doubling backoff after a timed-out attempt, Retry-After up to 60s after a retried status) and each HTTP attempt gets a fresh per-attempt deadline, so two timeout-length attempts need strictly more than 2×60s; the exactly-2× loop deadline could still cancel a viable retry in its final stretch. NOTES_LOOP_DEADLINE_SECONDS now sizes at 3× (180s = two attempts + one inter-attempt delay bound). Disabling the transport retry was not taken — the direct lane is the documented recovery path; and 180s stays inside the durable finalizer's 1500s lease, while sync create/reprocess keep the middleware's 120s cut on the response only (boundary from b13a7e3a).

Tests pin the 3× sizing, the >2× backoff headroom, and the no-headroom-cap boundary (all three fail against the previous 2× source); focused suites pass (331 tests across the deadline/qos-tiers/shaped-agent/notes-tier/title-people files) and CI is green on fce590d. Thread resolved.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Autonomous repair exhausted (review failed 3x (timeout)); 0 fixup rounds, attempt 3/3. PR left OPEN for human triage.\n\nLast findings excerpt:\nreview failed 3x (timeout)

@Git-on-my-level
Git-on-my-level merged commit 76fee8d into main Oct 21, 2026
56 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/errfix-1018-gcp-timeouts-py-115-traceback-most-recen branch October 21, 2026 08:22
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
…typed 429, not the generic 500 (#22630)

# fix(backend): answer a credit-exhausted BYOK OpenRouter account as a
typed 429, not the generic 500

## Error group

```
{"source": "gcp", "service": "backend", "group": "process_conversation.py:633 | fastapi.exceptions.HTTPException: 500: Error processing conversation, please try again later", "count": 12, "id": "gcp:backend-process-conversation-py-633-fastapi-exceptions-httpexception-500-error-processing-conversation-please-", "fingerprint": "fp:9dd85ca8e8f50576"}
```

Same fingerprint family as the py-632 predecessor fixed by #21779
(direct Anthropic credit exhaustion). That fix deployed; the group
reopened on the new image (first line-633 event 2026-10-19T14:52Z, 68
events by 19:07Z).

## Root cause

`_get_structured`'s composition boundary maps every unmapped failure to
the generic 500. The recurrence is driven by the direct OpenRouter BYOK
notes lane: BYOK users whose key is OpenRouter's are routed to
`https://openrouter.ai/api/v1` (`_get_or_create_openrouter_llm`), and
when that account's credits cannot cover the request, OpenRouter answers
HTTP 402 and the openai SDK raises `APIStatusError` before generation.
Retries can never succeed, so clients re-poll into the same 500. Prod
evidence (project `based-hardware`, 2026-10-19):

- 19 of the 68 line-633 events since the current image deployed carry
this signature (69 occurrences since 2026-10-16); the remainder are
provider transport failures
(TimeoutError/APIConnectionError/InternalServerError, the family #22226
addresses) plus one interpreter-shutdown deploy artifact.
- Full chained traceback for the exact group frame
(`/app/utils/conversations/process_conversation.py:633`):
  ```
File "/app/utils/conversations/process_conversation.py", line 610, in
_get_structured
    structured = llm_input_dedupe.notes(
File "/app/utils/llm/conversation_processing.py", line 466, in
model_turn
    response = await call_model.ainvoke(messages)
  File "/opt/venv/.../openai/_base_client.py", line 1716, in request
    raise self._make_status_error_from_response(err.response) from None
openai.APIStatusError: Error code: 402 - {'error': {'message': 'This
request requires more
credits, or fewer max_tokens. You requested up to 65535 tokens, but can
only afford 65032.
To increase, visit https://openrouter.ai/settings/credits and upgrade to
a paid account',
'code': 402, 'metadata': {'limit_source': 'openrouter_credits', ...}}}
  ```

This is the same account state the platform already answers as
"throttled BYOK, not a server bug": the gateway classifies it
`byok_quota` and answers 429, and the composition boundary already types
the gateway envelope (#21779) and direct Anthropic's 400 "credit balance
is too low" (#21779). The direct OpenRouter 402 spelling had no
detection, so it fell into the generic 500 bucket — the user gets an
unhelpful "try again later" for a state only they can fix, and this
error group keeps reopening.

## Fix

`backend/utils/llm/gateway_error_contract.py`:

- Add `_OPENROUTER_CREDIT_EXHAUSTED_MARKERS` (`requires more credits`,
`openrouter_credits`): OpenRouter's stable spellings of the
credit-exhaustion account state, in the message and as the
`limit_source` metadata value. Marker text is used only for
classification — never logged or echoed.
- `is_byok_quota_error()` now also classifies HTTP 402 carrying either
marker as BYOK quota, mirroring the existing direct-Anthropic 400
branch. All other 402s and every other exception keep the privacy-safe
generic 500.
- `conversation_processing_http_exception()` is unchanged: the newly
classified errors now map to the existing typed 429 `{'code':
'byok_quota', ...}` detail, matching the contract the gateway lane
already enforces.

No fallback to the managed lane is introduced; the response only stops
misreporting a fixable account state as a server error.

## Verification

- `py_compile` on both touched files: OK.
- Extended the suite built from the live prod signature with real
`openai.APIStatusError` instances
(`backend/tests/unit/test_conversation_structure_byok_quota.py`):
  ```
  9 passed  (test_conversation_structure_byok_quota.py)
17 passed (test_conversation_structure_byok_quota.py +
test_conversation_structure_provider_timeout.py)
57 passed (test_process_conversation_usage_context.py — contract
consumers unchanged)
  ```
- `black --line-length 120 --skip-string-normalization --check`: both
files clean.

Failure-Class: none


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/22630?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/22630?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F22630&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
#22226 added test_first_attempt_past_the_per_attempt_deadline_still_summarizes
with a 0.1 s per-attempt budget after #22797's real-clock-budget ratchet
landed, so "Backend unit guardrails" fails on main for every PR that runs it
(main's own push CI does not select the job). Scale the per-attempt budget
to 0.5 s and the slow turn to 0.75 s: same ratio, still past one attempt and
inside the mount's import-time whole-transport deadline. The sleep is wall
time, so the CPU-time fast-unit guard is unaffected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
…dget (#23013)

## Summary

Fixes main-red "Backend unit guardrails". It has been failing since
#22226 (76fee8d), because
`test_first_attempt_past_the_per_attempt_deadline_still_summarizes`
patched `CONVERSATION_STRUCTURE_TIMEOUT_SECONDS` to 0.1s. That is below
the 0.5s floor enforced by `test_real_clock_budget_ratchet`.

The test now uses a 0.5s per-attempt deadline and a 0.75s slow turn. It
still proves the same thing: a turn past one per-attempt deadline, but
inside the mount's 3× recovery budget, still summarizes. There's no
skip, quarantine or allowlist entry.

## Verification

- `backend/test.sh` over
`test_conversation_structure_provider_timeout.py` and
`test_real_clock_budget_ratchet.py`: 12 passed.

## Product invariants affected

None. This is a test-only change.

UI-Evidence: none -- test only

Failure-Class: none

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


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/23013?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23013?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23013&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit to Git-on-my-level/omi that referenced this pull request Oct 21, 2026
…dget

BasedHardware#22226's test patched CONVERSATION_STRUCTURE_TIMEOUT_SECONDS to 0.1s, under the
real-clock ratchet's 0.5s floor, turning Backend unit guardrails red on main.
Scale the per-attempt deadline to 0.5s and the slow turn to 0.75s: still past
one attempt and inside the mount's 3x recovery budget.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
…dget

#22226's test patched CONVERSATION_STRUCTURE_TIMEOUT_SECONDS to 0.1s, under the
real-clock ratchet's 0.5s floor, turning Backend unit guardrails red on main.
Scale the per-attempt deadline to 0.5s and the slow turn to 0.75s: still past
one attempt and inside the mount's 3x recovery budget.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 1f62393)
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