{ "id": "137894", "key": "TIMOB-17833", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-11T16:58:32.000+0000", "created": "2014-10-09T18:57:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "45045", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "142539", "key": "TIMOB-18347", "fields": { "summary": "Alloy projects open, then immediately close on Windows Phone emulator", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "45155", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "143596", "key": "TIMOB-18456", "fields": { "summary": "Windows: ti-mocha tests crashes at callback from setTimeout", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "42868", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "139124", "key": "TIMOB-17975", "fields": { "summary": "Windows: Implement Logging Infrastructure", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "42867", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "134956", "key": "TIMOB-17515", "fields": { "summary": "Windows: Refactor windows detection code into windowslib", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "44519", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "142315", "key": "TIMOB-18312", "fields": { "summary": "Run ti-mocha tests on CI build of titanium_mobile_windows", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "46442", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "145454", "key": "TIMOB-18639", "fields": { "summary": "Windows: Launching app in emulator is flaky", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "46606", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "142901", "key": "TIMOB-18383", "fields": { "summary": "Jenkins should verify that the NG app builds with 0 warnings and runs on simulator", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-03-14T20:08:13.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": "10207", "name": "Tooling" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "{code}\r\nTools/Scripts/generate_vs_project.sh Mocha\r\ncygstart.exe Mocha.WindowsPhone.Win32/Mocha.sln\r\n{code}\r\n\r\nhttp://social.technet.microsoft.com/wiki/contents/articles/18173.how-to-launch-windows-phone-8-emulator-without-using-visual-studio-2012.aspx\r\nhttp://msdn.microsoft.com/en-us/library/windows/apps/dn632395.aspx#BKMK_commandline\r\n", "attachment": [], "flagged": false, "summary": "Run ti-mocha tests as part of Jenkins build", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 331, "state": "closed", "name": "2015 Sprint 03 Windows", "startDate": "2015-01-31T01:00:00.000Z", "endDate": "2015-02-14T01:00:00.000Z", "completeDate": "2015-02-16T21:05:06.994Z", "originBoardId": 144 }, { "id": 190, "state": "closed", "name": "2015 Sprint 01 Windows", "startDate": "2015-01-04T01:00:00.000Z", "endDate": "2015-01-17T01:00:00.000Z", "completeDate": "2015-01-19T17:24:52.769Z", "originBoardId": 144 }, { "id": 350, "state": "closed", "name": "2015 Sprint 05 Windows", "startDate": "2015-02-28T16:04:51.353Z", "endDate": "2015-03-14T00:00:00.000Z", "completeDate": "2015-03-14T13:58:43.679Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "331573", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "There are a few hurdles here. One is generating the solution then building it. I've been able to do that, though it reports errors related to google test. Here's what I run:\r\n{code}\r\ncmake -G \"Visual Studio 12 2013 ARM\" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1 \"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\Examples\\Mocha\" \r\ncmd.exe /C \" \"C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe\" build/Mocha.sln \" && exit %%ERRORLEVEL%%\r\n{code}\r\n and what I get:\r\n{code}\r\n\"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\\Mocha.sln\" (default target) (1) ->\r\n\"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\\Util\\test\\virtual_enable_shared_from_this_base_tests.vcxproj.metaproj\" (default target) (11) ->\r\n\"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\\Util\\test\\virtual_enable_shared_from_this_base_tests.vcxproj\" (default target) (12) ->\r\n C:\\Users\\Chris Williams\\gtest-1.7.0-windows\\include\\gtest/internal/gtest-port.h(1770): error C3861: 'chdir': identifier not found [C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\\Util\\test\\virtual_enable_shared_from_this_base_tests.vcxproj]\r\n C:\\Users\\Chris Williams\\gtest-1.7.0-windows\\include\\gtest/internal/gtest-port.h(1802): error C3861: 'getenv': identifier not found [C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\\Util\\test\\virtual_enable_shared_from_this_base_tests.vcxproj]\r\n\r\n 271 Warning(s)\r\n 4 Error(s)\r\n{code}\r\n\r\nThe next is trying to launch the app in an emulator. That seems to be done by:\r\n{code}\r\n\"C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools\\AppDeploy\\AppDepl\r\noyCmd.exe\" /installlaunch \"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_wi\r\nndows\\workspace\\build\\AppPackages\\Mocha\\Mocha_1.1.0.0_Win32_Debug_Test\\Mocha_1.1.0\r\n.0_Win32_Debug.appx\" /targetdevice:xd\r\n{code}\r\n\r\nThe first time I run that it starts the emulator but doesn't seem to actually launch the app. If I keep the emulator open and run it again, it launches the app.\r\n\r\nBut now, the issue is that our logger only outputs to an attached debugger, not stdout/stderr or a file. So we can see output when run through VS 2013, but not through this AppDeployCmd.exe. I'm trying to generate a quick branch that actually logs to stdout to see if we can then get the output of running the app/tests.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-11T15:21:25.000+0000", "updated": "2014-11-11T15:24:31.000+0000" }, { "id": "331576", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Highly related: http://justinangel.net/WindowsPhone7EmulatorAutomation", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-11T15:30:27.000+0000", "updated": "2014-11-11T15:30:27.000+0000" }, { "id": "331580", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "OK, so the way to do this is to log to a file inside the actual app's local storage and then grab that file out of the emulator.\r\n\r\nI have to modify our logging code to generate the log.txt file and append to it as we go. Then I can do:\r\n{code}\r\n\"C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.0\\Tools\\IsolatedStorageExplorerTool\\ISETool.exe\" ts xd f8ce6878-0aeb-497f-bcf4-65be961d4bba \"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\"\r\n{code}\r\nThe guid there is our app's guid, which I'll have to grab out of the mocha project, I suppose.\r\nWe should then have the logfile at \"C:\\Program Files (x86)\\Jenkins\\jobs\\titanium_mobile_windows\\workspace\\build\\IsolatedStorage\\log.txt\"", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-11T16:23:46.000+0000", "updated": "2014-11-11T16:23:46.000+0000" }, { "id": "331588", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~cwilliams] How will you know when the tests have completed and you can pull the log from isolated storage?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-11-11T17:14:03.000+0000", "updated": "2014-11-11T17:14:03.000+0000" }, { "id": "345706", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Finally! See http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows/lastCompletedBuild/testReport/", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-03-11T16:58:32.000+0000", "updated": "2015-03-11T16:58:32.000+0000" }, { "id": "412209", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T20:08:13.000+0000", "updated": "2017-03-14T20:08:13.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }