Skip to content

Commit

Permalink
Improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Dec 19, 2019
1 parent b9c03c5 commit be8f77b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/sampletester/ProcessHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ public static void BuildSolution (string solution, string platform, string confi
xml.WriteAttributeString ("xamarin-macios-hash", Configuration.TestedHash);
xml.WriteAttributeString ("sample-repository", Configuration.GetCurrentRemoteUrl (slndir));
xml.WriteAttributeString ("sample-hash", Configuration.GetCurrentHash (slndir));
xml.WriteAttributeString ("agent-machinename", Environment.GetEnvironmentVariable ("AGENT_MACHINENAME"));
xml.WriteAttributeString ("agent-name", Environment.GetEnvironmentVariable ("AGENT_NAME"));
foreach (var app in apps) {
xml.WriteStartElement ("test");
xml.WriteAttributeString ("name", TestContext.CurrentContext.Test.FullName);
Expand Down Expand Up @@ -287,7 +289,6 @@ public static void BuildSolution (string solution, string platform, string confi
xml.Dispose ();

TestContext.AddTestAttachment (logfile, $"Performance data");
// Console.WriteLine ("Performance data: {0}:\n\t{1}", logfile, string.Join ("\n\t", File.ReadAllLines (logfile)));
}
}

Expand Down
16 changes: 11 additions & 5 deletions tools/devops/push-performance-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ done
# Merge each individual xml file into one big xml file
DIR=perf-data/samples/$BUILD_SOURCEBRANCHNAME/$BUILD_SOURCEVERSION
cd "$DIR"
# Merge the xml files from each bot into a big per-bot xml file. Don't merge
# the xml from all the bots together into a single enormous xml file, because
# it'll be close to GitHub's size limit per file (limit is 100mb, the enormous
# xml file would be ~80mb now), and might very well pass that one day.
for job in ./*-*-*-*-*; do
{
echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>'
echo '<performance>'
find . -name '*perfdata*.xml' -print0 | xargs -0 -n 1 tail -n +2 | grep -F -v -e '<performance>' -e '</performance>'
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>'
echo '</performance>'
} > data.xml
} > "data-$job.xml"
done

# Add the big xml file to git
git add data.xml
# Add the big xml files to git
git add data-*.xml
git commit -m "Add performance data for $BUILD_SOURCEBRANCHNAME/$BUILD_SOURCEVERSION."

# Push!
Expand Down

1 comment on commit be8f77b

@xamarin-release-manager
Copy link
Collaborator

Choose a reason for hiding this comment

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

❌ Status for 'xamarin-macios - sample testing (build)': failure.

  • ✅ Debug_iPhone_AF: Succeeded
  • ✅ Debug_iPhone_GR: Succeeded
  • ✅ Debug_iPhone_SZ: Succeeded
  • ✅ Debug_iPhoneSimulator: Succeeded
  • ✅ Release_iPhone_AF: Succeeded
  • ✅ Release_iPhone_GR: Succeeded
  • ✅ Release_iPhone_SZ: Succeeded
  • ✅ Release_iPhoneSimulator: Succeeded
  • ✅ Debug_Mac: Succeeded
  • ✅ Release_Mac: Succeeded
  • ❌ PublishPerformanceData: Failed

Please sign in to comment.