Closed Bug 1279048 Opened 8 years ago Closed 8 years ago

Use MOZ_SOURCE_REPO for source file mapping in buildsymbols

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox49 fixed, firefox50 fixed, firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox49 --- fixed
firefox50 --- fixed
firefox51 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: gps)

References

Details

Attachments

(1 file)

13:45:33     INFO -  Failed to get HG Repo for c:\builds\moz2_slave\try-w64-d-00000000000000000000\build\src
13:45:33     INFO -  Could not determine repo info for c:\builds\moz2_slave\try-w64-d-00000000000000000000\build\src.  This is either not a clone of the web-based
13:45:33     INFO -  repository, or you have not specified SRCSRV_ROOT, or the clone is corrupt.
13:45:33     INFO -  Failed to get HG Repo for c:\builds\moz2_slave\try-w64-d-00000000000000000000\build\src
13:45:33     INFO -  Could not determine repo info for c:\builds\moz2_slave\try-w64-d-00000000000000000000\build\src.  This is either not a clone of the web-based
13:45:33     INFO -  repository, or you have not specified SRCSRV_ROOT, or the clone is corrupt.

[...]

mozmake.EXE[4]: *** [buildsymbols] Error 1
mozmake.EXE[3]: *** [automation/buildsymbols] Error 2
mozmake.EXE[3]: *** Waiting for unfinished jobs....
mozmake.EXE[2]: *** [automation/build] Error 2
mozmake.EXE[1]: *** [realbuild] Error 2
mozmake.EXE: *** [build] Error 2
Return code: 1 


https://treeherder.mozilla.org/#/jobs?repo=try&revision=2e803302f3c7&selectedJob=22199087
This is a regression from the work in bug 1270317. We no longer have a straight clone of individual repos in automation so we can't trust that .hg/hgrc has the appropriate [path] entries. The repo URL will need to be obtained from environment variables, similar to what's done in build/variables.py - see bug 1274655.

Come to think of it, the bug here is likely that symbolstore.py isn't using the VCS info set by variables.py (it has its own code for reading hg repo info).
Depends on: 1270317
MOZ_SOURCE_REPO is set by automation to indicate the URL of the current
repository. I'm not sure what SRCSRV_ROOT is from. Probably legacy.

Use MOZ_SOURCE_REPO instead of SRCSRV_ROOT.

Review commit: https://reviewboard.mozilla.org/r/58612/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/58612/
Attachment #8761396 - Flags: review?(ted)
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/58612/diff/1-2/
Assignee: nobody → gps
Status: NEW → ASSIGNED
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

https://reviewboard.mozilla.org/r/58612/#review57902

`SRCSRV_ROOT` dates back to the days of CVS(!) when we needed to manually specify the repository path. Replacing it here should be fine.

::: toolkit/crashreporter/tools/symbolstore.py:139
(Diff revision 2)
>      return stdout.rstrip()
>  
>  class HGRepoInfo:
>      def __init__(self, path):
>          self.path = path
>          rev = read_output('hg', '-R', path,

It'd be nice to also honor `MOZ_SOURCE_CHANGESET`.
Attachment #8761396 - Flags: review?(ted) → review+
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/58612/diff/2-3/
Attachment #8761396 - Flags: review+ → review?(ted)
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

https://reviewboard.mozilla.org/r/58612/#review60030
Attachment #8761396 - Flags: review?(ted) → review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/229cd3b8bf5d
Check MOZ_SOURCE_REPO for repository URL; r=ted
Working on this now.
Flags: needinfo?(gps)
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

https://reviewboard.mozilla.org/r/58612/#review75672

Thanks for getting back to this!
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/19395c1734f2
Check MOZ_SOURCE_REPO for repository URL; r=ted
https://hg.mozilla.org/mozilla-central/rev/19395c1734f2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

Approval Request Comment
[Feature/regressing bug #]: bug 1270317
[User impact if declined]: debug symbols may not be attributed to proper repository, confuses crash reporting
[Describe test coverage new/current, TreeHerder]: there is a unit test. ted will provide confirmation that symbols produced with this change behave properly
[Risks and why]: automation only change. should be low. it either works or it doesn't
[String/UUID change made/needed]: none

Ted: could you please spot check and sign off that this patch fixed things?
Flags: needinfo?(ted)
Attachment #8761396 - Flags: approval-mozilla-beta?
Attachment #8761396 - Flags: approval-mozilla-aurora?
Comment on attachment 8761396 [details]
Bug 1279048 - Check MOZ_SOURCE_REPO for repository URL;

[Triage Comment]

OK to uplift, should only affect debug symbols.
Attachment #8761396 - Flags: approval-mozilla-release+
Attachment #8761396 - Flags: approval-mozilla-beta?
Attachment #8761396 - Flags: approval-mozilla-beta+
Attachment #8761396 - Flags: approval-mozilla-aurora?
Attachment #8761396 - Flags: approval-mozilla-aurora+
I spot checked a few symbol files from nightly builds and they all look OK.
Flags: needinfo?(ted)
Summary: buildsymbols] Error 1 → Use MOZ_SOURCE_REPO for source file mapping in buildsymbols
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: