Refactor FXIOS-14485 [Swift 6 Migration] Re-enable Swift 6 on the Client at the project level#32383
Refactor FXIOS-14485 [Swift 6 Migration] Re-enable Swift 6 on the Client at the project level#32383
Conversation
💪 Quality guardian1 tests files modified. You're a champion of test coverage! 🚀 🧹 Tidy commitJust 4 file(s) touched. Thanks for keeping it clean and review-friendly! 💬 Description craftsmanGreat PR description! Reviewers salute you 🫡 ✅ New file code coverageNo new file detected so code coverage gate wasn't ran. Client.app: Coverage: 38.38
Generated by 🚫 Danger Swift against 7e6b8cf |
|
Can we lower the warnings count again with this re-enablement? |
You're a ninja, I opened a draft so no one would get bothered by this yet! 😆 Yep I'm doing that right now and fixing some warnings. I think I can get it lower than the current 7 warnings because some other warnings got introduced recently that aren't even Swift 6 related. |
| let selectedTab: Tab? | ||
| do { | ||
| selectedTab = try windowManager.tabManager(for: windowUUID).selectedTab | ||
| } catch { | ||
| logger.log( | ||
| "handleBypassCertificateWarning: Failed to fetch selected tab - \(String(describing: error))", | ||
| level: .warning, | ||
| category: .certificate | ||
| ) | ||
| return | ||
| } |
There was a problem hiding this comment.
There was a warning because nothing in windowManager.tabManager(for: windowUUID).selectedTab actually throws, so I removed the whole try block.
📜 Tickets
Jira ticket
Github issue
💡 Description
Because of some issues with the stricter Swift 6 compiler stripping code out of our release builds, we decided to revert our migration to Swift 6 in #31793.
Original migration happened in #31483.
We are now testing re-enabling the migration as we have a
pipeline_build_and_test_releasepipeline from the Test Engineering team to run our UI tests against release builds. So I will trigger that to validate that the Swift 6 migration hasn't caused further undetected issues in release builds specifically.📝 Checklist