xworkmate-app/test/runtime
Haitao Pan 01515f95ca
ci: TestFlight opt-in toggle + Xcode 27 build fixes (#54)
* ci: gate TestFlight behind opt-in toggle + Xcode 27 build fixes

TestFlight is now opt-in (default OFF). A workflow_dispatch boolean
`enable_testflight` (or the `ENABLE_TESTFLIGHT` repo variable) drives a
`prepare.outputs.testflight_enabled` flag that gates the macOS
app-store-pkg build leg and both testflight_ios/testflight_macos upload
legs. Missing Apple signing secrets no longer fail the normal DMG/IPA
release path (package-macos-app-store-pkg.sh hard-exits without them).

Xcode 27 build compatibility:
- Align Apple deployment targets so no pod sits below the app minimum
  (Xcode 27 rejects this): macOS pods + RunnerTests -> 15.6, iOS pods
  -> 15.5 to match the Runner targets.
- Add a `lipo` shim (scripts/xcode-tools/lipo) wired onto PATH in the
  iOS/macOS build phases; Xcode 27 only accepts one `-verify_arch`
  architecture per call while Flutter passes them all at once.
- macOS project hygiene: correct PrivacyInfo.xcprivacy path, set app
  display name + LSApplicationCategoryType.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test: make temp-dir cleanup resilient to concurrent-write races

The assistant execution target tests deleted their temp HOME/workspace
dirs with a raw recursive delete in addTearDown. A background flush
(e.g. controller dispose still persisting state) can keep writing into
the dir while the delete walks it, so the delete races and fails with
"Directory not empty" (errno 39), failing the test on CI.

Route all unguarded teardown deletes through the existing
_resilientDelete helper (re-check existence + retry), and harden that
helper so its final fallback never re-throws — a temp-dir cleanup
failure must never fail a test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Haitao Pan <manbuzhe2009@qq.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 07:27:09 +08:00
..
acp_endpoint_paths_test.dart fix: sync bridge artifacts and route openclaw tasks 2026-05-03 12:14:35 +08:00
app_controller_thread_workspace_binding_test.dart test: align gateway recovery expectations 2026-06-26 19:52:27 +08:00
assistant_archived_tasks_test.dart fix: require yes before deleting archived tasks 2026-05-20 16:38:48 +08:00
assistant_connection_state_test.dart fix(settings): update account panel and assistant connection state 2026-06-17 21:01:56 +08:00
assistant_execution_target_test.dart ci: TestFlight opt-in toggle + Xcode 27 build fixes (#54) 2026-06-30 07:27:09 +08:00
assistant_model_display_test.dart fix: remove polluted test task sessions 2026-05-19 08:21:45 +08:00
bridge_runtime_cleanup_test.dart fix: prioritize managed bridge sync state 2026-06-16 06:20:13 +08:00
desktop_thread_artifact_service_test.dart fix(artifacts): prioritize PDF deliverables in sidebar 2026-06-28 10:55:29 +08:00
file_store_support_test.dart fix: stabilize iOS login storage and mobile settings 2026-05-25 09:43:57 +08:00
gateway_acp_client_auth_test.dart test: align gateway recovery expectations 2026-06-26 19:52:27 +08:00
gateway_profile_cleanup_test.dart chore: remove stale gateway settings and app ffi paths 2026-05-13 16:45:54 +08:00
gateway_runtime_bridge_skills_test.dart test: keep layered flutter tests aligned with repo 2026-06-26 19:39:14 +08:00
go_runtime_dispatch_desktop_client_test.dart fix: route gateway execution through managed bridge 2026-05-02 12:10:08 +08:00
local_file_revealer_test.dart fix: reveal artifact files without blocking 2026-06-28 14:49:41 +08:00
runtime_controllers_settings_account_test.dart fix: preserve primary bridge auth token 2026-06-18 10:01:19 +08:00
ui_feature_manifest_desktop_surface_test.dart chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
ui_feature_manifest_mobile_surface_test.dart Clean C/S surfaces down to assistant and settings 2026-04-13 12:14:12 +08:00