-
Notifications
You must be signed in to change notification settings - Fork 325
CHANGE: Increase timeouts in UI tests CI instabilities #2198
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: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## develop #2198 +/- ##
===========================================
+ Coverage 68.10% 68.11% +0.01%
===========================================
Files 367 367
Lines 53610 53610
===========================================
+ Hits 36513 36519 +6
+ Misses 17097 17091 -6
Flags with carried forward coverage won't be shown. Click here to find out more. see 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
Something must be off when it doesn't complete in 20 sec |
I agree. I'll just disable them for now, wanted to make sure increasing them more would solve but I guess not. |
Tests usually pay with 4.3 and they also fail so this is an attempt to fix the instability.
c7ad62f
to
099e53a
Compare
Ok actually increasing the timeout worked when I previously thought it didn't. I forgot to set the timeout for Failures we're seeing are on trunk for unrelated tests or setups. |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.
If it works it works. I wonder though what takes >5 seconds?
I didn't dig any further, but it seems a slow editor can cause this. This workaround is based on the discussion mentioned in Slack https://unity.slack.com/archives/C04RDRXRJ1L/p1751025119641109?thread_ts=1751017695.090649&cid=C04RDRXRJ1L |
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.
I like this change very much, just wonder why wouldn't we apply Copilot's default value suggestions?
Copilot gave me a different idea and I changed it now, but to the class where the methods we use in testing are defined, |
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.
Pull Request Overview
This PR increases the default timeout for UI test wait routines from 5 seconds to a shared constant of 10 seconds to address CI instability.
- Introduce
kDefaultTimeoutSecs
constant (10s) inUIToolkitBaseTestWindow
- Update all wait methods in
UIToolkitBaseTestWindow
to use the new constant - Change default parameters in
InputActionsEditorTests
to reference the shared timeout and remove an outdated comment
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
Assets/Tests/InputSystem.Editor/UIToolkitBaseTestWindow.cs | Added kDefaultTimeoutSecs constant and updated default timeout parameters in wait methods |
Assets/Tests/InputSystem.Editor/InputActionsEditorTests.cs | Swapped hard-coded timeout defaults for kDefaultTimeoutSecs and removed an obsolete comment |
Comments suppressed due to low confidence (1)
Assets/Tests/InputSystem.Editor/InputActionsEditorTests.cs:48
- The constant
kDefaultTimeoutSecs
is not defined in this file or its base class, resulting in a compilation error. Either qualify it or define a local constant or inherit from the class where it’s declared.
IEnumerator WaitForActionMapRename(int index, bool isActive, double timeoutSecs = kDefaultTimeoutSecs)
Description
The tests change usually pass within 4.3 seconds. And they also fail frequently on the first time the run so this is an attempt to fix the instability reported internally by the team.
Testing status & QA
Will re-run CI at least 5 times and see if tests pass.
Overall Product Risks
Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
Checklist
Before review:
Changed
,Fixed
,Added
sections.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge: