Skip to content

ci: run iOS widget UI tests in a parallel job - #675

Open
lowrt wants to merge 1 commit into
mainfrom
ci/parallelize-ios-tests
Open

lowrt wants to merge 1 commit into
mainfrom
ci/parallelize-ios-tests

Conversation

@lowrt

@lowrt lowrt commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

這個 PR 做了什麼

將 iOS Widget UI 測試拆成獨立 job,與 RunnerTests 及 IPA 建置平行執行,縮短 CI 等待時間。

  • RunnerTests 與 IPA 建置維持在同一個 job。
  • WidgetFixtureUITests 改由獨立 job 準備環境、啟動模擬器並執行。
  • 兩個 job 各自產生測試摘要,並在失敗時上傳獨立命名的診斷 artifact。
  • 僅調整 CI 工作流程,沒有修改 App 正式程式碼、測試案例或測試覆蓋範圍。
  • 未新增合併保護或必要檢查規則。

依 GitHub Actions 執行結果比較:

  • 原先整體耗時:49:02。
  • RunnerTests+IPA:26:21。
  • Widget UI Tests:32:55。
  • 調整後整體耗時:33:11,減少 15:51,約 32.3%。

以上為單次執行比較,實際耗時仍受 runner 排隊、快取及環境影響。

相關 issue

沒有對應的 issue。

怎麼驗

  • tool/check/workflows.sh 通過,actionlint 無問題。
  • tool/check/workflow_security.sh 通過,zizmor 無新增問題。
  • git diff --check 通過。
  • GitHub Actions 執行時間顯示兩個 job 已平行執行,整體耗時主要由 Widget UI Tests 決定。

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyze 與 mise exec -- flutter test 通過
  • 新的使用者可見字串都走 AppLocalizations,沒有寫死
  • CI 全部通過(gh pr checks:每一項都是 pass 或 skipped)—— 沒過不能合併,
    見 pr.md
  • 有 UI 變更的話:用的是 AppSpacing / AppRadius / AppMotion,
    深色模式看過,文字對比度可接受

@lowrt
lowrt requested a review from a team November 20, 2026 09:21
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.67%. Comparing base (3b1020d) to head (45d77d4).

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants