( )⚙ D3247 tests: load showstack in test-pull-http.t so network hangs are easier to find

This is an archive of the discontinued Mercurial Phabricator instance.

tests: load showstack in test-pull-http.t so network hangs are easier to find
ClosedPublic

Authored by durin42 on Apr 11 2018, 3:50 PM.

Details

Summary

This also gives us some minimal "it loads" coverage on showstack,
which I rather like. showstack doesn't work on Windows per mbarbison,
so it's disabled there.

I added this in service of debugging a hang introduced on Python 3 by
revision a88d68dc3ee8. I'm still not sure what the problem there is,
but this at least gives us a little bit of a chance to figure out
what's going on.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Apr 11 2018, 3:50 PM

It doesn't load on Windows:

$ ../hg id --config extensions.showstack=../contrib/showstack.py --config extensions.evolve=!
Traceback (most recent call last):
  File "e:\Projects\hg\mercurial\extensions.py", line 215, in _runextsetup
    extsetup(ui)
  File "../contrib/showstack.py", line 18, in extsetup
    signal.signal(signal.SIGQUIT, sigshow)
AttributeError: 'module' object has no attribute 'SIGQUIT'
*** failed to set up extension showstack: 'module' object has no attribute 'SIGQUIT'
durin42 edited the summary of this revision. (Show Details)Apr 12 2018, 11:03 AM
durin42 updated this revision to Diff 8053.

It doesn't load on Windows:

$ ../hg id --config extensions.showstack=../contrib/showstack.py --config extensions.evolve=!
Traceback (most recent call last):
  File "e:\Projects\hg\mercurial\extensions.py", line 215, in _runextsetup
    extsetup(ui)
  File "../contrib/showstack.py", line 18, in extsetup
    signal.signal(signal.SIGQUIT, sigshow)
AttributeError: 'module' object has no attribute 'SIGQUIT'
*** failed to set up extension showstack: 'module' object has no attribute 'SIGQUIT'

I should have known. Now guarded by a no-windows.

indygreg accepted this revision.Apr 12 2018, 11:15 AM
This revision is now accepted and ready to land.Apr 12 2018, 11:15 AM
This revision was automatically updated to reflect the committed changes.