This is an archive of the discontinued Mercurial Phabricator instance.

tests: add more testing around server.uncompressed
ClosedPublic

Authored by indygreg on Jan 20 2018, 7:44 PM.

Details

Summary

We already have testing for server.uncompressed in test-http*.t.
However, it doesn't cover the new bundle2 use case. And, we don't
have comprehensive testing of advertised capabilities.

We add tests to test-clone-uncompressed.t that demonstrate
behavior for both legacy and bundle2 configurations.

If you look closely, the bundle2 capabilities are advertising
stream support when it isn't enabled. That's a bug.

In addition, while the client is smart enough to not request
a stream clone when the server doesn't have the feature enabled,
the getbundle wire protocol command is still sending stream
clone data. This doesn't match the behavior of the legacy
stream_out wire protocol command. That's also a bug. Tests
have been added.

While I was here, I also changed how the PID is recorded in
$DAEMON_PIDS. If we kill a process, the PID formerly in
$DAEMON_PIDS no longer exists. So we should replace that file
instead of appending to it.

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

indygreg created this revision.Jan 20 2018, 7:44 PM
lothiraldan accepted this revision.Jan 22 2018, 10:53 AM
indygreg updated this revision to Diff 4986.Jan 22 2018, 3:32 PM
durin42 accepted this revision.Jan 22 2018, 4:09 PM
This revision is now accepted and ready to land.Jan 22 2018, 4:09 PM
This revision was automatically updated to reflect the committed changes.