Commit Graph

61256 Commits

Author SHA1 Message Date
Jan Mazur
d7cf79cf5a print regex when rejecting a file
Summary: It will be much more convenient for end user to know why certain limit is enforced.

Reviewed By: krallin

Differential Revision: D24364473

fbshipit-source-id: ad86384f7f7a246bc3735028339cfd54a1d0254a
2020-10-19 03:27:50 -07:00
svcscm
cf9e791f35 Updating submodules
Summary:
GitHub commits:

b8f4647698
4ecb20335a
a3e4bbad46

Reviewed By: wittgenst

fbshipit-source-id: b59507d27a0e1646b76982c21519195802a8bd33
2020-10-19 01:56:02 -07:00
Jan Mazur
805523a1f9 adjust integration tests because of changed IpAddr Debug trait
Summary:
I think that this: 6293dca1e8
"broke" (in a sense that they need to be adjusted - run with --interactive) some of our integration tests.
In fbcode seem like it was D24363513.
This commit deleted derived Debug trait of enum IpAddr in favor of implementing it with already existing fmt::Display.
I think this change landed with rust 1.7.0 which hit fbcode recently.

Reviewed By: StanislavGlebik

Differential Revision: D24382155

fbshipit-source-id: bce5998015bfdd7c0b01a5c6ee5a661f9f00df5a
2020-10-19 01:30:28 -07:00
svcscm
2d83de6547 Updating submodules
Summary:
GitHub commits:

e184b41448

Reviewed By: wittgenst

fbshipit-source-id: fdb0f29ae610c4177cf6d52995cfced811406405
2020-10-19 01:23:57 -07:00
svcscm
52a2b093ae Updating submodules
Summary:
GitHub commits:

8f478394ca
95e749f361
08a5b3075f
89bf46418f
04964e202c

Reviewed By: wittgenst

fbshipit-source-id: bbbe47ec55361a548f1072ea832ab66929294ce2
2020-10-18 14:26:22 -07:00
svcscm
8274b68ea7 Updating submodules
Summary:
GitHub commits:

33f9f7bebb
19facb06ab
1a01e6fadb
b992f2bf0a
8b46ce7e56
dfe54a50a1
721acd8ba8
71019f88fd

Reviewed By: wittgenst

fbshipit-source-id: e048fbee7901cdfbb5073fd826c92f1fccc9c781
2020-10-17 14:16:46 -07:00
svcscm
a338060279 Updating submodules
Summary:
GitHub commits:

8ff312b604
19bef61c09

Reviewed By: wittgenst

fbshipit-source-id: 2b25ec1a193404fa06aee1471ef26c1d95c56850
2020-10-17 14:16:46 -07:00
svcscm
ab88396f47 Updating submodules
Summary:
GitHub commits:

c23c2a5c49

Reviewed By: wittgenst

fbshipit-source-id: d9d7af3bbe87c881927c6bf2bcde4098a904530d
2020-10-16 23:05:20 -07:00
Chad Austin
bef06ca978 don't load hidden config files
Summary:
Chef writes root-owned temporary files in /etc/eden/config.d. If
edenfsctl attempts to read those configs at this time, it will
fail. Just skip all hidden files.

Reviewed By: kmancini

Differential Revision: D24377953

fbshipit-source-id: 765b7f096b62e6749e186adc3e90bbc7814079c8
2020-10-16 20:50:32 -07:00
Chad Austin
83dbe9d985 compute deterministic paths in debugInodeStatus
Summary:
InodeBase::getPath is not deterministic under concurrent
renames. Instead, thread the paths down through the recursion so
they're consistent.

Reviewed By: genevievehelsel

Differential Revision: D24297724

fbshipit-source-id: 3e8664ce2bc5159e464d1d76ed37294c4eac1709
2020-10-16 19:13:19 -07:00
Jun Wu
6dac514fae continue: pass --noninteractive to continued command
Summary: This preserves the `--noninteractive` flag used by some tools.

Reviewed By: DurhamG

Differential Revision: D24040789

fbshipit-source-id: 8d50f3f3ce6b2015f0ef6c3bd1b4fbb874d0ea7d
2020-10-16 18:40:51 -07:00
Jun Wu
b36584e704 configparser: set ui.merge:interactive from ui.merge in user config
Summary:
This restores the compatibility of setting up merge tools using the `ui.merge`
config while still limiting the default `editmerge` tool to interactive
sessions.

Reviewed By: sfilipco

Differential Revision: D24377259

fbshipit-source-id: 3d2befba412b824fc985ddffa131e339644178c2
2020-10-16 18:33:06 -07:00
Jun Wu
122108e46e configparser: move load_user to a testable method
Summary: Make it testable by allowing specifying paths to load as user hgrc.

Reviewed By: sfilipco

Differential Revision: D24377258

fbshipit-source-id: 969028df64d55ad1f1304e35675d84595ed6a2bf
2020-10-16 18:33:06 -07:00
svcscm
2209ea6577 Updating submodules
Summary:
GitHub commits:

85b6dd5f1b
b07f38e007

Reviewed By: wittgenst

fbshipit-source-id: 4b9297f763f1def850ac70231d05fca99f415b4b
2020-10-16 18:33:06 -07:00
svcscm
8f691b16e6 Updating submodules
Summary:
GitHub commits:

d32a42b556
f4ebca8929
c3c46dbf5e
3f6324dee4
ef93c52756
a32fc1f993
936492bcf0
8c6c3b6460
f628cd1035
05f94de511
b656b5499b
9c43bff299
e1db75c548
fd152b4878

Reviewed By: wittgenst

fbshipit-source-id: c0cf72d2d4a29576741edce5617ac065d02b5d93
2020-10-16 13:15:02 -07:00
Lukas Piatkowski
1b5293d584 mononoke/integration: create a Makefile to run tests as part of getdeps.py build (#67)
Summary:
Pull Request resolved: https://github.com/facebookexperimental/eden/pull/67

With this change it will be possible to build dependencies of and run integration tests using getdeps.py.

This is the first goal of Q4 as per https://fb.quip.com/v8YzAYNSYgot: "Get Open Source version of integration tests running on Legocastle".

Before this diff:
The OSS integration tests run now on GitHub by:
- Building some test dependencies with getdeps.py
- Building some test dependencies with homebrew/apt-get
- Running tests via python script

The OSS integration tests were not running on Sandcastle.

After this diff:
The OSS integration tests run on Github by:
- Building and executing tests via getdeps.py (execution of tests happens by getdeps.py calling Make calling python script)

The OSS integration tests run on Sandcastle using the same getdeps.py setup as Github.

Reviewed By: krallin

Differential Revision: D24253268

fbshipit-source-id: cae249b72d076222673b8bbe4ec21866dcdbb253
2020-10-16 12:23:33 -07:00
Arun Kulshreshtha
d16a62ce06 edenapi: send user agent string
Summary:
Include a `User-Agent` header in EdenAPI requests from Mercurial. This will allow us to see the version in Scuba, and in the future, will allow us to distinguish between requests send by Mercurial and those sent directly by EdenFS.

Keeping with the current output of `hg version`, the application is specified as "EdenSCM" rather than "Mercurial".

Reviewed By: singhsrb

Differential Revision: D24347021

fbshipit-source-id: e323cfc945c9d95d8b2a0490e22c2b2505a620dc
2020-10-16 11:05:24 -07:00
svcscm
b06145e033 Updating submodules
Summary:
GitHub commits:

6c45ed2cf0

Reviewed By: wittgenst

fbshipit-source-id: 6051565e3cc5cfda5a801f546aad4a4d3b929cde
2020-10-16 11:02:17 -07:00
Stanislau Hlebik
76ae65bd46 mononoke: add subcommand to prepare pushredirection rollout
Reviewed By: krallin

Differential Revision: D24282770

fbshipit-source-id: dd8a6951048f238bb4b24cec4f669a1a58a7adee
2020-10-16 10:49:19 -07:00
Kostia Balytskyi
0ae6fcbddb cross_repo_sync: tweak validation logging
Summary: Log more stuff at `debug!`.

Reviewed By: StanislavGlebik

Differential Revision: D24361631

fbshipit-source-id: fb4d46eac11ef70a9a1ee8645ed0efcc4035b594
2020-10-16 10:45:45 -07:00
generatedunixname89002005325677
3bd11a5817 Daily arc lint --take RUSTFMT
Reviewed By: zertosh

Differential Revision: D24357892

fbshipit-source-id: dec7969a8bb9302689e4a10656a60e1a38daef80
2020-10-16 10:41:29 -07:00
svcscm
37ce4f4bec Updating submodules
Summary:
GitHub commits:

288031fefa
cb9a3237b0
7cc4023712

Reviewed By: wittgenst

fbshipit-source-id: 412b1f32af41d75f4c153cf6e6522f166c61cea3
2020-10-16 10:25:47 -07:00
Simon Farnsworth
3c7ce4eed1 hg histedit: document autoverb badly
Summary: This was competely undocumented, and thus undiscoverable. Add some documentation, so that it's at least clear the feature exists

Reviewed By: singhsrb

Differential Revision: D24332961

fbshipit-source-id: 9e73163a9314ceb7f953a3b1ac0f58c9a6e6d4d9
2020-10-16 09:30:28 -07:00
Thomas Orozco
ada1d7e7a9 mononoke/{multiplexedblob,logblob}: capture operation perf counters
Summary:
This updates multiplexedblob and logblob to capture perf counters for the
operations we run, and log them to Scuba. Along with the previous diffs in this
stack, this gives us the number of Manifold retries, total delay, and conflicts
all logged to blobstore trace on a per-operation basis.

Reviewed By: HarveyHunt

Differential Revision: D24333039

fbshipit-source-id: 9c7d0a467f8df08dcb2a0d3bb6b543cdb3ea1d90
2020-10-16 08:57:13 -07:00
Thomas Orozco
63158883e3 mononoke/manifoldblob: log retries, delay and conflicts to perf counters
Summary:
This updates ManifoldBlob to log the aformentioned data points to perf
counters. There's a bit of refactoring that also had to go into this to make
`ctx` available everywhere it's needed.

Reviewed By: aslpavel

Differential Revision: D24333040

fbshipit-source-id: 1b63bcd1e1ee36bae4dbbc1da053c7f1bdf96675
2020-10-16 08:57:13 -07:00
Thomas Orozco
80bb3074bc mononoke/context: allow forking perf counters
Summary:
This adds support for "forking" perf counters at a point in the stack, giving
you a CoreContext that logs to one or more sets of perf counters.

This is useful for low level operations where we want to collect granular more
logging data — in particular blobstore operations, where we'd like to collect
the time spent waiting for Manifold retries or the number of Manifold retries
in blobstore trace for each individual blobstore operation (we can't do that
using the `CoreContext` we have because that would be missing

The implementation supports a list of reference counted perf counters in the
CoreContext. When you want to add a new counter, we replace the list with a new
one, and give you a reference to the one you just added. When you write, we
write to all perf counters, and when you read, we read from the "top" perf
counter (which is always there). To read from one of the forked counters, you
use the reference you got whne you created it.

Reviewed By: aslpavel

Differential Revision: D24333041

fbshipit-source-id: ce318dfc04a1ea435b2454b53df4cae93d57c0a5
2020-10-16 08:57:13 -07:00
svcscm
d4742ee98b Updating submodules
Summary:
GitHub commits:

62c2caaed1
16458d9954
fdf917e56b
e886f49099

Reviewed By: wittgenst

fbshipit-source-id: 83956742485f4be11fe02c08c1d7b752e307859e
2020-10-16 08:52:19 -07:00
Stanislau Hlebik
4931e6654b mononoke: add a tool that backfills noop mapping
Summary:
The x-repo usually have "noop" mapping i.e. mapping that doesn't change the
paths (it might have arbitrary name though)

It's useful for commits that are identical between small and large repo to be
able to backfill this mapping. This diff adds a command to do that.

Reviewed By: krallin

Differential Revision: D24337281

fbshipit-source-id: 89a058f95677e4a5c8686122a317eadf8b1bb995
2020-10-16 08:47:04 -07:00
Stanislau Hlebik
4e0280a42e mononoke: refactor waiting for replication from run_mark_not_synced
Summary: It will be used in the next diff, so let's move it to a separate function.

Reviewed By: krallin

Differential Revision: D24334717

fbshipit-source-id: e50d13d45c633397504cf08954f2ced9ace8f570
2020-10-16 08:47:04 -07:00
Stanislau Hlebik
051d0d1ef4 mononoke: add a tunable to disable pushredirected hooks
Reviewed By: ikostia

Differential Revision: D24360325

fbshipit-source-id: b1b5e062c2d9b7af867bf9258d7a2b78d2f26629
2020-10-16 08:24:56 -07:00
svcscm
a3edfb7951 Updating submodules
Summary:
GitHub commits:

10cb84a52c
b26907eac5
328b530fb9

Reviewed By: wittgenst

fbshipit-source-id: da0936b636033b30e9451052ed532d170d0094ba
2020-10-16 08:13:19 -07:00
Pavel Aslanov
4190463c33 convert derived data utils to new futures
Summary: Convert derived data utils to use new style futures

Reviewed By: StanislavGlebik

Differential Revision: D24331068

fbshipit-source-id: ad658b278802afa1e4ecd44c5a24164135748790
2020-10-16 07:46:07 -07:00
Jan Mazur
274d46b7a0 change limit_filesize hook to operate fully on regexes and per-regex limits
Summary: See summary in D24161361

Reviewed By: krallin

Differential Revision: D24190905

fbshipit-source-id: 75311425ba4296925d761f89a2d24cbbb5bebd03
2020-10-16 07:34:43 -07:00
Thomas Orozco
a4dd2d43ed mononoke/filestore: add missing error cause
Summary:
This is needed to be able to use `has_redaction_root_cause()` with a metadata
rebuilding error.

Reviewed By: StanislavGlebik

Differential Revision: D24360816

fbshipit-source-id: 388df8cedb769ff001bfe4ff9cd5063ccd9de9f1
2020-10-16 07:04:12 -07:00
svcscm
8b49e36aff Updating submodules
Summary:
GitHub commits:

a479c0048f
83b2640468

Reviewed By: wittgenst

fbshipit-source-id: 2d8f6783505b090b6f247945dfae7e00c8f50859
2020-10-16 07:04:12 -07:00
svcscm
57c6f93501 Updating submodules
Summary:
GitHub commits:

53947e0495

Reviewed By: wittgenst

fbshipit-source-id: 0e66014dd6cfd56d2614e2245854dd3789a89380
2020-10-16 06:10:52 -07:00
Kostia Balytskyi
a4f69ed7da commit_rewriting: allow non-prefix free maps in metaconfig
Summary:
This is in line with other changes we're making to map logic now. Note that
apart from checking in-repo prefix-free-ness of the map, this also checked the
same across many small repos. It probably does not make sense to do that either
now that we allow non-prefix free maps within a repo.

Reviewed By: StanislavGlebik

Differential Revision: D24348161

fbshipit-source-id: caaa22953c8a15a08607157b99c9f0fd0edf633f
2020-10-16 05:16:58 -07:00
Kostia Balytskyi
7af104b330 hooks: bypass more hooks for push-redirected pushes
Summary:
Until we have the same standards for the native and push-redirected pushes,
these need to be automatically bypassed.

Reviewed By: krallin

Differential Revision: D24357372

fbshipit-source-id: f85459145f6a5217c07445d7017f3b11ed1284a7
2020-10-16 04:25:56 -07:00
svcscm
1e9fd313ad Updating submodules
Summary:
GitHub commits:

ce2dd7cc08
b48af58bcc

Reviewed By: wittgenst

fbshipit-source-id: 2c57c3186d92733ecafd1c579d7aa5327eb16294
2020-10-16 02:51:10 -07:00
Stanislau Hlebik
9810413295 mononoke: use sync_commit_and_ancestors in mononoke_x_repo_sync_job once
Summary:
Except for the tail mode of x_repo_sync_job which we use normally there's also
"once" mode which means "sync a single commit". Previously it did just that -
synced a single commit and failed if parents of this commit weren't synced.

However this is very unpleasant to use - instead let's change the semantics to
sync the commit and all of its ancestors.

also I made target_bookmark an optional parameter - sometimes we just want to sync a commit without any bookmarks at all.

Reviewed By: mitrandir77

Differential Revision: D24135771

fbshipit-source-id: 341c1808a44c58f89536b8c07394b77d8ced3f37
2020-10-16 02:37:45 -07:00
David Tolnay
0fe0538058 Clean up warning on stabilized str_strip, inner_deref features
Summary: These were stabilized in 1.45.0 and 1.47.0 respectively.

Reviewed By: StanislavGlebik

Differential Revision: D24353680

fbshipit-source-id: f2afe906e5260b1b360455acc20d9a806c988c9c
2020-10-16 00:08:15 -07:00
svcscm
4be722c828 Updating submodules
Summary:
GitHub commits:

32b8532ec6
d032c57bc6
88c56998ee

Reviewed By: wittgenst

fbshipit-source-id: 4ca55c2d212d8ad87e2c33b9740b8878fc3b083c
2020-10-16 00:00:33 -07:00
Xavier Deguillard
9db1fcdee8 inodes: do not ignore errors when computing sha1
Summary:
On Windows, computing the sha1 of a materialized file requires opening up the
file in the working copy, as the file is cached there. Interestingly, this
potentially means that for computing the sha1 of a file, EdenFS may receive a
callback from ProjectedFS about that file or a parent directory. At this point,
EdenFS just refuses to serve this callback, as doing so may trigger an infinite
loop, or simply deadlocks. While this may sound weird, recursive callbacks are
not expected, as this signify that EdenFS view of the working copy doesn't
match what it actually is.

To close the loop, and from a code perspective, this means that computing the
sha1 of a file can fail and can throw an exception. Unfortunately, the code
didn't reflect this fact and exceptions were simply ignored, when that happens
during a checkout operation, this can leave the working copy in a weird state,
further agravating the mismatch between EdenFS view of the working copy, and
what it actually is.

Reviewed By: wez

Differential Revision: D24282048

fbshipit-source-id: 745af03189fe345150f0b1792ee1b37a1b8fb0d4
2020-10-15 23:57:11 -07:00
svcscm
5509694e6a Updating submodules
Summary:
GitHub commits:

0deef031cb

Reviewed By: wittgenst

fbshipit-source-id: 73e58909b6794a0016b1c273db0cfce15f7615ae
2020-10-15 23:14:10 -07:00
Jun Wu
7b132fb6e2 smartlog: stop filtering commits by date
Summary:
The hide-before config was added to encourage people to actively hide unused
drafts for repo performance, instead of keeping unused draft forever, since a
lot of code paths assume `len(draft)` is small. See D13993584 (28b4dfbb38) for more context.

Now our hide-before data is set to 2.5 years ago (2018-2-25), this change
probably only affects a very small number of users.

Reviewed By: DurhamG

Differential Revision: D24298198

fbshipit-source-id: 938aca1222b55e09fdb058ff01bc063733f201dc
2020-10-15 22:48:41 -07:00
Jun Wu
e39f3bc233 revisionstore: add mutex for tests related to env vars
Summary:
Rust tests run in multiple threads. Setting environment variables affects other
tests running in other threads and causes random test failures.
Protect env vars using a lock.

Reviewed By: DurhamG

Differential Revision: D24296639

fbshipit-source-id: db0bee85625a7b63e07b95ea76d96029487881d4
2020-10-15 22:48:41 -07:00
Jun Wu
263d1c5a7f hg: reduce flakiness of cargo tests
Summary:
The shell-script cargo tests seem very flaky. Use a dedicated Python script to
run the tests, with a more concise output that only includes failures, and run
tests in parallel.

Reviewed By: DurhamG

Differential Revision: D24296433

fbshipit-source-id: 1d63146c6c84f1035dded24fcd3d79f116c2e740
2020-10-15 22:48:41 -07:00
Durham Goode
174f05f3fb convert: disable p4 tests on Python 3
Summary:
Ideally we'd just delete the p4 convert functionality, but I'm too lazy
to go through and extract it right now.

This was recently enabled when I enabled all the convert tests.  We don't use the p4 logic, so it's safe to just turn back off to get a release out.

Reviewed By: quark-zju

Differential Revision: D24352068

fbshipit-source-id: 6f3a1f88739b2e2348aff00e8cae333473bbe71a
2020-10-15 22:23:24 -07:00
Durham Goode
335988858e ui: fix prompt on Windows
Summary: My recent change accidentally returned early when reading the prompt input, which skipped the \r truncation needed for Windows.

Reviewed By: sfilipco

Differential Revision: D24350672

fbshipit-source-id: 4a589d76bf41cda7fda2518003ef272f9a6ead48
2020-10-15 22:19:38 -07:00
svcscm
13e651a20f Updating submodules
Summary:
GitHub commits:

f20d61e119
b007fb234b

Reviewed By: wittgenst

fbshipit-source-id: ca0396aa64d9f005899cc7f20d39e876178c9b2f
2020-10-15 22:19:38 -07:00