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 Nov 15 2017, 10:44 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.Nov 15 2017, 10:44 AM
durin42 added a subscriber: quark.Nov 17 2017, 5:25 PM
durin42 added a subscriber: durin42.

Jun, any idea why this might be chg-broken?

Could someone with chg experience give me a hand or a pointer why this test might be flaky with chg?

lothiraldan updated this revision to Diff 3916.Nov 28 2017, 3:36 PM
yuja requested changes to this revision.Nov 29 2017, 8:02 AM
yuja added a subscriber: yuja.
yuja added inline comments.
tests/test-logtoprocess.t
33

This file may be overwritten asynchronously by more than one
logging processes. That's probably why the test result is unstable
especially with chg.

This revision now requires changes to proceed.Nov 29 2017, 8:02 AM
lothiraldan added inline comments.Dec 15 2017, 6:01 AM
tests/test-logtoprocess.t
33

I tried making the file path unique for each call (by adding \$(date +%s)) but it doesn't seems to change anything in the stability unfortunately :(

yuja added inline comments.Dec 15 2017, 7:51 AM
tests/test-logtoprocess.t
33

Can't we just append to the log file and sort the content?