This is an archive of the discontinued Mercurial Phabricator instance.

test-pager: make the test compatible with chg
ClosedPublic

Authored by singhsrb on Oct 16 2017, 8:42 PM.

Details

Summary

D911 tried to make this test compatible with chg but instead resulted
in the test being flaky for chg. For now, disabling this test for chg because
it seems difficult to fix the test. This will allow for the continuous build
setup for chg.

Test Plan

Ran the test 'test-pager.t' with and without the '--chg' option.

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

singhsrb created this revision.Oct 16 2017, 8:42 PM
quark accepted this revision.Oct 16 2017, 9:29 PM
quark added a subscriber: quark.

This was suggested by me. Basically there are too many "racy" cases that errors can happen everywhere, ex. chg cannot send fds, etc. And the "killed!" output is also racy that it may appear before or after a chg error message.

Instead of trying to match all possible outputs, it is cleaner to just remove the test until we implement something similar to core hg to not execute the shell.

It's probably worth pointing out that the "killed!" message is racy on solaris, which probably means it's just straight-up racy and Linux/FreeBSD/OS X aren't annoying enough to trigger the race on a regular basis....

durin42 accepted this revision.Oct 16 2017, 9:33 PM
This revision is now accepted and ready to land.Oct 16 2017, 9:33 PM
This revision was automatically updated to reflect the committed changes.