Repository navigation
fix: restore main unit tests broken by #25610 and vendor the 404'd onnxruntime SwiftPM wrapper - #25669
Merged
Conversation
Stub the new tombstone short-circuit in the account-gate 409 delete test, and move deleteConversation and its retry helper verbatim into APIClient+ConversationDelete.swift so APIClient.swift is back under the 1500-line ratchet. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Panel review-20261118t081048-8e66 F1: new Swift sources belong in a feature directory (desktop/macos/AGENTS.md); sibling APIClient extensions already live in Sources/Services/APIClient/. Flow coverage path updated. Failure-Class: layout-rule Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 404 github.com/microsoft/onnxruntime-swift-package-manager returns "Repository not found" since 2026-11-18, so every desktop build without a warm SwiftPM cache fails to resolve (Desktop Swift CI on any PR that touches desktop/macos). Vendor the wrapper at the pinned revision b7fb7f7 (1.24.2, MIT) under desktop/macos/vendor/ and depend on it by path. The ONNX Runtime binary is still downloaded from download.onnxruntime.ai with its upstream SHA256 checksum. Verified: cold `swift package resolve` with an empty cache, `swift build`, and APIClientConversationDeleteTests (8 pass). Rollback: restore the .package(url:) line, re-resolve, delete the vendor dir. Failure-Class: external-dependency-removed Co-Authored-By: Claude Opus 5.5 <[email protected]>
… checks Upstream files carry trailing whitespace; keep them byte-identical to the pinned revision instead of reformatting third-party sources. Model files are marked binary. Failure-Class: external-dependency-removed Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
TRIAGE review-20261118t100237-0f82: F1 deferred (follow-up). A diff confined to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Main at 44d0a4f still fails two backend unit tests that #25610's selective CI did not run, so every PR that merges main inherits red shards (for example #25630 shards 2 and 4):
test_account_gate_busy_http.py::test_conversation_delete_route_maps_takeover_to_409: fix: surface conversation delete outcomes and clear stale rows #25610 added a tombstone short-circuit (conversation_tombstones.is_deleted) ahead of the delete route. The test did not stub it, so it reached the real Firestore client in the no-ADC unit sandbox. The test now stubs it as live.test_desktop_rest_inventory.py::test_apiclient_swift_line_count_ratchet: fix: surface conversation delete outcomes and clear stale rows #25610 grewAPIClient.swiftto 1521 lines (max 1500).deleteConversationandconversationDeleteRetryDelaymove verbatim intoAPIClient+ConversationDelete.swift(sameextension APIClient, internal helpers only).APIClient.swiftis now 1468 lines.The other six #25610 failures were already fixed on main by #25658 and #25661.
Product invariants affected
INV-AUTH-1: APIClient.swift is under the auth-session invariant. The moved
deleteConversationis unchanged and keeps the same owner-bound auth path (resolvedRequestAuthPolicy,validateExpectedOwner,performAuthenticatedData); no auth, session or owner-transition behavior changes.How it was verified
pytest tests/unit/test_account_gate_busy_http.py tests/unit/test_desktop_rest_inventory.py tests/unit/test_delete_conversation_cancels_task_reminders.pyvia omi-heavy: 28 passed.swift test --filter APIClientConversationDeleteTestsin desktop/macos/Desktop: the whole package compiled and 8 tests passed. Note:https://github.com/microsoft/onnxruntime-swift-package-manager.gitcurrently returns "Repository not found" on a fresh clone, so this ran offline (--skip-update) from the existing SwiftPM repository cache.UI evidence
UI-Evidence: none -- non-UI Swift file move (no View declarations) and a backend test stub
Failure class (fixes)
Failure-Class: none
Desktop dependency outage (added after first CI run)
github.com/microsoft/onnxruntime-swift-package-managernow returns 404, so Desktop Swift CI fails on every PR that touchesdesktop/macos(main stays green only because its pushes skip the desktop build). This PR vendors the wrapper at the exact pinned revisionb7fb7f7(1.24.2, MIT) underdesktop/macos/vendor/onnxruntime-swift-package-manager/and depends on it by path. The ONNX Runtime binary still comes fromdownload.onnxruntime.ai, checked against its upstream SHA256. Provenance and rollback:VENDORED.mdin that directory.Verified locally: cold
swift package resolve(empty cache, no URL rewrite),swift build,swift test --filter APIClientConversationDeleteTests(8 pass).