-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[PERF][MAUI] Add iOS Startup Scenario (Runtime side) #67670
Merged
LoopedBard3
merged 4 commits into
dotnet:main
from
LoopedBard3:XHarnessiOSWorkItemDirsTesting
Apr 13, 2022
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9f1b88b
Prepare eng for testing only maui ios with xharness tasks.
LoopedBard3 a73cbff
Setup the Pre and Post commands properly.
LoopedBard3 11f33aa
Add commands to the non-internal portion.
LoopedBard3 c094bc8
Reset Testing repo to main.
LoopedBard3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<Project Sdk="Microsoft.DotNet.Helix.Sdk" DefaultTargets="Test"> | ||
<PropertyGroup> | ||
<IncludeXHarnessCli>true</IncludeXHarnessCli> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(AGENT_OS)' != 'Windows_NT'"> | ||
<Python>python3</Python> | ||
<HelixPreCommands>$(HelixPreCommands);chmod +x $HELIX_WORKITEM_PAYLOAD/SOD/SizeOnDisk</HelixPreCommands> | ||
<HelixPreCommands>$(HelixPreCommands);chmod +x $HELIX_WORKITEM_PAYLOAD/startup/Startup</HelixPreCommands> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
|
@@ -26,39 +30,87 @@ | |
<ItemGroup> | ||
<HelixWorkItem Include="SOD - iOS HelloWorld .app Size"> | ||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> | ||
<PreCommands>cd $(ScenarioDirectory)helloios;xcopy %HELIX_CORRELATION_PAYLOAD%\iosHelloWorld\$(LlvmPath) .\app/e/i;$(Python) pre.py --name app</PreCommands> | ||
<PreCommands>cd $(ScenarioDirectory)helloios;cp -rf $HELIX_CORRELATION_PAYLOAD/iosHelloWorld/$(LlvmPath) ./app;$(Python) pre.py --name app</PreCommands> | ||
<Command>$(Python) test.py sod --scenario-name "%(Identity)"</Command> | ||
<PostCommands>$(Python) post.py</PostCommands> | ||
</HelixWorkItem> | ||
<HelixWorkItem Include="SOD - Maui iOS IPA Size" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<HelixWorkItem Include="SOD - Maui MacCatalyst .app Size" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;copy %HELIX_CORRELATION_PAYLOAD%\MauiiOSDefaultIPA\MauiiOSDefault.ipa .;$(Python) pre.py --name MauiiOSDefault.ipa</PreCommands> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;cp -rf $HELIX_CORRELATION_PAYLOAD/MauiMacCatalystDefault ./app;$(Python) pre.py --name app</PreCommands> | ||
<Command>$(Python) test.py sod --scenario-name "%(Identity)"</Command> | ||
<PostCommands>$(Python) post.py</PostCommands> | ||
</HelixWorkItem> | ||
<HelixWorkItem Include="SOD - Maui iOS IPA Size Unzipped" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<HelixWorkItem Include="SOD - Maui iOS IPA Size" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;copy %HELIX_CORRELATION_PAYLOAD%\MauiiOSDefaultIPA\MauiiOSDefault.ipa .;$(Python) pre.py --unzip --name MauiiOSDefault.ipa</PreCommands> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;cp $HELIX_CORRELATION_PAYLOAD/MauiiOSDefault.ipa .;$(Python) pre.py --name MauiiOSDefault.ipa</PreCommands> | ||
<Command>$(Python) test.py sod --scenario-name "%(Identity)"</Command> | ||
<PostCommands>$(Python) post.py</PostCommands> | ||
</HelixWorkItem> | ||
<HelixWorkItem Include="SOD - Maui MacCatalyst .app Size" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<HelixWorkItem Include="SOD - Maui iOS IPA Size Unzipped" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;xcopy %HELIX_CORRELATION_PAYLOAD%\MauiMacCatalystDefault .\app/e/i;$(Python) pre.py --name app</PreCommands> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;cp $HELIX_CORRELATION_PAYLOAD/MauiiOSDefault.ipa .;$(Python) pre.py --unzip --name MauiiOSDefault.ipa</PreCommands> | ||
<Command>$(Python) test.py sod --scenario-name "%(Identity)"</Command> | ||
<PostCommands>$(Python) post.py</PostCommands> | ||
</HelixWorkItem> | ||
<HelixWorkItem Include="SOD - Maui iOS Podcast IPA Size" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;copy %HELIX_CORRELATION_PAYLOAD%\MauiiOSPodcastIPA\MauiiOSPodcast.ipa .;$(Python) pre.py --name MauiiOSPodcast.ipa</PreCommands> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;cp $HELIX_CORRELATION_PAYLOAD/MauiiOSPodcast.ipa .;$(Python) pre.py --name MauiiOSPodcast.ipa</PreCommands> | ||
<Command>$(Python) test.py sod --scenario-name "%(Identity)"</Command> | ||
<PostCommands>$(Python) post.py</PostCommands> | ||
</HelixWorkItem> | ||
<HelixWorkItem Include="SOD - Maui iOS Podcast IPA Size Unzipped" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<PayloadDirectory>$(WorkItemDirectory)</PayloadDirectory> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;copy %HELIX_CORRELATION_PAYLOAD%\MauiiOSPodcastIPA\MauiiOSPodcast.ipa .;$(Python) pre.py --unzip --name MauiiOSPodcast.ipa</PreCommands> | ||
<PreCommands>cd $(ScenarioDirectory)mauiios;cp $HELIX_CORRELATION_PAYLOAD/MauiiOSPodcast.ipa .;$(Python) pre.py --unzip --name MauiiOSPodcast.ipa</PreCommands> | ||
<Command>$(Python) test.py sod --scenario-name "%(Identity)"</Command> | ||
<PostCommands>$(Python) post.py</PostCommands> | ||
</HelixWorkItem> | ||
<XHarnessAppBundleToTest Include="Device Startup - iOS Maui Default" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<AppBundlePath>$(WorkItemDirectory).zip</AppBundlePath> | ||
<WorkItemTimeout>00:05:00</WorkItemTimeout> | ||
<TestTarget>ios-device</TestTarget> | ||
<CustomCommands> | ||
<![CDATA[ | ||
# PreCommands | ||
export XHARNESSPATH=$XHARNESS_CLI_PATH | ||
|
||
cp -r $HELIX_CORRELATION_PAYLOAD/MauiTesting.app $(ScenarioDirectory)mauiios/MauiTesting.app | ||
cp -f embedded.mobileprovision $(ScenarioDirectory)mauiios/MauiTesting.app | ||
cd $(ScenarioDirectory)mauiios | ||
sign MauiTesting.app | ||
Comment on lines
+76
to
+79
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. I wonder if we should move the signing logic into |
||
|
||
$(Python) pre.py --name MauiTesting.app | ||
|
||
# Testing commands | ||
$(Python) test.py devicestartup --device-type ios --package-path MauiTesting.app --package-name net.dot.mauitesting --scenario-name "%(Identity)" | ||
|
||
# Post commands | ||
$(Python) post.py | ||
]]> | ||
</CustomCommands> | ||
</XHarnessAppBundleToTest> | ||
<XHarnessAppBundleToTest Include="Device Startup - iOS Maui Podcast" Condition="'$(iOSLlvmBuild)' == 'False'"> | ||
<AppBundlePath>$(WorkItemDirectory).zip</AppBundlePath> | ||
<WorkItemTimeout>00:05:00</WorkItemTimeout> | ||
<TestTarget>ios-device</TestTarget> | ||
<CustomCommands> | ||
<![CDATA[ | ||
# PreCommands | ||
export XHARNESSPATH=$XHARNESS_CLI_PATH | ||
|
||
cp -r $HELIX_CORRELATION_PAYLOAD/Microsoft.NetConf2021.Maui.app $(ScenarioDirectory)mauiios/Microsoft.NetConf2021.Maui.app | ||
cp -f embedded.mobileprovision $(ScenarioDirectory)mauiios/Microsoft.NetConf2021.Maui.app | ||
cd $(ScenarioDirectory)mauiios | ||
sign Microsoft.NetConf2021.Maui.app | ||
|
||
$(Python) pre.py --name Microsoft.NetConf2021.Maui.app | ||
|
||
# Testing commands | ||
$(Python) test.py devicestartup --device-type ios --package-path Microsoft.NetConf2021.Maui.app --package-name net.dot.netconf2021.maui --scenario-name "%(Identity)" | ||
|
||
# Post commands | ||
$(Python) post.py | ||
]]> | ||
</CustomCommands> | ||
</XHarnessAppBundleToTest> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It probably also makes sense to do the same thing here as below with
Agent.Os
, and move this to more positive conditions. Should make the blocks easier to read and modify going forward as wellThere 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.
It looks like this is set in the YAML and not necessarily only windows/linux/osx. I will make another PR for going through and checking these.