Skip to content

Conversation

@Troy-Ferrell
Copy link
Contributor

@Troy-Ferrell Troy-Ferrell commented Nov 6, 2019

Overview

Build window inspector changes. This is a first phase of review for Build window and bring up of the feature area. This change is primarily eliminating key error areas and simplifying the code to be more manageable, readable, and easier to navigate. Additional issues are tracked in #6520

General refactoring to break up monolithic functions into sub-components
General refactoring to simplify redundant code into re-usable functions
Cleaned up UI

Key areas:

  • Build directory selection is now selected via FolderPanel utility instead of just a string (still broken to only point relative to project)
  • Deploy tab had some weird code handling for if a target was 127.0.0.1 and how it updated machine name. Many of the assumptions in the code have been removed
  • Simplified access of CurrentConnection and CurrentConnectionIndex, moving guards to these properties instead of scattered throughout code
  • Added additional GUIContent constant labels
  • Parallelized tasks for installing/uninstalling appx instead of waiting for each one

BEFORE
original-build-window

AFTER
new-build-window

New Deploy view
UpdatedDeploy

Changes

  • Fixes: # .

Verification

As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):

git fetch origin pull/{PR_ID}/head:name_of_local_branch

git checkout name_of_local_branch

@Troy-Ferrell
Copy link
Contributor Author

Troy-Ferrell commented Nov 6, 2019

@keveleigh FYI, I saw you have some PRs out on Build window. Once in, I'll handle merging them in with this. My changes are mostly in the inspector

…ovements

# Conflicts:
#	Assets/MixedRealityToolkit/Inspectors/Setup/BuildDeployWindow.cs
Copy link
Contributor

@keveleigh keveleigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great if, when this comes out of Draft, it's split up into a few PRs.
Especially BuildDeployWindow.cs is hard to review with the sheer amount of things moved around and reworked.

@Troy-Ferrell Troy-Ferrell marked this pull request as ready for review November 11, 2019 21:32
@Troy-Ferrell
Copy link
Contributor Author

@keveleigh I'm still doing some final tests...and there are still all the issues in #6520 but the PR is close enough for review now!

@Troy-Ferrell
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh
Copy link
Contributor

Looks like some merge conflicts here

…ovements

# Conflicts:
#	Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs
#	Assets/MixedRealityToolkit/Utilities/WindowsDevicePortal/DevicePortal.cs
@Troy-Ferrell
Copy link
Contributor Author

@keveleigh resolved

@Troy-Ferrell
Copy link
Contributor Author

/azp run

@microsoft microsoft deleted a comment from azure-pipelines bot Dec 12, 2019
@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Contributor

@keveleigh keveleigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments from first pass. Will pull this down and test locally now.

Also, will need a merge with #6903 and ARM64 support.

@Troy-Ferrell
Copy link
Contributor Author

Troy-Ferrell commented Dec 16, 2019

Also need to investigate testconnection issue:
image

EDIT
Believe it may be issue in DeviceInfo.Authorization databag not updating

EDIT 2
It's actually because of UseSLL on and only fails when targeting remote

EDIT 3
Believe this is dupe of #6877

…ovements

# Conflicts:
#	Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs
@Troy-Ferrell
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Troy-Ferrell
Copy link
Contributor Author

UninstallApp and other components need to be updated

@keveleigh
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@Troy-Ferrell
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@Troy-Ferrell
Copy link
Contributor Author

Weird bug where CI pipelines are not reporting in PR issue. They both passed though, see links below

https://dev.azure.com/aipmr/MixedRealityToolkit-Unity-CI/_build/results?buildId=7891&view=results
https://dev.azure.com/aipmr/MixedRealityToolkit-Unity-CI/_build/results?buildId=7890&view=results

Merging pull request...

@Troy-Ferrell Troy-Ferrell merged commit 9091059 into microsoft:mrtk_development Dec 17, 2019
@Troy-Ferrell Troy-Ferrell deleted the users/trferrel/build-window-improvements branch January 22, 2020 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants