Closed Bug 483548 Opened 14 years ago Closed 14 years ago

buildsymbols messes up Linux Z test results

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: ted)

References

Details

Attachments

(1 file)

The Linux tinderbox is showing 15MB (or about the entire codesize) fluctuations in the Z number.  For a typical build when Z decreased by 15MB, here are the library files that are claimed to have gotten smaller:

libxpcom.so.dbg
nm2tsv.dbg
libunixprintplugin.so.dbg
libplds4.so.dbg
mozilla-xremote-client.dbg
nsinstall.dbg
libplc4.so.dbg
codesighs.dbg
libnullplugin.so.dbg
maptsvdifftool.dbg
etc, etc,
libxul.so.dbg,
etc

I assume that something is leaving files that it shouldn't in dist, right?
Looks like fallout from bug 478876, which gives us stacks for talos.
Graph server makes it look like it started midday 2009-03-11, which looks more like bug 420474. Ted's fault either way, but then that's no surprise ;)
Blocks: 420474
Yeah, that bug makes us use objcopy --only-debug to split debug info out of binary files. We can probably fix the symbol store script to not leave those wherever they get counted by codesighs. Basically just change this copy to a move:
http://mxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/tools/symbolstore.py#658
Another option would be to change autosummary.unix.bash to filter those files out; not sure which is a simpler/safer change.  Right now, autosummary uses the following command to find the files it wants:

  find $OBJROOT/dist/bin -not -type d

Can we do one or the other quickly, though?
Ted: Dont mind if you leave this bug here or not, but can you take this?
Assignee: nobody → ted.mielczarek
OS: Mac OS X → Linux
Assignee: ted.mielczarek → nobody
Group: mozilla-confidential
Component: Release Engineering → Build Config
Product: mozilla.org → Core
QA Contact: release → build-config
Version: other → Trunk
Assignee: nobody → ted.mielczarek
Group: mozilla-confidential
Status: NEW → ASSIGNED
Summary: Linux Z test results completely nuts → buildsymbols messes up Linux Z test results
This fixes the symbolstore script to not leave .dbg files in dist/bin. Works for me locally.
Attachment #367602 - Flags: review?(benjamin)
Attachment #367602 - Flags: review?(benjamin) → review+
I don't think we're blowing away dist/bin at the top of each build, so we need to go round with a clobber or manual cleanup for this ?
Pushed to m-c:
http://hg.mozilla.org/mozilla-central/rev/132f022dcdd0
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Nick: I think this should resolve itself (since they'll be overwritten and then moved), if it doesn't after a cycle you could do a:
find dist/bin -name "*.dbg" | xargs rm
Verified that the script is moving *.dbg away, but unfortunately that happens after calculating Z for the current run. Went ahead and removed all the dbg's hanging around on the slaves (mozilla-central-linux dirs only).
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.