{ "id": "152559", "key": "TIMOB-19838", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-03T17:27:26.000+0000", "created": "2015-11-02T02:41:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "49622", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152625", "key": "TIMOB-19856", "fields": { "summary": "Windows: Jenkins test script should select an 8.1 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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-02-16T22:37:44.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Currently all tests in Jenkins Windows SDK PR Build are failing. Seems like they are failing when launching emulator. Do we change something recently?\r\n\r\n{code}\r\n12:35:24 [DEBUG] : \b\b \bTime Elapsed 00:00:16.29\r\n12:35:24 [INFO] : \b\b \b Writing build manifest: C:\\Windows\\TEMP\\mocha\\build-manifest.json\r\n12:35:24 [INFO] : \b\b \b Copying results back to project build directory\r\n12:35:26 [INFO] : \b\b \b Finished building the application in 39s 280ms\r\n12:35:26 [INFO] : \b\b \b Finished building the application in 39s 282ms\r\n12:35:26 [INFO] : \b\b \b Waiting for Windows Phone emulator to finish booting\r\n12:45:55 [ERROR] : \b\b \bFailed to start emulator \"8-1-1\"\r\n12:45:55 [ERROR] : \b\b \bApp deployment failed. Please try again.\r\n{code}\r\n\r\n* http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows_prs/1437/\r\n* http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows_prs/1441/\r\n* http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows_prs/1440/", "attachment": [], "flagged": false, "summary": "Windows: Fix Jenkins Windows SDK PR Build", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "368673", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I _think_ this may be from running the Jenkins slave as a service, which I believe runs under Administrator rights, which may be causing some environment issues. I'll try restarting it manually under the simple user account and fix permissions issues.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-02T17:54:47.000+0000", "updated": "2015-11-02T17:54:47.000+0000" }, { "id": "368706", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I have no idea why this keeps happening! I can run from the CLI on the same box manually and it finds the emulator just fine and can launch it.\r\n\r\nI'm at a loss as to why this would happen. I tried modifying the service to start as a specific user. I fixed permissions. I stopped the service entirely and ran the slave process from cmd.exe manually through VPN/RDC. Nothing seems to work. I honestly have no idea how to get this fixed any more.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-02T21:36:10.000+0000", "updated": "2015-11-02T21:36:10.000+0000" }, { "id": "368720", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-02T23:11:30.000+0000", "updated": "2015-11-02T23:11:30.000+0000" }, { "id": "368722", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-02T23:18:04.000+0000", "updated": "2015-11-02T23:18:04.000+0000" }, { "id": "368723", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-02T23:20:48.000+0000", "updated": "2015-11-02T23:20:48.000+0000" }, { "id": "368830", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~kota] It has been restarted. the \"busy\" failures were due to me being logged into the server and trying the build manually (I had a Windows Explorer open to the folder, which a subsequent build didn't like). The error message remains the default \"invalid\" error, not sure why. Looks like the CLi can error out about invalid values in two spots, one of which will bubble up the error given by the validation of the value, the other giving this default message.\r\n\r\nI'm playing around some more to see if I can get details why it's failing, but this is a mystery to me.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-03T15:05:52.000+0000", "updated": "2015-11-03T15:05:52.000+0000" }, { "id": "368834", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Looks like it's having trouble getting the emulator listing:\r\n{code}\r\n\"windows\": {\r\n00:10:06.399 \t\t\t\"8.1\": {\r\n00:10:06.399 \t\t\t\t\"version\": \"8.1\",\r\n00:10:06.399 \t\t\t\t\"registryKey\": \"HKEY_LOCAL_MACHINE\\\\Software\\\\Wow6432Node\\\\Microsoft\\\\Microsoft SDKs\\\\Windows\\\\v8.1\",\r\n00:10:06.399 \t\t\t\t\"supported\": true,\r\n00:10:06.399 \t\t\t\t\"path\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\\",\r\n00:10:06.399 \t\t\t\t\"signTool\": {\r\n00:10:06.399 \t\t\t\t\t\"arm\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\arm\\\\SignTool.exe\",\r\n00:10:06.399 \t\t\t\t\t\"x86\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\x86\\\\SignTool.exe\",\r\n00:10:06.399 \t\t\t\t\t\"x64\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\x64\\\\SignTool.exe\"\r\n00:10:06.399 \t\t\t\t},\r\n00:10:06.399 \t\t\t\t\"makeCert\": {\r\n00:10:06.399 \t\t\t\t\t\"x86\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\x86\\\\MakeCert.exe\",\r\n00:10:06.399 \t\t\t\t\t\"x64\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\x64\\\\MakeCert.exe\"\r\n00:10:06.399 \t\t\t\t},\r\n00:10:06.399 \t\t\t\t\"pvk2pfx\": {\r\n00:10:06.399 \t\t\t\t\t\"x86\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\x86\\\\pvk2pfx.exe\",\r\n00:10:06.399 \t\t\t\t\t\"x64\": \"C:\\\\Program Files (x86)\\\\Windows Kits\\\\8.1\\\\bin\\\\x64\\\\pvk2pfx.exe\"\r\n00:10:06.399 \t\t\t\t},\r\n00:10:06.399 \t\t\t\t\"selected\": true\r\n00:10:06.399 \t\t\t}\r\n00:10:06.399 \t\t},\r\n00:10:06.399 \t\t\"devices\": [],\r\n00:10:06.399 \t\t\"emulators\": {},\r\n00:10:06.399 \t\t\"os\": {\r\n00:10:06.399 \t\t\t\"name\": \"Microsoft Windows 8.1 Enterprise N\",\r\n00:10:06.399 \t\t\t\"version\": \"6.3.9600\"\r\n00:10:06.399 \t\t},\r\n00:10:06.399 \t\t\"powershell\": {\r\n00:10:06.399 \t\t\t\"enabled\": true\r\n00:10:06.399 \t\t},\r\n00:10:06.399 \t\t\"selectedVisualStudio\": {\r\n00:10:06.399 \t\t\t\"version\": \"12.0\",\r\n00:10:06.399 \t\t\t\"registryKey\": \"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\VisualStudio\\\\12.0_Config\",\r\n00:10:06.399 \t\t\t\"supported\": true,\r\n00:10:06.399 \t\t\t\"vcvarsall\": \"C:\\\\PROGRA~2\\\\MICROS~1.0\\\\VC\\\\VCVARS~1.BAT\",\r\n00:10:06.399 \t\t\t\"msbuildVersion\": \"12.0.31101.0\",\r\n00:10:06.399 \t\t\t\"wpsdk\": null,\r\n00:10:06.399 \t\t\t\"selected\": true,\r\n00:10:06.399 \t\t\t\"path\": \"C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 12.0\\\\\",\r\n00:10:06.399 \t\t\t\"clrVersion\": \"v4.0.30319\"\r\n00:10:06.399 \t\t},\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-03T15:37:52.000+0000", "updated": "2015-11-03T15:37:52.000+0000" }, { "id": "368835", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "It's a permissions issue, but hell if I know where/how to fix it. If I try to run AppDeployCmd.exe /EnumerateDevices from the build script we get:\r\n{code}\r\nError: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n{code}\r\n\r\nVPN/RDC in using the same account and running works fine.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-03T15:38:54.000+0000", "updated": "2015-11-03T15:38:54.000+0000" }, { "id": "368849", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "This sucked to try and track down. Looks like because I initially set the Windows boxes up as slaves using a service (so I no longer had to manually log in to connect them to Jenkins), it did this as Administrator by default. Great, except it f-ed up all the permissions and npm didn't like it one bit. So I tried some hacks, but eventually changed teh service to run as the same user I'd VPN/RDC in as. Awesome. Except now we magically can't find any emulators. Except using the exact same account manually, I can. Ran ProcMon while the build failed to pick up emulators. Shows access is denied to C:\\ProgramData\\WowSys64\\config\\AppData\\Local and various subfolders. WTF? Why would it be using those folders?\r\n\r\nBecause Jenkins has a big bug: \r\n- https://issues.jenkins-ci.org/browse/JENKINS-27739\r\n- https://issues.jenkins-ci.org/browse/JENKINS-28278\r\n\r\nbasically when the service connected to Jenkins master as Admin is cached all the ENV. Then when I later stopped/modified/restarted it using the correct account, IT NEVER UPDATED THE ENV VARS, thereby using the Admin HOME/USERPROFILE as the APPC/appcelerator user. Fix is to start service as APPC/appcelerator, restart Jenkins master and have a beer.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2015-11-03T17:27:16.000+0000", "updated": "2015-11-03T17:27:16.000+0000" }, { "id": "368915", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": ":)(y)", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-04T01:37:25.000+0000", "updated": "2015-11-04T01:37:25.000+0000" }, { "id": "377026", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket since it's a dev task.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-16T22:37:38.000+0000", "updated": "2016-02-16T22:37:38.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }