Closed Bug 2083996 Opened 1 month ago Closed 29 days ago

Put gtest libxul symbols into a separate crashreporter-symbols-gtest.zip

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox161 fixed)

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

Attachments

(3 external files)

Every crashreporter-symbols.zip archive contains two variants of libxul symbols: The regular variant and the gtest variant.
The extra libxul symbols make up around 40% of the zip file.

The gtest symbols are only needed by the gtest job, not by any of the other jobs. So I think it makes sense to put them into a separate artifact, so that those other jobs have a smaller download. The gtest jobs will need to download two zip files.

The symbols for the gtest libxul are moving out of crashreporter-symbols.zip
into a separate zip, so gtest runs need symbols from both.

This prepares for moving the gtest libxul symbols out of
crashreporter-symbols.zip. When symbols are downloaded up front, the gtest zip
is extracted into the same directory as the main zip. When they are downloaded
on demand, the harness receives both URLs and passes them to mozcrash. Builds
without the gtest zip still get the main zip.

The gtest libxul makes up about 40% of crashreporter-symbols.zip, but only gtest
tasks need its symbols. Most other test tasks download the zip as well: debug
tests at startup, and mochitest, xpcshell and browsertime tasks through fetches.

And for shippable builds on autoland/central, we would previously upload these
gtest symbols to the symbol server. As far as I'm aware that's always been a waste.

So this patch puts the gtest symbols into a separate zip file. This file
only gets pulled by gtest jobs, other jobs ignore it. We also stop uploading
the symbols to the symbol server.

As for the "full" symbols, I was unsure what to do with them. By "full" symbols
we mean native debug information, e.g. pdb files on Windows. We don't
really have any use for pdb files of gtests, unless you're actually dealing
with a crash in a gtest in CI that you need to debug with a native debugger.
So this patch makes it so that we don't output the gtest pdb unless you're on
try; and on try, they're made available as a separate artifact. Nothing uses that
artifact, but it's there for this rare case.
This is loosely inspired by what we do with the other test-only pdb files, e.g.
the ones for cppunittests. For those we already have "discard unless on try"
behavior from bug 1473423.

It worked!

Before: 977.3MB downloaded by macOS sp3 run
After: 541.5MB downloaded by macOS sp3 run
And with bug 2084276: 268.0MB downloaded by macOS sp3 run

Assignee: nobody → mstange.moz
Attachment #9664948 - Attachment description: WIP: Bug 2083996 - Let mozcrash accept a list of symbols paths and URLs. r?#mozbase-reviewers → Bug 2083996 - Let mozcrash accept a list of symbols paths and URLs. r?#mozbase
Status: NEW → ASSIGNED
Attachment #9664949 - Attachment description: WIP: Bug 2083996 - Give gtest runs the symbols from crashreporter-symbols-gtest.zip. r?#releng-reviewers → Bug 2083996 - Give gtest runs the symbols from crashreporter-symbols-gtest.zip. r?#releng-reviewers
Attachment #9664950 - Attachment description: WIP: Bug 2083996 - Put the symbols for gtest-only binaries into separate crashreporter-symbols-gtest archives. r?#build → Bug 2083996 - Put the symbols for gtest-only binaries into separate crashreporter-symbols-gtest archives. r?#firefox-build-system-reviewers,#taskgraph-reviewers
Pushed by mstange@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/48b7ebea9e5a https://hg.mozilla.org/integration/autoland/rev/c16da6acb0f2 Let mozcrash accept a list of symbols paths and URLs. r=mozbase-reviewers,gsvelto,whimboo https://github.com/mozilla-firefox/firefox/commit/07417b249839 https://hg.mozilla.org/integration/autoland/rev/53e619272d42 Give gtest runs the symbols from crashreporter-symbols-gtest.zip. r=releng-reviewers,bhearsum https://github.com/mozilla-firefox/firefox/commit/bf7b8d09f71c https://hg.mozilla.org/integration/autoland/rev/f4547499a9ea Put the symbols for gtest-only binaries into separate crashreporter-symbols-gtest archives. r=firefox-build-system-reviewers,taskgraph-reviewers,ahochheiden,jcristau,browser-installer-reviewers,spohl
Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: