1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

17 Commits

Author SHA1 Message Date
Alex Hornby
18fefedec8 speed up file copy on windows
Summary:
X-link: https://github.com/facebookincubator/fizz/pull/155

X-link: https://github.com/facebookincubator/zstrong/pull/1085

getdeps windows file copy is very slow, speed it up

Reviewed By: bigfootjon

Differential Revision: D66830544

fbshipit-source-id: 43213e258c71ae706bb059600619e276e7491a90
2024-12-06 01:30:06 -08:00
Conner Nilsen
cf2e8bc5d4 Pyre Configurationless migration for] [batch:88/244] (#723)
Summary: Pull Request resolved: https://github.com/facebookincubator/zstrong/pull/723

Reviewed By: grievejia

Differential Revision: D54471437

fbshipit-source-id: bc644553e31464ceb632034e4ce3f05ba30fbbcd
2024-03-04 18:15:44 -08:00
Genevieve (Genna) Helsel
52139683b6 remove --silent from edenfsctl prefetch call in copytree.py
Summary:
X-link: https://github.com/facebookincubator/velox/pull/7073

`--silent` is the default mode for `edenfsctl prefetch` and the flag is deprecated. Removing this flag is a no-op

Reviewed By: xavierd

Differential Revision: D50287572

fbshipit-source-id: 76f1eaa6ce3b3c7efb58882449fd67787787b4d1
2023-10-24 14:59:38 -07:00
Pyre Bot Jr
98d4f8ad5b upgrade pyre version in fbcode/opensource - batch 1
Differential Revision: D38448541

fbshipit-source-id: 6ecf6ec7dc7f9acd35d7c3357b1982e2f44cd8d1
2022-08-05 08:16:25 -07:00
Katie Mancini
e35a78c764 skip realpathing for prefetch on windows
Summary:
Relative paths can not be calculated between drives, so we should not realpath
here because we don't realpath elsewhere.

Reviewed By: MichaelCuevas

Differential Revision: D38378132

fbshipit-source-id: a20d5c5273a2d09166792fbb9862f67d8040fdd3
2022-08-03 13:23:32 -07:00
Pyre Bot Jr
16223a1817 suppress errors in fbcode/opensource - batch 1
Differential Revision: D36119836

fbshipit-source-id: 3328102e950e87e1058c60e5f06a8f0bbdb6d331
2022-05-03 23:49:56 -07:00
Pyre Bot Jr
e77a9fe43a Add annotations to opensource/fbcode_builder
Reviewed By: shannonzhu

Differential Revision: D34224272

fbshipit-source-id: 52e19886ab3d4fb015a557244660dd4357a35c17
2022-02-14 16:22:09 -08:00
Chad Austin
e608ae1d10 prefetch projects in the background
Summary:
There's no reason to block a getdeps build on prefetching its sources,
so issue all prefetches in the background.

Reviewed By: genevievehelsel

Differential Revision: D33855396

fbshipit-source-id: 1ba01b0587e9bc0e74e6bba5b8571af76bf2516d
2022-02-03 11:45:59 -08:00
Chad Austin
4fb4756ec9 remove legacy __future__ imports
Summary: The future is now.

Reviewed By: xavierd

Differential Revision: D33714537

fbshipit-source-id: 8d282bbe7391c4b72b70dab54a5c252060fba457
2022-01-24 20:23:34 -08:00
Andres Suarez
b5f1afe216 Update copyright headers from Facebook to Meta
Reviewed By: bhamodi

Differential Revision: D33330724

fbshipit-source-id: 8a798435742dedc96e2b6912179736b6a1c72491
2021-12-27 14:41:24 -08:00
Chad Austin
bb1f43f913 convert a path to valid glob syntax when prefetching
Summary:
Paths are not necessarily legal glob syntax. In particular, backslash
is used for escaping. This caused problems on Windows, where we tried
to pass a backslash-delimited path into `eden prefetch --no-prefetch`.

Reviewed By: xavierd

Differential Revision: D25072784

fbshipit-source-id: 9ce8e5ccc8f28581512c39d04922889da0bc1bf6
2020-11-18 17:32:16 -08:00
John Reese
b0335039ca apply black 20.8b1 formatting update
Summary:
allow-large-files

black_any_style

Reviewed By: zertosh

Differential Revision: D24325133

fbshipit-source-id: b4afe80d1e8b2bc993f4b8e3822c02964df47462
2020-10-14 20:21:40 -07:00
Wez Furlong
955e1bf5d0 getdeps: use eden prefetch on windows
Summary:
Now that we've deployed the new eden build with globfiles
support, we can enable the use of eden prefetch in the getdeps
build when running inside an EdenFS mount on Windows.

Reviewed By: fanzeyi

Differential Revision: D21692689

fbshipit-source-id: b42e778901976cf0385ec31056c227b2049162dc
2020-05-21 22:55:40 -07:00
Wez Furlong
3bfe802f9d getdeps: partially educate getdeps about EdenFS on Windows
Summary:
I noticed that copytree was taking forever and realized
that it wasn't issuing a prefetch call so I started looking in here;
this commit teaches getdeps how to recognize and EdenFS repo on
Windows but skips calling prefetch on Windows.

Currently the prefetch implementation triggers some very slow
processing in mercurial that is slower to start than just
enumerating the files in the opensource build.

It turned out that my original problem was just that my credentials
had expired and we weren't surfacing that error on Windows yet.

Reviewed By: simpkins

Differential Revision: D20755905

fbshipit-source-id: 8d3695cdd1f04199d1d409895482b8c706285d5f
2020-04-24 14:45:21 -07:00
Wez Furlong
230005c898 getdeps: memoize eden prefetched dirs
Summary:
currently, the implementation of `eden prefetch` calls into
a mercurial function that is overly eager in making network connections,
which results in what should be a fast NOP second prefetch call taking
more time than is desirable.

This diff adds a little cache to avoid repeatedly calling prefetch
for the same directory more than once for the life of the getdeps
process.

Given the usage pattern of getdeps it is OK that we don't provide
a way to invalidate this cache.

Reviewed By: fanzeyi

Differential Revision: D18005408

fbshipit-source-id: 0ec3f477da1043a5a715704b512c81fcfaa0acde
2019-10-25 10:20:52 -07:00
Andres Suarez
18fe084a4e Relicense getdeps from BSD to MIT
Summary: See https://fb.workplace.com/groups/osssupport/permalink/2846876118694318/

Reviewed By: wez

Differential Revision: D17750243

fbshipit-source-id: 9e149df1f8e09203820f50d0fcac4a5cecf52e33
2019-10-10 13:23:48 -07:00
Wez Furlong
ade91cbac9 fbcode_builder: getdeps: add copytree helper
Summary:
this module adds some functions that help with copying
directory trees.  The copytree function is aware of eden and will
issue a prefetch prior to walking the directory.

Reviewed By: simpkins

Differential Revision: D14691006

fbshipit-source-id: 079bf850756f61aca17978453d07bc73b2f91788
2019-05-03 16:00:38 -07:00