Skip to content

ci: harden desktop follow-up verification - #11462

Merged
Git-on-my-level merged 5 commits into
mainfrom
codex/followup-11447-final
Aug 13, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
codex/followup-11447-final

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 13, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Prevent a merged PR's closed bookkeeping run from cancelling its still-running exact-SHA macOS verifier, and retry the Linux Electron package install when its network-only postinstall download transiently disconnects. These are the two CI failures observed on merged PR #11447.

Product invariants affected

none

How it was verified

  • python3 .github/scripts/test_desktop_swift_ci_contract.py — 26 passed
  • python3 .github/scripts/test_desktop_windows_ci_contract.py — 1 passed
  • actionlint .github/workflows/desktop-swift-ci.yml .github/workflows/desktop-windows-ci.yml — passed
  • diff-scoped local manifest — 15 checks passed
  • git diff --check — passed

Tests

  • .github/scripts/test_desktop_swift_ci_contract.py now pins the close-event concurrency boundary that would have caught the cancelled verifier/failed aggregate.
  • .github/scripts/test_desktop_windows_ci_contract.py pins bounded retry plus fail-closed exhaustion for the Electron postinstall download.

Failure class (fixes)

Failure-Class: none

New guards (only when adding a check or ratchet)

Both guards cite merged PR #11447. They are workflow-specific because one protects GitHub event/concurrency semantics and the other protects Electron's package-download boundary; neither is a product-runtime primitive.

Scoped cleanups

The development backend deploy after #11447 is separately blocked by one missing live Firestore composite index; this PR does not mix index provisioning into CI reliability fixes.

Review in cubic

Keep merged-PR close events from cancelling exact-SHA macOS evidence and retry transient Electron postinstall downloads in the Linux package smoke. Add workflow contract coverage for both PR #11447 failures.

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@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: 7bd691ba13

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

Comment thread .github/workflows/desktop-swift-ci.yml Resolved
Comment thread .github/workflows/desktop-swift-ci.yml Resolved

@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: 176c4e351b

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

Comment thread .github/workflows/desktop-swift-ci.yml Resolved
@Git-on-my-level
Git-on-my-level merged commit aaa0eb0 into main Aug 13, 2026
24 of 25 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/followup-11447-final branch August 13, 2026 04:07

@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

provider_url, headers, payload = _proactive_provider_request(request, uid, request_id)

P2 Badge Release quota when provider selection fails

When both OMI_LLM_GATEWAY_URL and OPENAI_API_KEY are absent, _proactive_provider_request raises the new 503 after _consume_quota has already reserved a request. Because this call is outside the try and every _release_quota path, repeated requests receive no model response but still exhaust the user's daily allowance; select the provider before reserving quota or release the reservation on this failure.


api_key = os.getenv("OPENAI_API_KEY", "").strip()
if not api_key:
raise HTTPException(status_code=503, detail="Proactive model provider is not configured")
payload["model"] = _DIRECT_MODELS[request.operation.value]

P2 Badge Record the direct-provider fallback

Whenever OMI_LLM_GATEWAY_URL is absent, this branch changes the request from the governed gateway lane to direct OpenAI without calling the shared fallback emitter; the returned envelope also continues to report fallback_class="unknown". In the beta configuration this change targets, operators therefore cannot distinguish direct-provider traffic, cost, or degraded routing from normal gateway service, despite the repository contract requiring provider-changing branches to emit record_fallback.

AGENTS.md reference: AGENTS.md:L91-L91


payload.pop("prompt_cache_key", None)

P2 Badge Preserve OpenAI's prompt cache key

For every direct-provider reasoning request, this removes the cache_key supplied by ContextProactivityEngine, even though backend/utils/llm/model_config.py::supports_prompt_cache explicitly identifies prompt_cache_key as supported by GPT-5 models and the repository's live integration tests verify that OpenAI accepts it. Only the gateway-specific breakpoint/options need sanitizing; dropping the key prevents repeated bucket analyses from being routed to the same OpenAI prefix cache, increasing latency and token cost precisely while this fallback is active.


payload["model"] = _DIRECT_MODELS[request.operation.value]

P2 Badge Preserve the proactive lanes' reasoning effort

The direct fallback replaces only the model name and therefore omits the provider options that define these lanes: test_desktop_proactive_lanes_are_pinned_and_structured requires reasoning_effort=minimal for extraction and low for reasoning, and the gateway executor normally copies those values into the OpenAI request. In every no-gateway beta request this instead uses the provider default, changing the latency, cost, and reasoning behavior of both operations from the configuration the feature was tested against; include the authoritative per-operation effort in the direct payload.

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

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