-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor FXIOS-12796 [Swift 6 Migration] Fix main actor isolation warnings that are Swift 6 errors in the XCUITests suite - Batch 2 #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: coderabbit_full_base__refactor_fxios-12796_swift_6_migration_fix_main_actor_isolation_warnings_that_are_swift_6_errors_in_the_xcuitests_suite_-_batch_2_pr2
Are you sure you want to change the base?
Changes from all commits
479bf8f
a036560
a7d891e
b5b21d0
ed8f2a5
81d28b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,10 +43,10 @@ class FeatureFlaggedTestSuite: FeatureFlaggedTestBase { | |
| addLaunchArgument(jsonFileName: jsonFileName, featureName: featureName) | ||
| } | ||
|
|
||
| override func setUp() { | ||
| override func setUp() async throws { | ||
| continueAfterFailure = false | ||
| setUpExperimentVariables() | ||
| setUpApp() | ||
| setUpExperimentVariables() | ||
| setUpLaunchArguments() | ||
|
Comment on lines
+46
to
50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Initialize experiment variables before building launch arguments.
💡 Suggested fix (restore safe ordering) override func setUp() async throws {
continueAfterFailure = false
- setUpApp()
- setUpExperimentVariables()
+ setUpExperimentVariables()
+ setUpApp()
setUpLaunchArguments()
setUpScreenGraph()
}🤖 Prompt for AI Agents |
||
| setUpScreenGraph() | ||
| } | ||
|
Comment on lines
+46
to
52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -name "*.swift" | head -20Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 1292 🏁 Script executed: git ls-files | grep -i test | grep -i swift | head -20Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 1296 🏁 Script executed: cat -n firefox-ios/firefox-ios-tests/Tests/XCUITests/FeatureFlaggedTestBase.swift | head -80Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 2901 🏁 Script executed: # Find the parent class of FeatureFlaggedTestBase
rg "class FeatureFlaggedTestBase" -A 2Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 472 🏁 Script executed: # Search for BaseTestCase definition
rg "class BaseTestCase" -A 20Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 6392 🏁 Script executed: cat -n firefox-ios/firefox-ios-tests/Tests/XCUITests/BaseTestCase.swift | head -150Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 7051 🏁 Script executed: # Check how XCTestCase.setUp is typically used
rg "override func setUp" firefox-ios/firefox-ios-tests/Tests/XCUITests/ -A 5 | head -100Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 9898 🏁 Script executed: # Look for other test classes that extend BaseTestCase
rg "class.*: BaseTestCase" firefox-ios/firefox-ios-tests/Tests/XCUITests/Repository: qodo-benchmark/firefox-ios-combined-coderabbit Length of output: 6767 Refactor to call FeatureFlaggedTestSuite.setUp() bypasses the entire parent initialization chain, inconsistent with BaseTestCase and the broader test codebase. While the intentional delay of 🤖 Prompt for AI Agents |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: qodo-benchmark/firefox-ios-combined-coderabbit
Length of output: 156
🏁 Script executed:
Repository: qodo-benchmark/firefox-ios-combined-coderabbit
Length of output: 158
🏁 Script executed:
Repository: qodo-benchmark/firefox-ios-combined-coderabbit
Length of output: 639
🏁 Script executed:
Repository: qodo-benchmark/firefox-ios-combined-coderabbit
Length of output: 22447
🏁 Script executed:
Repository: qodo-benchmark/firefox-ios-combined-coderabbit
Length of output: 219
Add missing
trykeyword on throwing async super call.super.setUp()isasync throws; the call requirestry.Suggested fix
🤖 Prompt for AI Agents