Skip to content

Commit 29347c3

Browse files
authored
Merge branch 'develop' into trackedposedriver-stops-tracking
2 parents a10d623 + 7da3aeb commit 29347c3

File tree

6 files changed

+18
-28
lines changed

6 files changed

+18
-28
lines changed

.yamato/config.metadata

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ editors:
66
run_tvos: false
77
- version: 6000.1
88
run_tvos: false
9+
- version: 6000.2
10+
run_tvos: false
911
- version: trunk
1012
run_tvos: false
1113

.yamato/upm-ci.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
variables:
1414
EDITOR_VERSION: {{ editor.version }}
1515
commands:
16-
- {{ utr_install_win }}
1716
- {{ upm_ci_install }}
1817
# Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
1918
# Automatically makes the documentation tests in APIVerification go live.
@@ -28,15 +27,14 @@
2827
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
2928
{% if platform.name == "win" and category.name == "functional" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package --coverage-upload-options=\"reportsDir:upm-ci~/test-results/CodeCoverage/Package;name:{{platform.name}}_{{editor.version}}_pkg;flags:{{platform.name}}_{{editor.version}}_pkg\"" {% endif %}
3029
{% if platform.installscript %}
31-
- {{ unity_downloader_install }}
3230
- {{ platform.installscript }} %EDITOR_VERSION%
3331
{% endif %}
3432
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
3533
# samples are in the package. Move the samples back into the project.
3634
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
3735
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
3836
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
39-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name == "functional" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
37+
- UnifiedTestRunner --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if platform.name == "win" and category.name == "functional" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
4038
{% if platform.name == "win" and category.name == "functional" %}
4139
# Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
4240
- rmdir /s/q "{{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package"
@@ -68,7 +66,6 @@
6866
variables:
6967
EDITOR_VERSION: {{ editor.version }}
7068
commands:
71-
- {{ utr_install_nix }}
7269
- {{ upm_ci_install }}
7370
# Get version 2.3.0-preview of doctools package (it currently fails for 3.0.0-preview).
7471
# Automatically makes the documentation tests in APIVerification go live.
@@ -81,15 +78,14 @@
8178
# Run upm-ci verification tests as well as tests contained in the package.
8279
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem;pathReplacePatterns:@*,,Library/PackageCache,Packages" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package --coverage-upload-options=\"reportsDir:upm-ci~/test-results/CodeCoverage/Package;name:{{platform.name}}_{{editor.version}}_pkg;flags:{{platform.name}}_{{editor.version}}_pkg\"" {% endif %}
8380
{% if platform.installscript %}
84-
- {{ unity_downloader_install }}
8581
- {{ platform.installscript }} $EDITOR_VERSION
8682
{% endif %}
8783
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
8884
# samples are in the package. Move the samples back into the project.
8985
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
9086
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
9187
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
92-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
88+
- UnifiedTestRunner --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %} {% if category.name == "functional" and platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project --coverage-upload-options="reportsDir:upm-ci~/test-results/CodeCoverage/Project;name:{{platform.name}}_{{editor.version}}_project;flags:{{platform.name}}_{{editor.version}}_project" {% endif %}
9389
{% if category.name == "functional" and platform.name == "mac" or platform.name == "linux"%}
9490
# Delete the Package and Project reports & raw coverage data, to keep Artifacts.zip smaller
9591
- rm -rf {{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package
@@ -121,11 +117,10 @@ build_ios_{{ editor.version }}_{{ category.name }}:
121117
flavor: b1.large
122118
variables:
123119
EDITOR_VERSION: {{ editor.version }}
120+
UTR_VERSION: 1.35.1
124121
commands:
125-
- {{ utr_install_nix }}
126-
- {{ unity_downloader_install }}
127122
- unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait
128-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
123+
- UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
129124
after:
130125
- {{ instabilities_install_nix }}
131126
- {{ instabilities_run_mac }}
@@ -152,8 +147,7 @@ run_ios_{{ editor.version }}_{{ category.name }}:
152147
dependencies:
153148
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
154149
commands:
155-
- {{ utr_install_nix }}
156-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
150+
- UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
157151
after:
158152
- {{ instabilities_install_nix }}
159153
- {{ instabilities_run_mac }}
@@ -170,11 +164,10 @@ build_tvos_{{ editor.version }}_{{ category.name }}:
170164
flavor: b1.large
171165
variables:
172166
EDITOR_VERSION: {{ editor.version }}
167+
UTR_VERSION: 1.35.1
173168
commands:
174-
- {{ utr_install_nix }}
175-
- {{ unity_downloader_install }}
176169
- unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait
177-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
170+
- UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
178171
after:
179172
- {{ instabilities_install_nix }}
180173
- {{ instabilities_run_mac }}
@@ -200,8 +193,7 @@ run_tvos_{{ editor.version }}_{{ category.name }}:
200193
dependencies:
201194
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}_{{ category.name }}
202195
commands:
203-
- {{ utr_install_nix }}
204-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
196+
- UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=tvOS --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
205197
after:
206198
- {{ instabilities_install_nix }}
207199
- {{ instabilities_run_mac }}
@@ -222,10 +214,8 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
222214
variables:
223215
EDITOR_VERSION: {{ editor.version }}
224216
commands:
225-
- {{ utr_install_win }}
226-
- {{ unity_downloader_install }}
227217
- unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait
228-
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository {% if category.name == "performance" %} --performance-project-id=InputSystem {% endif %}
218+
- UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository {% if category.name == "performance" %} --performance-project-id=InputSystem {% endif %}
229219
after:
230220
- {{ instabilities_install_win }}
231221
- {{ instabilities_run_win }}
@@ -251,15 +241,14 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
251241
dependencies:
252242
- .yamato/upm-ci.yml#build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}
253243
commands:
254-
- {{ utr_install_win }}
255244
- |
256245
# Set the IP of the device. In case device gets lost, UTR will try to recconect to ANDROID_DEVICE_CONNECTION
257246
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
258247
# Establish an ADB connection with the device
259248
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
260249
# List the connected devices
261250
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
262-
./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=android --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
251+
UnifiedTestRunner --suite=playmode {% if category.name == "performance" %} --category=Performance {% else %} --category=!Performance {% endif %} --platform=android --player-load-path=build/players --artifacts_path=build/test-results {% if category.name == "performance" %} --report-performance-data --performance-project-id=InputSystem {% endif %}
263252
after:
264253
- start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
265254
- if not exist build\test-results mkdir build\test-results

Assets/Tests/InputSystem.Editor/InputActionsEditorTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ IEnumerator WaitForActionRename(int index, bool isActive, double timeoutSecs = 5
7474
#endregion
7575

7676
[Test]
77-
[Ignore("Instability, see ISXB-1284")]
7877
public void CanListActionMaps()
7978
{
8079
var actionMapsContainer = m_Window.rootVisualElement.Q("action-maps-container");
@@ -88,7 +87,6 @@ public void CanListActionMaps()
8887
}
8988

9089
[UnityTest]
91-
[Ignore("Instability, see ISXB-1284")]
9290
public IEnumerator CanCreateActionMap()
9391
{
9492
var button = m_Window.rootVisualElement.Q<Button>("add-new-action-map-button");
@@ -117,7 +115,6 @@ public IEnumerator CanCreateActionMap()
117115
}
118116

119117
[UnityTest]
120-
[Ignore("Instability, see ISXB-1284")]
121118
public IEnumerator CanRenameActionMap()
122119
{
123120
var actionMapsContainer = m_Window.rootVisualElement.Q("action-maps-container");
@@ -166,7 +163,6 @@ public IEnumerator CanRenameActionMap()
166163
}
167164

168165
[UnityTest]
169-
[Ignore("Instability, see ISXB-1284")]
170166
public IEnumerator CanDeleteActionMap()
171167
{
172168
var actionMapsContainer = m_Window.rootVisualElement.Q("action-maps-container");
@@ -195,7 +191,6 @@ public IEnumerator CanDeleteActionMap()
195191
}
196192

197193
[UnityTest]
198-
[Ignore("Instability, see ISXB-1284")]
199194
public IEnumerator CanRenameAction()
200195
{
201196
var actionContainer = m_Window.rootVisualElement.Q("actions-container");
@@ -215,6 +210,8 @@ public IEnumerator CanRenameAction()
215210

216211
// Click twice to start the rename
217212
SimulateClickOn(actionItem[1]);
213+
yield return WaitForNotDirty();
214+
218215
// If the item is already focused, don't click again
219216
if (!actionItem[1].IsFocused)
220217
{

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ however, it has to be formatted properly to pass verification tests.
2323
- Fixed an issue where an action with a name containing a slash "/" could not be found via `InputActionAsset.FindAction(string,bool)`. [ISXB-1306](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1306).
2424
- Fixed Gamepad stick up/down inputs that were not recognized in WebGL. [ISXB-1090](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1090)
2525
- Fixed reenabling the VirtualMouseInput component may sometimes lead to NullReferenceException. [ISXB-1096](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1096)
26+
- Fixed the default button press point not being respected in Editor (as well as some other Touchscreen properties). [ISXB-1152](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1152)
2627
- Fixed PlayerInput component automatically switching away from the default ActionMap set to 'None'.
2728
- Fixed a console error being shown when targeting visionOS builds in 2022.3.
2829
- Fixed a Tap Interaction issue with analog controls. The Tap interaction would keep re-starting after timeout. [ISXB-627](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-627)

Packages/com.unity.inputsystem/InputSystem/InputManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4122,7 +4122,8 @@ internal void RestoreStateWithoutDevices(SerializedState state)
41224122

41234123
if (m_Settings != null)
41244124
Object.DestroyImmediate(m_Settings);
4125-
m_Settings = state.settings;
4125+
4126+
settings = state.settings;
41264127

41274128
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
41284129
// Note that we just reassign actions and never destroy them since always mapped to persisted asset

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3878,7 +3878,7 @@ private static void Reset(bool enableRemoting = false, IInputRuntime runtime = n
38783878
s_Manager.UninstallGlobals();
38793879
}
38803880

3881-
// Create temporary settings. In the tests, this is all we need. But outside of tests,d
3881+
// Create temporary settings. In the tests, this is all we need. But outside of tests,
38823882
// this should get replaced with an actual InputSettings asset.
38833883
var settings = ScriptableObject.CreateInstance<InputSettings>();
38843884
settings.hideFlags = HideFlags.HideAndDontSave;

0 commit comments

Comments
 (0)