Closed Bug 922126 Opened 12 years ago Closed 12 years ago

[Clock] Introduce AMD and associated build process

Categories

(Firefox OS Graveyard :: Gaia::Clock, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 fixed)

RESOLVED FIXED
1.2 C3(Oct25)
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- fixed

People

(Reporter: jugglinmike, Assigned: jugglinmike)

References

Details

(Keywords: perf, Whiteboard: [c=progress p= s=2013.10.25 u=1.2], QARegressExclude)

Attachments

(1 file, 2 obsolete files)

Formally define Clock's modules using AMD and implement an AMD-aware build process. This: - Improves maintainability through: - Explicit module inter-dependencies - Simplified `index.html` file that does not require redundant data - Simplifies unit testing - Optimizes initial load time on the device by combining all necessary code into a single file The E-mail application already takes this approach and should be considered an example of how AMD may be leveraged within Gaia.
Blocks: 915023
QA Contact: mike
Assignee: nobody → mike
QA Contact: mike
Attached patch 922126-clock-amd.patch (obsolete) — Splinter Review
Hi Tim! There are many changes here, but they are mostly limited to the beginning and ending of each file. You can find more background about my process in Bug 915023 and the obsolete pull request for that bug [1]. You can also refer to the E-mail application as it exists in `master` today [2]--the build process is derived from that app. [1] https://github.com/mozilla-b2g/gaia/pull/12406 [2] https://github.com/mozilla-b2g/gaia/tree/de6b143ed823fc195c8a802ed4f833cc88d489ba/apps/email
Attachment #813662 - Flags: review?(timdream)
Attachment #813662 - Flags: feedback?(jrburke)
Comment on attachment 813662 [details] [diff] [review] 922126-clock-amd.patch I put some feedback comments in the pull request here: https://github.com/mozilla-b2g/gaia/pull/12654 I suggest addressing at least the Makefile and .css @import comments before an official review is done, as I needed those to properly test in make DEBUG=1 mode.
Attachment #813662 - Flags: feedback?(jrburke)
Attached patch 922126-clock-amd-v2.patch (obsolete) — Splinter Review
I've incorporated James' feedback on my initial patch. I've squashed this down into one commit for this patch file, but you can find the individual commits on the GitHub pull request I've opened for this bug: https://github.com/mozilla-b2g/gaia/pull/12654 From the previous attachment: Hi Tim! There are many changes here, but they are mostly limited to the beginning and ending of each file. You can find more background about my process in Bug 915023 and the obsolete pull request for that bug [1]. You can also refer to the E-mail application as it exists in `master` today [2]--the build process is derived from that app. [1] https://github.com/mozilla-b2g/gaia/pull/12406 [2] https://github.com/mozilla-b2g/gaia/tree/de6b143ed823fc195c8a802ed4f833cc88d489ba/apps/email
Attachment #813662 - Attachment is obsolete: true
Attachment #813662 - Flags: review?(timdream)
Attachment #813755 - Flags: review?(timdream)
Attachment #813755 - Flags: review?(jrburke)
I've incorporated James' feedback on my initial patch, and I've included one minor update to better-facilitate running the unit tests in the browser. I've squashed this down into one commit for this patch file, but you can find the individual commits on the GitHub pull request I've opened for this bug: https://github.com/mozilla-b2g/gaia/pull/12654 From the original attachment: Hi Tim! There are many changes here, but they are mostly limited to the beginning and ending of each file. You can find more background about my process in Bug 915023 and the obsolete pull request for that bug [1]. You can also refer to the E-mail application as it exists in `master` today [2]--the build process is derived from that app. [1] https://github.com/mozilla-b2g/gaia/pull/12406 [2] https://github.com/mozilla-b2g/gaia/tree/de6b143ed823fc195c8a802ed4f833cc88d489ba/apps/email
Attachment #813755 - Attachment is obsolete: true
Attachment #813755 - Flags: review?(timdream)
Attachment #813755 - Flags: review?(jrburke)
Attachment #813758 - Flags: review?(timdream)
Attachment #813758 - Flags: review?(jrburke)
Comment on attachment 813758 [details] [diff] [review] 922126-clock-amd-v3.patch Review of attachment 813758 [details] [diff] [review]: ----------------------------------------------------------------- Having jrburke review the patch would be enough :) Thanks!
Attachment #813758 - Flags: review?(timdream) → feedback?
Comment on attachment 813758 [details] [diff] [review] 922126-clock-amd-v3.patch Review of attachment 813758 [details] [diff] [review]: ----------------------------------------------------------------- Having jrburke review the patch would be enough :) Thanks!
Attachment #813758 - Flags: feedback? → feedback+
Comment on attachment 813758 [details] [diff] [review] 922126-clock-amd-v3.patch Review of attachment 813758 [details] [diff] [review]: ----------------------------------------------------------------- I just had a few very small follow up comments in the pull request. With those addressed and tested locally, r+ from me. If a rebase with those changes against latest master passes travis on the pull request, it is good to merge.
Attachment #813758 - Flags: review?(jrburke) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Requesting "koi+" because this bug blocks a blocker (bug 915023)
blocking-b2g: --- → koi?
triage: koi+, blocks a regression fix
blocking-b2g: koi? → koi+
I was not able to uplift this bug to v1.2. If this bug has dependencies which are not marked in this bug, please comment on this bug. If this bug depends on patches that aren't approved for v1.2, we need to re-evaluate the approval. Otherwise, if this is just a merge conflict, you might be able to resolve it with: git checkout v1.2 git cherry-pick -x 959ac2f692d85072ffdc3d16a041b5bf4735ae59 <RESOLVE MERGE CONFLICTS> git commit
Flags: needinfo?(mike)
Uplifted 959ac2f692d85072ffdc3d16a041b5bf4735ae59 to: v1.2: 2ae3c8130498dfb9934039843bc42ac9e786c364
Flags: needinfo?(mike)
Keywords: perf
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Whiteboard: [c=progress p= s=2013.10.25 u=1.2]
Setting Target Milestone for all FxOS Perf 1.2 issues fixed for 10.25.
Target Milestone: --- → 1.2 C3(Oct25)
Whiteboard: [c=progress p= s=2013.10.25 u=1.2] → [c=progress p= s=2013.10.25 u=1.2], QARegressExclude
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: