Open Bug 1242178 Opened 8 years ago Updated 2 months ago

Strip paths from bug searches for assertions so they'll be starrable

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: philor, Unassigned)

References

Details

Attachments

(1 obsolete file)

Assertion failures have failure messages of the form "Assertion failure: !mCanSend, at /builds/slave/fx-team-lx-d-00000000000000000/build/src/gfx/layers/ipc/CompositorChild.cpp:398" so the bug search is for "Assertion failure: !mCanSend, at /builds/slave/fx-team-lx-d-00000000000000000/build/src/gfx/layers/i" so they can't be matched without filing a separate bug for every tree and every platform.

If instead we stripped the path the way we strip paths from test filenames before searching, we could actually file on assertions rather than filing on the rarely-useful crash stack and confusing people into thinking that what happened was a crash rather than an assertion, or thinking that two failures from different assertions that happen to have the same meaningless crash signature are the same bug.
(In reply to Phil Ringnalda (:philor) from comment #0)
> Assertion failures have failure messages of the form "Assertion failure:
> !mCanSend, at
> /builds/slave/fx-team-lx-d-00000000000000000/build/src/gfx/layers/ipc/
> CompositorChild.cpp:398" so the bug search is for "Assertion failure:
> !mCanSend, at
> /builds/slave/fx-team-lx-d-00000000000000000/build/src/gfx/layers/i" so they
> can't be matched without filing a separate bug for every tree and every
> platform.

Ted, would it be practical to make the assertion failure error messages output a relative path instead?

I'd prefer to fix this at the source rather than work around it in Treeherder, if possible :-)
Flags: needinfo?(ted)
I think it'd be hard to do at the *actual* source, which just prints __FILE__:
https://dxr.mozilla.org/mozilla-central/rev/aa90f482e16db77cdb7dea84564ea1cbd8f7f6b3/mfbt/Assertions.h#372

We could, however, post-process this in test harnesses, which is sort of a pain but relatively feasible.
Flags: needinfo?(ted)
Component: Treeherder → Treeherder: Log Parsing & Classification
Priority: -- → P3
Component: Treeherder: Log Parsing & Classification → TreeHerder
Attachment #9382982 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: