-
Notifications
You must be signed in to change notification settings - Fork 519
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
[sample-tester] Collect app size and build duration statistics. #7602
Conversation
…diagnostic msbuild log.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Build success |
✅ Jenkins job (on internal Jenkins) succeeded ✅ Build succeeded ✅ API Diff (from stable) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
❌ Build was (probably) aborted 🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Checkout' 🔥 : hudson.AbortException: There is already a newer build in progress (#5) |
Build success |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The TodoREST.iOS test seems to use a lot of packages, and it can apparently take a while to restore them, so give a few more minutes.
This PR is ready for review now. |
✅ Jenkins job (on internal Jenkins) succeeded ✅ Build succeeded ✅ API Diff (from stable) |
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.
LGTM! This is great!
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.
In the data.xml
it seems that sample-repository="https://github.com/xamarin/xamarin-macios"
is incorrect, should not it be (one of) the sample repo ?
if also looks like the hash of the sample is the same as macios hash (one is wrong) |
{ | ||
echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>' | ||
echo '<performance version="1.0">' | ||
find "$job" -name '*perfdata*.xml' -print0 | xargs -0 -n 1 tail -n +2 | grep -F -v -e '<performance>' -e '</performance>' |
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.
👍
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.
pending sample-repository / sample-hash questions in produced data
@@ -89,7 +95,7 @@ public static void BuildSolution (string solution, string platform, string confi | |||
|
|||
foreach (var sln in solutions) { | |||
nuget_args [1] = sln; // replacing here | |||
AssertRunProcess ("nuget", nuget_args.ToArray (), TimeSpan.FromMinutes (2), Configuration.SampleRootDirectory, environment_variables, "nuget restore"); | |||
AssertRunProcess ("nuget", nuget_args.ToArray (), TimeSpan.FromMinutes (5), Configuration.SampleRootDirectory, environment_variables, "nuget restore"); |
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 though that the 2 minutes was an internal timeout of nuget
:)
https://github.com/xamarin/maccore/issues/1616
Build success |
✅ Jenkins job (on internal Jenkins) succeeded ✅ Build succeeded ✅ API Diff (from stable) |
Build success |
✅ Jenkins job (on internal Jenkins) succeeded ✅ Build succeeded ✅ API Diff (from stable) |
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.
attributes looks good now :)
https://raw.githubusercontent.com/xamarin/xamarin-macios-data/master/perf-data/samples/pull-request/7096bee643af6fbe55cc7abf2b89602d0c7df24b/data-307a3e1d-f0f2-5a3d-98c5-8c16e3f24b09.xml
Great job! The data should prove quite helpful :)
…et#7602) * [sample-tester] Collect app size and build duration statistics. * Always publish performance data. * [mmp] Add support for MMP_ENV_OPTIONS to mirror mtouch's MTOUCH_ENV_OPTIONS. * [sample-tester] Make mmp/mtouch show timing information, and get the diagnostic msbuild log. * Collect task and target info. * Add more perf data and a baseline test. * Redo the base test a bit. * More tweaks. * More tweaks. * Huh? * Debug stuff. * diagnostics. * Better diagnostics. * cleanup * tmp * Use a separate stage to push data. * Next attempt. * Unique artifact names. * Make the right name unique. * More progress * Improvements * Don't need new maccore. * cleanup * Remove debug spew. * Realign stuff. * duh * More path fixes. * zippity zip. * Show publishing errors. * dependencies * Not fake results anymore. * Tweaks * Merge xml files * [sampletester] Bump nuget timeout to 5 minutes. The TodoREST.iOS test seems to use a lot of packages, and it can apparently take a while to restore them, so give a few more minutes. * Improvements. * Fix glob. * [sampletester] Fix fetching of sample repository and hash. * [sampletester] Centralize verbosity for mtouch and mmp.
Continuation of #7517, which got closed when I removed the branch.
This is a work in progress, no need to review yet.This is ready for review now. Best reviewed by not looking at each commit, but instead at the whole diff at once, since there's a lot of troubleshooting commits.
Here is a sample of the data produced: https://github.com/xamarin/xamarin-macios-data/tree/master/perf-data/samples/pull-request/1b847a12bb3bf3c005db18236dd423d461c20e55 (the final last version is slightly different: there won't be a single big file, but several smaller files, but the xml structure is identical).