MobileNativeFoundation / XCLogParser

Tool to parse Xcode and xcodebuild logs stored in the xcactivitylog format
Apache License 2.0
1.73k stars 122 forks source link

Add a `machine_name` parameter and change how we generate a `buildIdentifier` #29

Closed ecamacho closed 5 years ago

ecamacho commented 5 years ago

Currently, the buildIdentifier created by the parse command uses the host name and a timestamp. This strategy has two issues:

  1. If you parse the same .xcactivitylog twice, the build identifier of the JSON that is created is different.
  2. If you want to identify the machine with something that is not the host name you can't. For instance, in CI you may want to identify it as build-agent-01.

This PR fixes both issues by adding a new --machine_name parameter to the parse command that is used to create the build identifier. It also removes the use of a timestamp to create it and uses the uniqueIdentifier property from IDEActivitlyLog