-
Notifications
You must be signed in to change notification settings - Fork 286
[Release/7.0] Add Maui Mobile Android Benchmarks #2789
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
Merged
LoopedBard3
merged 48 commits into
dotnet:release/7.0
from
LoopedBard3:AddMauiMobileTesting
Jan 23, 2023
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
7a9eec0
First round of adding Maui Android testing to the performance pipeline.
LoopedBard3 d9c9421
Add testing run to yaml for running the android tests.
LoopedBard3 cc2f119
Fix incorrect $/% mixup in the maui_scenarios_android.proj and add pu…
LoopedBard3 135b715
Add debugging print variables and add no restore to mauiandroid test.
LoopedBard3 8ca2ded
Try using MacOS to build the maui apps, then run on the android phones.
LoopedBard3 2306cbd
Try switch from $ to % for variabile interpolation for non-windows pr…
LoopedBard3 8b5d419
Remove non-windows run commands since all the android devices are cur…
LoopedBard3 3ab14c6
Setup testing upload of the corelation staging to see how big it is.
LoopedBard3 6d60691
Try removing the dotnet directory since we don't need it and it is to…
LoopedBard3 98dbe75
Print the current rate limit for debugging purposes.
LoopedBard3 811a616
Revert "Setup testing upload of the corelation staging to see how big…
LoopedBard3 6dc0a0c
Remove debugging print statements, adding no restore fixed the issue.
LoopedBard3 17df5a3
Updated the get_commit_date method to use the github patches instead …
LoopedBard3 6f26422
Fix dotnet.py get_commit_time Logger information.
LoopedBard3 dc61f72
Change osName to be the run machine, not build machine.
LoopedBard3 b739648
Try using windows-2022 for android builds.
LoopedBard3 a9412d8
Only remove the dotnet\packs path since they take up multiple gigabytes.
LoopedBard3 451bbdd
Add timeout for the maui android scenarios helix work items.
LoopedBard3 cacece4
Fix the xcopy commands to ensure there is not a prompt since we are o…
LoopedBard3 ab8766b
Changed APK Name to not include the file extension, and enabled extra…
LoopedBard3 b49edf4
Added android podcast app testing and added XHARNESSPATH to the preco…
LoopedBard3 b3ab3c1
Don't try to remove the dotnet-podcasts directory as it is causing pe…
LoopedBard3 e820801
Fixed .git folder delete issue.
LoopedBard3 2ec4bad
Add MauiVersion stuff to the pre.py and test.py commands.
LoopedBard3 425f6af
Ensure the Maui_Version file is downloaded with the apk file and make…
LoopedBard3 0cd22d7
Try different xcopy directory format to see if it gets found.
LoopedBard3 e3b2215
Try using batch available tools and see if powershell is available.
LoopedBard3 87a671f
Fix ampersand.
LoopedBard3 25c6486
Readd podcast and blazor scenario, and remove rollback file for net7.0.
LoopedBard3 b5bd304
Try using a specific version link and getting that version.
LoopedBard3 edaaf48
Try using key values for the channels with links.
LoopedBard3 7f34f2c
Testing how to pass link.
LoopedBard3 dc52537
Removed version passing functionality as net7.0 shouldn't need it for…
LoopedBard3 65b7342
Remove channelHasVersionLink from scenarios.yml.
LoopedBard3 76b64a1
Fix spacing issue.
LoopedBard3 833905e
Final Cleanup commit.
LoopedBard3 4963e8d
Makes timeouts global for maui_scenarios_android.proj and clarifies d…
LoopedBard3 be55f55
Update pre and test py's to use shared methods and add version manage…
LoopedBard3 2cfb5fe
Resetup testing.
LoopedBard3 06139f5
Fix GetEnvironmentVariables not being found for environment.
LoopedBard3 d7e7405
Fix versionswritejson path in the pre.pys to not start with .\.
LoopedBard3 40a176d
Fix Reporting.Tests by adding in HELIX_WORKITEM_FRIENDLYNAME environm…
LoopedBard3 330d457
Fix timeout time, should be parsable now.
LoopedBard3 aecc325
Add special cases to the reporter for environment variable versions a…
LoopedBard3 b13d06a
Move GetVersionFromDLL to the version manager shared script since it …
LoopedBard3 47aeff5
Undo yml testing changes.
LoopedBard3 966861d
Fixed type and added in manual run conditional.
LoopedBard3 65f5404
Backport changes made to main for final version.
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
Added android podcast app testing and added XHARNESSPATH to the preco…
…mmands.
- Loading branch information
commit b49edf49934e8eadc7888c6605bc5d36163196ef
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ''' | ||
| post cleanup script | ||
| ''' | ||
|
|
||
| from shared.postcommands import clean_directories | ||
| from performance.common import remove_directory | ||
|
|
||
| remove_directory('dotnet-podcasts') | ||
| clean_directories() |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| ''' | ||
| pre-command | ||
| ''' | ||
| import sys | ||
| import os | ||
| import requests | ||
| import subprocess | ||
| from zipfile import ZipFile | ||
| from performance.logger import setup_loggers, getLogger | ||
| from shutil import copyfile | ||
| from shared import const | ||
| from shared.precommands import PreCommands | ||
| from argparse import ArgumentParser | ||
| from test import EXENAME | ||
|
|
||
| setup_loggers(True) | ||
|
|
||
| parser = ArgumentParser(add_help=False) | ||
| parser.add_argument( | ||
| '-o', '--output', | ||
| dest='output_dir', | ||
| required=False, | ||
| type=str, | ||
| help='capture of the output directory') | ||
| args, unknown_args = parser.parse_known_args() | ||
|
|
||
| # Download what we need | ||
| with open ("MauiNuGet.config", "wb") as f: | ||
| f.write(requests.get(f'https://raw.githubusercontent.com/dotnet/maui/net7.0/NuGet.config', allow_redirects=True).content) | ||
|
|
||
| subprocess.run(['git', 'clone', 'https://github.com/microsoft/dotnet-podcasts.git', '-b', 'net7.0', '--single-branch']) | ||
|
|
||
| precommands = PreCommands() | ||
| precommands.install_workload('maui', ['--from-rollback-file', f'https://aka.ms/dotnet/maui/net7.0.json', '--configfile', 'MauiNuGet.config']) | ||
| precommands.existing(projectdir='./dotnet-podcasts',projectfile='./src/Mobile/Microsoft.NetConf2021.Maui.csproj') | ||
|
|
||
| # Build the APK | ||
| precommands._restore() | ||
| precommands.execute(['--no-restore']) | ||
|
|
||
| # Remove the aab files as we don't need them, this saves space | ||
| output_file_partial_path = f"com.Microsoft.NetConf2021.Maui" | ||
| if args.output_dir: | ||
| output_file_partial_path = os.path.join(args.output_dir, output_file_partial_path) | ||
|
|
||
| os.remove(f"{output_file_partial_path}-Signed.aab") | ||
| os.remove(f"{output_file_partial_path}.aab") | ||
|
|
||
| # Copy the MauiVersion to a file so we have it on the machine (EXTRA_VERSIONS?) |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| ''' | ||
| C# Console app | ||
| ''' | ||
| from shared.runner import TestTraits, Runner | ||
|
|
||
| EXENAME = 'MauiAndroidPodcast' | ||
|
|
||
| if __name__ == "__main__": | ||
| traits = TestTraits(exename=EXENAME, | ||
| guiapp='false', | ||
| ) | ||
| Runner(traits).run() |
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.
Uh oh!
There was an error while loading. Please reload this page.