Commit Graph

9 Commits

Author SHA1 Message Date
Stanislau Hlebik
7e540c6dbc mononoke: use tcp instead of unix socket for hgcli
Summary: This allows us to put hgcli on the different host

Reviewed By: jsgf

Differential Revision: D7910980

fbshipit-source-id: 45bdd1ee42b54f8f1a425ed6950e785cdf85bfc3
2018-05-10 02:02:40 -07:00
Stanislau Hlebik
a4e7962ffc mononoke: add a separate connection acceptor thread
Summary:
Curently hgcli can connect to Mononoke only if they are on the same host,
because unix domain socket are used. Also Mononoke has to use separate unix
domain socket for different repos.
The goal of this stack of diffs is to remove these limitations:
1 Make it possible to have hgcli and Mononoke server on different hosts
2 Make it possible to use one port/unix domain socket to connect to many repos.

This diff adds a separate thread that parses the Preamble, extracts the
reponame and sends request to a thread responsible for this repo.

Also hgcli now has a new cmd line option that specifies path to connect to.

Reviewed By: jsgf

Differential Revision: D7845156

fbshipit-source-id: a48bcfeec4755b2d5b3dfcf8e0383e6945178018
2018-05-10 02:02:38 -07:00
Stanislau Hlebik
5895217459 mononoke: send Preamble as the first message
Summary:
Curently hgcli can connect to Mononoke only if they are on the same host, because unix domain socket are used. Also Mononoke has to use separate unix domain socket for different repos.
The goal of this stack of diffs is to remove these limitations:
1 Make it possible to have hgcli and Mononoke server on different hosts
2 Make it possible to use one port/unix domain socket to connect to many repos.

In this diff let's start sending Preamble as the first message from hgcli to Mononoke server.
For now Mononoke server will just ignore it. Later we'll use it to connect to the correct repo.

Reviewed By: jsgf

Differential Revision: D7845159

fbshipit-source-id: 3d2232028d931bfa7309e826b38084a87be1f85c
2018-05-03 03:30:47 -07:00
Siddharth Agarwal
64e5182680 fix test-init.t
Summary:
The test wasn't waiting for the Mononoke server to be available. Also
improve the error message slightly.

Reviewed By: jsgf

Differential Revision: D6606102

fbshipit-source-id: d0fde39aef8b3423fd1a8996a01f12e8a9661597
2018-01-01 17:52:36 -08:00
Jeremy Fitzhardinge
771841cc96 mononoke: convert hgcli to failure
Summary: hgcli got overlooked on the first pass

Reviewed By: kulshrax

Differential Revision: D6507716

fbshipit-source-id: 7750000d9f11d4616185eccdaaf978b629ce1733
2017-12-07 14:10:17 -08:00
Lukas Piatkowski
c3a75813cf hgcli: add a bash script for using mononoke deployed inside tupperware
Summary: Enables Mononoke developers to use Mononoke tupperware deployment to pull/push/clone

Reviewed By: farnz

Differential Revision: D6077834

fbshipit-source-id: 812e0653f9ee05b186c1e310281597ce98745702
2017-10-18 05:37:00 -07:00
Kalana Gamlath
5a754de647 Remove uses of deprecated Tokio APIs from fbcode/scm/mononoke/hgcli
Summary: Updated hgcli to use futures-ext

Reviewed By: sid0

Differential Revision: D6026532

fbshipit-source-id: 8b78bece6fc263d6280b79f7c79b33f0d4c8342d
2017-10-12 10:13:14 -07:00
Siddharth Agarwal
db28a15305 add deny(warnings)/allow(deprecated) to a few crates
Summary:
Realized that we were missing a few crates from the Tokio cleanup because those crates
didn't have `#![deny(warnings)]`.

This also caused a bunch of files to be rustfmted, which is fine.

Reviewed By: kulshrax

Differential Revision: D6024628

fbshipit-source-id: 55032d20f3676c92ef124d861e1edcd34126ab55
2017-10-10 15:23:25 -07:00
facebook-github-bot
2b6af6b941 Initial commit
fbshipit-source-id: f75baa4ff6aa71973f677b752d7aba582cf4927f
2017-07-27 18:00:19 -07:00