Closed Bug 854121 Opened 11 years ago Closed 11 years ago

sources.xml is not regenerated unless I clobber out/

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

When we build the image for a B2G device, we include a sources.xml file that shows what repositories and revisions the code used for that build came from.  This is important because it's generally good practice to be able to replicate builds of software.  This makes it possible to do things like bisect regressions.

However, the sources.xml file is only regenerated when:
 * the out/ directory is clobbered
 * the underlying manifest is updated
or similar situations.  In particular, it doesn't get updated when I just run:
  ./repo sync # this pulls new revisions for repositories tracked by branch
  ./build.sh
  ./flash.sh
which is a relatively common case.  Then I end up with a sources.xml that doesn't reflect the sources used to build what's on the phone; instead it reflects what last showed up when I clobbered out/.

This is relatively easy to fix; I'll make a pull request shortly.
Guessing a reviewer, possibly incorrectly.  Please redirect if needed.
Attachment #728646 - Flags: review?(jhford)
Comment on attachment 728646 [details]
Regenerate sources.xml unconditionally rather than only when the underlying manifest changes

gonk-misc master: 7c22d3b
Attachment #728646 - Flags: review?(jhford) → review+
David, if you are using GECKO_PATH at all, this will still use the repo-managed copy of gecko for the manifests created.  We'd need to modify the add-revision.py script to be able to track the GECKO_PATH changes, as well as supporting native HG in that script for HG managed versions of Gecko.
Do you think it's worth uplifting this at all?

(I'm not using GECKO_PATH.)
https://github.com/mozilla-b2g/gonk-misc/commit/7c22d3bbb8732f5917c9642b5025717092ae2b89
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: