Closed Bug 2073279 Opened 2 months ago Closed 2 months ago

Talos and Raptor profiles no longer symbolicate properly

Categories

(Testing :: Mozbase, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox-esr140 unaffected, firefox-esr153 unaffected, firefox156 wontfix, firefox157 wontfix, firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox156 --- wontfix
firefox157 --- wontfix
firefox158 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

.... at least not on try.

This is a regression from bug 1998767. Before that change, symbolication respected self.options["symbolPaths"]["FIREFOX"], but now get_extracted_symbols only checks MOZ_FETCHES_DIR and doesn't look at the --symbolPaths arg that Talos and Raptor still pass in.

On central + autoland, symbolication still happens to work because we also try to get symbols from symbols.mozilla.org and on those branches we automatically upload symbols. On try we don't.

Talos and Raptor don't have the symbols zip in the MOZ_FETCHES_DIR; the add_symbols_to_xpcshell_mochitest transform adds it to xpcshell and mochitest jobs but not to Talos and Raptor jobs. Instead, Talos and Raptor use --download-symbols ondemand and get passed a URL to the zip file via a four step process:

  1. set_download_symbols sets task["mozharness"]["download-symbols"] = "ondemand"
  2. This gets turned into a --download-symbols command line flag
  3. _download_and_extract_symbols uses query_symbols_url to get the zip URL
  4. The URL gets propagated via kw_options["symbolsPath"] = self.symbols_path (Talos, Raptor).

What should we do here - make the --symbolsPath argument work again, or remove it and instead always fetch symbols?

Flags: needinfo?(gmierzwinski)

(In reply to Markus Stange [:mstange] from comment #2)

What should we do here - make the --symbolsPath argument work again, or remove it and instead always fetch symbols?

There's already code which fetches samply in exactly the cases where we need it, so fetching crashreporter symbols in the same cases seems like a simple enough solution.

Flags: needinfo?(gmierzwinski)
Assignee: nobody → mstange.moz
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1998767

Bug 1998767 changed symbolication to only look for
$MOZ_FETCHES_DIR/target.crashreporter-symbols.zip; the existing --symbolsPath
was ignored. But Talos and Raptor tasks don't have target.crashreporter-symbols.zip
in their $MOZ_FETCHES_DIR because they were using "ondemand" symbol fetching.
In bug 1998767 we were assuming that this ondemand symbolPaths was only needed for
fallback symbolication and not for samply symbolication, but it turns out we were
passing the path to samply, too, and now that's not happening anymore.

This patch adds the necessary fetches in add_gecko_profile_symbolication_deps,
so that checking $MOZ_FETCHES_DIR/target.crashreporter-symbols.zip will now work.
This is simpler than fetching the zip from the symbolPaths; this transform already
touches exactly the cases where we know we'll be profiling.

The GeckoProfile action on Treeherder patches MOZ_FETCHES directly instead of
running the transforms again, so add the zip there too.

Blocks: 2073524
Pushed by mstange@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3b5f653a4953 https://hg.mozilla.org/integration/autoland/rev/d1eb9d46aa8a Fetch the crashreporter symbols for Talos and Raptor profiling tasks. r=taskgraph-reviewers,perftest-reviewers,releng-reviewers,bhearsum,sparky
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch

The patch landed in nightly and beta is affected.

:mstange, please make an uplift decision for beta:

  • Nominate the patch for beta uplift approval if the fix should be included in this release, or
  • Set status-firefox157 to wontfix if the fix can wait for the next release.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(mstange.moz)
Flags: needinfo?(mstange.moz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: