mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
3a87ac6ec2
Summary: Modify error redirect extension to send crash log, type and traceback to scuba table hgerrors Test Plan: Sample that is being sent to Scuba: ``` { "int":{"time":1498528572}, "normal":{ "host":"devvm26497.prn1", "metrics_type":"hgerrors", "msg":"exception has occurred: ** unknown exception encountered, please report by visiting\n** Source Control @ FB group\n** Python 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]\n** Mercurial Distributed SCM (version 4.2.1+842-79c3f212a9c9)\n** Extensions loaded: tweakdefaults, hgk, absorb, arcdiff, automv, blackbox, chistedit, color, debugcommitmessage, debuginhibit, evolve, fbhistedit, githelp, hiddenerror, histedit, inhibit, journal, logginghelper, lz4revlog, morestatus, moreversion, myparent, pager, patchrmdir, perftweaks, phabdiff, phabstatus, phrevset, pullcreatemarkers, purge, rage, rebase, record, remotefilelog, remotenames, reset, sampling, fbshow, sigtrace, simplecache, smartlog, sshaskpass, strip, directaccess, uncommit, conflictinfo, extorder, obsshelve, sqldirstate, fastmanifest, hgsubversion, traceprof, dialect, grpcheck, errorredirect, fbamend, pushvars, pushrebase\n", "traceback":"Traceback (most recent call last):\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/dispatch.py\", line 326, in _callcatch\n return scmutil.callcatch(ui, func)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/scmutil.py\", line 145, in callcatch\n return func()\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/dispatch.py\", line 308, in _runcatchfunc\n return _dispatch(req)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/dispatch.py\", line 938, in _dispatch\n cmdpats, cmdoptions)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/fastmanifest\/cachemanager.py\", line 318, in runcommandtrigger\n result = orig(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/fastmanifest\/__init__.py\", line 175, in _logonexit\n r = orig(ui, repo, cmd, fullargs, *args)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext3rd\/perftweaks.py\", line 263, in _tracksparseprofiles\n res = runcommand(lui, repo, *args)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext3rd\/perftweaks.py\", line 248, in _trackdirstatesizes\n res = runcommand(lui, repo, *args)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext\/journal.py\", line 76, in runcommand\n return orig(lui, repo, cmd, fullargs, *args)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/dispatch.py\", line 674, in runcommand\n ret = _runcommand(ui, options, cmd, d)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext\/pager.py\", line 69, in pagecmd\n return orig(ui, options, cmd, cmdfunc)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/dispatch.py\", line 946, in _runcommand\n return cmdfunc()\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/dispatch.py\", line 935, in <lambda>\n d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext3rd\/absorb\/__init__.py\", line 977, in _amendcmd\n return orig(ui, repo, *pats, **opts)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext3rd\/tweakdefaults.py\", line 627, in cmd\n return origcmd(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext3rd\/tweakdefaults.py\", line 694, in amendcmd\n return orig(ui, repo, *pats, **opts)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/extensions.py\", line 273, in closure\n return func(*(args + a), **kw)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/usr\/lib64\/python2.7\/site-packages\/hgext\/automv.py\", line 63, in mvcheck\n return orig(ui, repo, *pats, **opts)\n File \"\/usr\/lib64\/python2.7\/site-packages\/mercurial\/util.py\", line 1056, in check\n return func(*args, **kwargs)\n File \"\/data\/users\/lsen\/facebook-hg-rpms\/fb-hgext\/hgext3rd\/fbamend\/__init__.py\", line 169, in amend\n raise Exception(\"testing\")\nException: testing\n", "type":"<type 'exceptions.Exception'>"} } ``` Reviewers: juehui, akushner, durham Reviewed By: durham Subscribers: medson, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D5326253 Tasks: 19602850 Signature: t1:5326253:1498577444:c62977ec782519a22b9dc64b33f2a575c544b83c |
||
---|---|---|
.. | ||
absorb | ||
fastannotate | ||
fbamend | ||
lfs | ||
p4fastimport | ||
__init__.py | ||
arcdiff.py | ||
backups.py | ||
bundle2hooks.py | ||
catnotate.py | ||
checkmessagehook.py | ||
chistedit.py | ||
cleanobsstore.py | ||
commitextras.py | ||
conflictinfo.py | ||
copytrace.py | ||
debugcommitmessage.py | ||
debuginhibit.py | ||
dialect.py | ||
directaccess.py | ||
dirsync.py | ||
edrecord.py | ||
errorredirect.py | ||
extorder.py | ||
extutil.py | ||
fastlog.py | ||
fastpartialmatch.py | ||
fbconduit.py | ||
fbhistedit.py | ||
fbshow.py | ||
fixcorrupt.py | ||
generic_bisect.py | ||
githelp.py | ||
gitlookup.py | ||
gitrevset.py | ||
grepdiff.py | ||
grpcheck.py | ||
hiddenerror.py | ||
inhibit.py | ||
inhibitwarn.py | ||
linkrevcache.py | ||
logginghelper.py | ||
mergedriver.py | ||
morecolors.py | ||
morestatus.py | ||
myparent.py | ||
nointerrupt.py | ||
obsshelve.py | ||
ownercheck.py | ||
patchpython.py | ||
patchrmdir.pyx | ||
perftweaks.py | ||
phabdiff.py | ||
phabstatus.py | ||
phrevset.py | ||
progressfile.py | ||
pullcreatemarkers.py | ||
pushrebase.py | ||
pushvars.py | ||
rage.py | ||
remoteid.py | ||
reset.py | ||
sampling.py | ||
sigtrace.py | ||
simplecache.py | ||
smartlog.py | ||
sparse.py | ||
sshaskpass.py | ||
traceprof.pyx | ||
traceprofimpl.cpp | ||
tweakdefaults.py | ||
uncommit.py | ||
undo.py | ||
upgradegeneraldelta.py | ||
whereami.py |