{ "id": "118650", "key": "TIMOB-14922", "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": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15598", "description": "2013 Sprint 17 Core", "name": "2013 Sprint 17 Core", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-21T21:52:21.000+0000", "created": "2013-08-16T11:53:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cli", "qe-closed-3.1.3", "qe-testadded", "regression", "triage" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "31225", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "107459", "key": "TIMOB-12222", "fields": { "summary": "Android: Package: remove tiapp.xml in apk", "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": "31198", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "118722", "key": "TISTUD-5281", "fields": { "summary": "Studio Building workspace every time I save a file", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-19T12:35:01.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Since the 3.1.2.GA release of the SDK, when building for Android the CLI will always do a full rebuild, telling:\r\n\r\n{code}\r\nDetected change in tiapp.xml, or assets deleted. Forcing full re-build...\r\n{code}\r\n\r\nWith Android on 3.1.1.GA and iOS on 3.1.2.GA all is good.\r\nEmulator or Device doesn't matter.\r\n\r\nh1. To reproduce\r\n{code}\r\ntitanium sdk select 3.1.2.GA\r\ntitanium create -p android -n ./test --id test\r\ncd test\r\ntitanium build -p android\r\ntitanium build -p android\r\n{code}\r\n\r\nThe second build will again do a full rebuild", "attachment": [], "flagged": false, "summary": "Android: Always does a full rebuild since 3.1.2.GA", "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": "SDK 3.1.2.GA\r\nMac OS X 10.8.4", "comment": { "comments": [ { "id": "267208", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with both Alloy and Regular titanium projects with 3.1.2 on android Emulator and could not reproduce.\n\nFokke: Does this happen with a new default project too?\n", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-19T21:26:55.000+0000", "updated": "2013-08-19T21:26:55.000+0000" }, { "id": "267244", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue with a larger alloy project, building an app on to device for several times with no changes.\r\nEnvironment:\r\nMac osx 10.8.4 Mountain Lion\r\nAppcelerator Studio, build: 3.1.2.201308091728\r\nTitanium Studio, build: 3.1.2.201308091617\r\nTitanium SDK, builds:3.1.1.GA ; 3.1.2.GA ; 3.1.3.v20130816184556 \r\nAlloy: 1.2.1-cr\r\nCLI: 3.1.2\r\nDoes not matter if it is a device or an emulator.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-19T23:35:12.000+0000", "updated": "2013-08-20T21:29:07.000+0000" }, { "id": "267280", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I updated the steps to reproduce, which as you can see included creating a default project, all using CLI.\r\n\r\nIt always reproduces for me with:\r\n\r\nSDK 3.1.2.GA\r\nAlloy 1.2.0\r\nCLI 3.1.2", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-08-20T08:43:19.000+0000", "updated": "2013-08-20T08:44:12.000+0000" }, { "id": "267288", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I'm seeing this with Alloy projects. Building to device via Studio.\n\nStudio 3.1.2.201308091617\nTiSDK 3.1.2GA\nAlloy 1.2GA\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-20T13:44:34.000+0000", "updated": "2013-08-20T13:44:34.000+0000" }, { "id": "267332", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "With Alloy, the `tiapp.xml` is read on each compile, but online the `atime` changes and I assume the Titanium CLI looks for an `mtime` change, so that can't be the issue.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-08-20T17:27:49.000+0000", "updated": "2013-08-20T17:27:49.000+0000" }, { "id": "267373", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~skypanther] There is a related ticket for Studio linked to this ticket. I think this is the issue you are experiencing. Investigating this issue further, it seems that \"deltafy\" in the builder.py is potentially causing the tiapp.xml to be flagged as having changed, which in turn triggers a rebuild.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-20T19:33:46.000+0000", "updated": "2013-08-20T19:33:46.000+0000" }, { "id": "267374", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The CLI behavior may be exacerbating the Studio issue. Will continue to investigate.\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-20T19:35:32.000+0000", "updated": "2013-08-20T19:35:32.000+0000" }, { "id": "267375", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "OK, I'm not seeing the workspace rebuild each time. But the tiapp.xml is being 'touched' or something because I get a full rebuild each time. If I keep tiapp.xml open in the editor, Studio prompts me that it changed on disk and asks to reload it. There's no change if I reload, so it's just the timestamp being touched.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-20T19:44:40.000+0000", "updated": "2013-08-20T19:44:40.000+0000" }, { "id": "267448", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~emerriman] the linked ticket is not related. I'm talking about the build of the app being a full rebuild, not about the Studio workspace being rebuild. I don't use studio at all.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-08-21T07:14:38.000+0000", "updated": "2013-08-21T07:14:38.000+0000" }, { "id": "267485", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4592", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-21T16:50:57.000+0000", "updated": "2013-08-21T16:50:57.000+0000" }, { "id": "267532", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_!_X: https://github.com/appcelerator/titanium_mobile/pull/4594", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-21T21:02:59.000+0000", "updated": "2013-08-21T21:02:59.000+0000" }, { "id": "267788", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fokke] Hello, there are now two linked tickets. One is the ticket that spawned the commit that caused the behavior in this ticket. (TIMOB-12222) The other (TISTUD-5281) is related to this ticket because studio is triggering a reindex of the project because the tiapp.xml seems changed. Due to another studio behavior that results in an indexing of Alloy \"resources\" folders for existing projects, Tim is seeing the result of this ticket TIMOB-14922 causing a full rebuild (from command-line or studio) which then forces a reindex on Alloy in Studio TISTUD-5281, which takes a while since it also looks at the resources folder. \n\nI do understand you are not using Studio.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T03:35:40.000+0000", "updated": "2013-08-23T03:35:40.000+0000" }, { "id": "267806", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified this issue with Classic as well as Alloy projects from CLI and Studio. Used the below environment - \n\nAppc-Studio: 3.1.3.201308201707\nSdk: 3.1.3.v20130822140128\nacs:1.0.6\nalloy:1.2.1-cr\ntitanium:3.1.2\nOS: OSX 10.8.4\n\nResult - The message \"Detected change in tiapp.xml, or assets deleted. Forcing full re-build...\" is appearing only on first execution. Second time, this message is not appearing. Observed the same behavior from Studio as well as CLI for Classic and Alloy projects.\n\nObservation - From CLI, the project build execution looks same for first time and second time for default Alloy project. Also the time taken for project build is approximately same for both the time. However could observe noticeable time difference for project build on the second time for Classic Project.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T10:50:34.000+0000", "updated": "2013-08-23T10:50:34.000+0000" }, { "id": "267873", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nTitanium Studio, build: 3.1.3.201308201302\nAppcelerator Studio, build: 3.1.3.201308201707\nTitanium SDK, build: 3.1.3.v20130822140128\nalloy:1.2.1-cr\nCLI: 3.1.2\nMac osx 10.8.4 Mountain Lion\n\nActual result:\nThe message \"Detected change in tiapp.xml, or assets deleted. Forcing full re-build...\" occurs only on a first build.\nBuilding a project a second time with the same SDK build won't show this mesage in a log.\nAnd the only slowness I noticed (for alloy and classic projects), building second + time, is on copying resources.\n\n{code}\n[INFO] Copying project resources..\n[INFO] Tiapp.xml unchanged, skipping class generation\n[INFO] Compiling Javascript Resources ...\n[INFO] Compiling Android Resources... This could take some time\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T18:01:16.000+0000", "updated": "2013-08-23T18:01:16.000+0000" }, { "id": "293736", "author": { "name": "roopesh", "key": "roopesh", "displayName": "roopesh nema", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am facing this issue with latest build ....\r\n\r\nTitanium Studio, build: 3.2.1.201402041146\r\n\r\nTitanium SDK version: 3.1.3 (09/18/13 12:00 222f4d1)\r\n\r\n[INFO] : Emulator is running\r\n[INFO] Titanium SDK version: 3.1.3 (09/18/13 12:00 222f4d1)\r\n[INFO] Fastdev server running, deploying in Fastdev mode\r\n[INFO] Copying CommonJS modules...\r\n[INFO] Copying project resources..\r\n[INFO] Detected change in tiapp.xml, or assets deleted. Forcing full re-build...\r\n[INFO] Force including all modules...\r\n[INFO] Force including all modules...\r\n[INFO] Compiling Javascript Resources ...\r\n[INFO] Copying platform-specific files for 'Facebook' module\r\n[INFO] Compiling localization files\r\n[INFO] Adding New Relic support.\r\n[INFO] Compiling Android Resources... This could take some time\r\n[INFO] Installing application on emulator\r\n\r\n\r\n", "updateAuthor": { "name": "roopesh", "key": "roopesh", "displayName": "roopesh nema", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-19T12:35:01.000+0000", "updated": "2014-02-19T12:35:01.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }