Skip to content

Stabilize UI tests on Xcode 26.6 - #1002

Merged
Kyle-Ye merged 4 commits into
mainfrom
optimize/ui_fix
Aug 22, 2026
Merged

Kyle-Ye merged 4 commits into
mainfrom
optimize/ui_fix

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Keep -index-ignore-system-modules unconditional so Tuist-generated projects do not duplicate shared Swift settings and availability macros.
  • Skip the Compute snapshot suites that stack overflow when executed as part of the full UI test plan.
  • Wait for the shared snapshot reference lock instead of letting later matrix jobs exit before running their UI tests.
  • Refresh package resolutions after the dependency alignment.

Details

Tuist issue tuist/tuist#12377 causes SDK-conditioned OTHER_SWIFT_FLAGS to inherit and repeat the shared flags. The upstream fix is tuist/tuist#12411; the setting remains unconditional until the project uses a Tuist version containing that fix.

The affected Compute snapshot suites recurse through view aliases until TestingHost exhausts its stack. They are disabled only for the Compute attribute graph vendor and remain enabled for other configurations. The shared reference-image recorder now polls its lock every 10 seconds for up to 30 minutes and removes a completed run lock only when its contents still match the inspected owner.

Validation

  • Availability macros occur once in generated iOS and macOS compiler commands.
  • The local Compute UI test plan completes without TestingHost crashes after the targeted skips.
  • Lock contenders wait for the active recorder rather than skipping their UI test execution.

Kyle-Ye commented Aug 16, 2026

Copy link
Copy Markdown
Member Author

/uitest update

@github-actions github-actions Bot added area: tooling Developer tooling, package manifests, Tuist, scripts, formatting, or release tooling. type: build Build system, packaging, toolchain, release, or compiler support. labels Aug 16, 2026
@codecov

codecov Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.56%. Comparing base (0dfa923) to head (9ba3b39).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1002       +/-   ##
===========================================
+ Coverage   15.35%   27.56%   +12.21%     
===========================================
  Files         702      745       +43     
  Lines       50398    57217     +6819     
===========================================
+ Hits         7737    15772     +8035     
+ Misses      42661    41445     -1216     

☔ 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.

@Kyle-Ye Kyle-Ye changed the title Fix duplicate availability macros in Tuist projects Stabilize UI tests on Xcode 26.6 Aug 22, 2026
@Kyle-Ye
Kyle-Ye marked this pull request as ready for review August 22, 2026 04:19
@Kyle-Ye

Kyle-Ye commented Aug 22, 2026

Copy link
Copy Markdown
Member Author

/uitest

@tuist

tuist Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 1030 0 1030 58598f0ff

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 2m 5s 58598f0ff

@github-actions github-actions Bot added area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: ci GitHub Actions, test infrastructure, runners, checks, or automation. type: tests Test coverage, test infrastructure, snapshots, or test-only changes. labels Aug 22, 2026
@Kyle-Ye
Kyle-Ye merged commit 0229d43 into main Aug 22, 2026
11 of 14 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/ui_fix branch August 22, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: tooling Developer tooling, package manifests, Tuist, scripts, formatting, or release tooling. type: build Build system, packaging, toolchain, release, or compiler support. type: ci GitHub Actions, test infrastructure, runners, checks, or automation. type: tests Test coverage, test infrastructure, snapshots, or test-only changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant