{ "id": "126750", "key": "TIMOB-16631", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-11-19T08:29:54.000+0000", "created": "2014-02-23T18:56:39.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "cli", "developers", "ft", "jira", "q&a" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-03-19T20:40:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "For both JIRA an Q&A it would be helpful if the CLI {{info}} command had an information type ({{-t}}) that would spit out a summary of the most important information on the environment, like - but not limited to:\r\n\r\n- OS name and version\r\n- Selected SDK\r\n- CLI and Node.js version\r\n- Studio version\r\n- Warnings and critical issues\r\n\r\nThis information should include the 90% needed to clarify bug reports and Q's in a copy-paste friendly format. I would also suggest to include this summary at the end of the full ({{ti info}} or {{ti info -t all}}) report.\r\n\r\nThe JIRA {{Environment}} field description and the [Q&A submit-form|http://developer.appcelerator.com/question/ask] should be updated to ask for this information.\r\n\r\nAdditionally, it would be awesome if the {{build}} command would get the same {{--report}} flag [as Hyperloop|https://github.com/appcelerator/hyperloop/blob/master/lib/log.js#L103] to include both the above and the app-specific information.", "attachment": [], "flagged": false, "summary": "CLI: Add information type `environment` to `ti info`", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Exactly... that's what this ticket asks for ;)", "comment": { "comments": [ { "id": "297491", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this enhancement request to engineering for further evaluation.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T03:05:40.000+0000", "updated": "2014-03-17T03:05:40.000+0000" }, { "id": "318133", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fokke] We believe that all of the above information is now captured in \"ti info\" (with the exception of Studio version). Does that match your understanding? If so, is this ticket then just about adding --report? Note that we submit tickets into JIRA as opposed to GitHub. Would this then create a TC ticket?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T03:53:24.000+0000", "updated": "2014-08-12T03:53:24.000+0000" }, { "id": "318170", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I don't really see the value in {{\\-\\-report}} flag. If you ran a build and it failed, it's too late to go back and add the {{\\-\\-report}} flag. Furthermore, Studio isn't going to pass it in.\r\n\r\nWhat we need is a build.log file that contains the entire log output plus the info from {{ti info}} and {{ti setup check}}. Part of the problem is the logger is garbage and needs to be overhauled to support printing to the console and log files. I've got a ticket to add this: TIMOB-12169.\r\n\r\nMy recommendation is to just resolve this ticket as won't fix and let's add support for build.log files. Thoughts?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-08-12T09:42:16.000+0000", "updated": "2014-08-12T09:42:16.000+0000" }, { "id": "318186", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Ingo, the \"ti info\" includes lots of information not relevant to debug a build error. Too much to ask users to paste in the environment box of a JIRA ticket I'd think.\r\n\r\nWhat I like about the --report flag of Hyperloop is that it includes both environment and process info related to the error.\r\n\r\nChris, only if the error would be a random one it would not make sense to run again using --report, but in most cases an error is not random and the second run would offer a easy way to produce a complete error report / ticket.\r\n\r\nMaybe best would be to improve the logger like you suggest and on (fatal) error always ask the user if he wants to save or submit relevant environment and process info or just exit?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-08-12T14:14:52.000+0000", "updated": "2014-08-12T14:14:52.000+0000" }, { "id": "332506", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "This will be at least partially addressed by TIMOB-12169 which will include a banner like the following in the log for every build:\r\n\r\n{code}\r\nMon Nov 17 2014 11:38:32 GMT-0500 (EST)\r\n\r\nBuild Environment \r\n Host OS = OS X 14.0.0, x64\r\n Target platform = iphone\r\n CLI version = 3.5.0-dev\r\n SDK version = 3.5.0\r\n SDK path = /Users/admin/Library/Application Support/Titanium/mobilesdk/osx/3.5.0\r\n Node version = v0.10.33\r\n Command = titanium --sdk 3.5.0 build -p ios\r\n{code}\r\n\r\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-17T16:41:49.000+0000", "updated": "2014-11-17T16:41:49.000+0000" }, { "id": "332869", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "That looks good [~skypanther] - I guess that closes this ticket [~cbarber]. Although sending errors directy to some kind of inbox of JIRA would still be nice.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-11-19T07:12:54.000+0000", "updated": "2014-11-19T07:13:38.000+0000" }, { "id": "332877", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Fixed as apart of TIMOB-12169.\r\n\r\nThere isn't an explicit {{--report}} flag, but a build log is a good start.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-11-19T08:29:55.000+0000", "updated": "2014-11-19T08:29:55.000+0000" }, { "id": "346573", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\nTitanium CLI 4.0.0-alpha\r\n\r\nenvironment is included in log", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-19T20:40:15.000+0000", "updated": "2015-03-19T20:40:15.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }