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)
Tracking
(blocking-b2g:koi+, b2g-v1.2 fixed)
| 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)
|
163.50 KB,
patch
|
jrburke
:
review+
timdream
:
feedback+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Updated•12 years ago
|
QA Contact: mike
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mike
QA Contact: mike
| Assignee | ||
Comment 1•12 years ago
|
||
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 2•12 years ago
|
||
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)
| Assignee | ||
Comment 3•12 years ago
|
||
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)
| Assignee | ||
Comment 4•12 years ago
|
||
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 5•12 years ago
|
||
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 6•12 years ago
|
||
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 7•12 years ago
|
||
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+
| Assignee | ||
Comment 8•12 years ago
|
||
master: https://github.com/mozilla-b2g/gaia/commit/959ac2f692d85072ffdc3d16a041b5bf4735ae59
James: thanks a million for all your help!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 9•12 years ago
|
||
Requesting "koi+" because this bug blocks a blocker (bug 915023)
blocking-b2g: --- → koi?
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
triage: koi+, blocks a regression fix
Updated•12 years ago
|
blocking-b2g: koi? → koi+
Comment 12•12 years ago
|
||
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)
| Assignee | ||
Comment 13•12 years ago
|
||
Uplifted 959ac2f692d85072ffdc3d16a041b5bf4735ae59 to:
v1.2: 2ae3c8130498dfb9934039843bc42ac9e786c364
status-b2g-v1.2:
--- → fixed
Flags: needinfo?(mike)
Updated•12 years ago
|
Keywords: perf
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Whiteboard: [c=progress p= s=2013.10.25 u=1.2]
Comment 14•12 years ago
|
||
Setting Target Milestone for all FxOS Perf 1.2 issues fixed for 10.25.
Target Milestone: --- → 1.2 C3(Oct25)
Updated•12 years ago
|
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.
Description
•