Closed
Bug 1154901
Opened 10 years ago
Closed 10 years ago
mozilla-download never thinks $GAIA/b2g is up-to-date
Categories
(Testing Graveyard :: JSMarionette, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gaye, Assigned: gaye)
Details
Attachments
(2 files)
The issue is that if you have an out-of-date $GAIA/b2g we'll download new stuff and copy it into the directory instead of clobbering the existing b2g dir which doesn't update the b2g dir's timestamp (only the timestamp of its children) so make gets tripped up.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → gaye
Comment 1•10 years ago
|
||
| Assignee | ||
Comment 2•10 years ago
|
||
Just a little patch to make sure that $GAIA/b2g timestamp gets updated when we run |make b2g|
Attachment #8593019 -
Flags: review?(poirot.alex)
Comment 3•10 years ago
|
||
Comment on attachment 8593019 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/29529
I'm bit overloaded these days and Ricky has a better knowledge of the build system now.
Attachment #8593019 -
Flags: review?(poirot.alex) → review?(ricky060709)
Updated•10 years ago
|
Attachment #8593019 -
Flags: review?(ricky060709) → review+
Comment 4•10 years ago
|
||
Patch looks fine to me but I don't totally understand why we have to update b2g's timestamp?
Comment 5•10 years ago
|
||
(In reply to Ricky Chien [:rickychien] from comment #4)
> Patch looks fine to me but I don't totally understand why we have to update
> b2g's timestamp?
Make determines whether a target needs to be re-made based on the target's timestamps and the timestamps of its dependencies. Without this fix, on OS X, the timestamp of b2g will never be updated after it's initially created. However, we update node_modules all the time, so node_modules (as well as the current dep "node_modules/.bin/mozilla-download" that's being simplified to node_modules) can easily end up with more recent timestamps. Once that happens, OS X users will find that every time "make b2g" is invoked (or anything depending on the "b2g" target), make will decide that it needs to rebuild the "b2g" target and re-run its rules which means re-downloading b2g.
| Assignee | ||
Comment 6•10 years ago
|
||
Thanks for explanation :asuth! https://github.com/mozilla-b2g/gaia/commit/3cd0a9facce26c2acc7be3755a17131a6358e33f landed on master
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•