Summary: This appears to have broken all the tests on Linux.
Reviewed By: zhengchaol
Differential Revision: D31505082
fbshipit-source-id: 610eb941d0f0eb536a4688ac2637a8466be0b05c
Summary:
xterm-color terminals don't support hiding the cursor the way curses likes to.
this crashes eden top for users.
eden top mostly functions fine otherwise in xterm-color, so let's make
this a non fatal error.
Note: the highlighting behavior is a little wierd (the styling after the
highlighted column does not work, no bolding etc). This looks like a wierd
curses bug on these terminals, so not sure if we can really fix this. I figure
a little wierd styling is still better than a crash.
Reviewed By: fanzeyi
Differential Revision: D31480121
fbshipit-source-id: 581ef7c548fd1f7986c4f93d8b797d7f7588c351
Summary: This will let us identify clients in scuba logs. This will be useful to identify whether a client has some specific feature enabled. We can use this instead of dedicated boolean columns like is_eden, or is_using_feature_X.
Reviewed By: krallin
Differential Revision: D31501373
fbshipit-source-id: 0e63b73659fd145f01098d60ced510e464730982
Summary:
The hg client provides a header which contains `ClientInfo` data. This
includes the sandcastle alias and nonce.
Update Mononoke to parse this header and then log the sandcastle alias and
nonce to scuba.
Reviewed By: krallin
Differential Revision: D31208450
fbshipit-source-id: f0971b668887de47fbab29b7ce9b0173cbdeafe4
Summary:
The `Metadata::new` function has grown quite a few optional arguments
which can make it difficult to read.
Simplify the `new` method and add new methods to record optional information
(such as encoded CATs).
Reviewed By: krallin
Differential Revision: D31500788
fbshipit-source-id: 9675c39f3061fef614e792e6ab6e365e9b423b2a
Summary:
The hg client provides extra info in a header that now includes the
sandcastle alias and nonce.
Update the LFS server to parse the header and log the sandcastle alias and
nonce to scuba.
Reviewed By: krallin
Differential Revision: D31208449
fbshipit-source-id: 773f0ec22060203c2c74a20090bd4893885506f8
Summary:
The hg client uses a version of reqwest that relies on tokio-0.2. In
the next diff I will add `clientinfo` as a dependency of Mononoke LFS server,
which also pulls in `configparser`. However, Mononoke LFS server uses
tokio-1.0.
Update the reqwest dependency to be the latest version.
Reviewed By: quark-zju
Differential Revision: D31389559
fbshipit-source-id: acf4c3b5c9df2a8bc8cfa134a2d314fbb96c3354
Summary: If regular traffic goes through the agent, debug traffic should as well.
Differential Revision: D31500581
fbshipit-source-id: 32abef4e082dbf120c9aa104206b460e12ed506f
Summary: this should enable everything using rust's http client to go over x2pagentd. The biggest user is edenapi. Should work on all platforms (including Windows!).
Reviewed By: ahornby
Differential Revision: D31430275
fbshipit-source-id: f90a633eb3cc4e82447b1b76200499016dcb6b8e
Summary: I just landed D30899990. I'm landing this to sync the config, still without using it.
Differential Revision: D31472892
fbshipit-source-id: 5e18c4c3529118ef81880c886f0d8b9428efcbf4
Summary: `eden-config.h` was not included previously and caused the preprocessor macro to always use the default value false path.
Reviewed By: chadaustin
Differential Revision: D31462811
fbshipit-source-id: ade236ce1f5b2b6511163515ced79890855190f2
Summary:
On Windows, edenfsctl.real is a par file that Windows can't execute directly.
Thus let's have Python run it.
Reviewed By: fanzeyi
Differential Revision: D31477721
fbshipit-source-id: d5a699ceb3d3b1b3d5778ef5720bca7c299bed80
Summary:
These tests have been failing for a long time due to the expected output on
Windows containing \ but the test using the / separator.
Let's simply use os.path.join to build a path with the right separator in these
tests.
Reviewed By: fanzeyi
Differential Revision: D31477722
fbshipit-source-id: a4ac25750647229974e23e305508e83917011fef
Summary:
Current `test_mock` creates logger with default_drain and output isn't printed in unit-tests. There is a method `logger_that_can_work_in_tests()` which overcome it, let's use it for constructing test CoreContext.
While testing I've also spotted some leftover from migration to new BonsaiDerivable. Lets fix it too
Reviewed By: krallin
Differential Revision: D31430162
fbshipit-source-id: a086be521f0ceaeb3267e87f24980fb11587a6e7