This is an archive of the discontinued Mercurial Phabricator instance.

logtoprocess: add a test to show pager and ltp bad interaction
AbandonedPublic

Authored by lothiraldan on Dec 15 2017, 5:15 AM.

Details

Reviewers
yuja
Group Reviewers
hg-reviewers
Summary

The next changeset will fix the bad interaction between the pager and log-to-
process. Add a test first to make the next changeset easier to understand.

XXX-REVIEW: I tried making the test file compatible with chg but it seems
flaky. The output is different when running only this test without parallelism
(rt test-logtoprocess.t) vs running all tests with parallelism (rt -j 4).
Could someone with more chg experience gives me a hand stabilizing this
test file?

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

lothiraldan created this revision.Dec 15 2017, 5:15 AM
yuja requested changes to this revision.Dec 15 2017, 9:05 AM
yuja added a subscriber: yuja.

XXX-REVIEW: I tried making the test file compatible with chg but it seems
flaky. The output is different when running only this test without parallelism
(rt test-logtoprocess.t) vs running all tests with parallelism (rt -j 4).

Can you at least disable the broken tests on chg?

tests/test-logtoprocess.t
50

IIUC, here command.log might not be written yet because the
logging process runs asynchronously.

This revision now requires changes to proceed.Dec 15 2017, 9:05 AM

I've finally reworked this patch and sends it as an independent series here: https://phab.mercurial-scm.org/D4815

The test seems stable locally and on gcc112, with and without chg and with and without parallelization

lothiraldan abandoned this revision.Oct 1 2018, 6:20 AM