Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from facebook:main #18

Open
wants to merge 930 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
930 commits
Select commit Hold shift + click to select a range
2c76a65
Updating submodules
Sep 1, 2024
30a55be
Updating submodules
Sep 2, 2024
0e6522e
Updating submodules
Sep 3, 2024
a048dc8
Updating submodules
Sep 4, 2024
08585e4
Updating submodules
Sep 5, 2024
81a090f
add CONTRIBUTING.md file to facebook/watchman open source project
kavehahmadi60 Sep 5, 2024
182b779
website: change mentions of mpm to olivia (#1243)
orip Sep 5, 2024
5935d71
Add privhelper pid to PrivHelperInfo
Sep 6, 2024
ab43e9f
add getting started section to CONTRIBUTING.md file
kavehahmadi60 Sep 6, 2024
121f898
Updating submodules
Sep 6, 2024
3f8899d
Updating submodules
Sep 7, 2024
1b843c5
Updating submodules
Sep 8, 2024
9c9d9ba
watchman: when `project-metadata` isn't provided, don't add it to the…
Sep 9, 2024
f070e04
Updating submodules
Sep 9, 2024
1c7a5d7
add DigestSize to list of possible file attributes
MichaelCuevas Sep 9, 2024
9ad00db
add DigestHash to list of possible file attributes
MichaelCuevas Sep 9, 2024
b01cac0
Updating submodules
Sep 10, 2024
e76c6c3
introduce ClientContext
Sep 11, 2024
64b9c59
log client in query execute
Sep 11, 2024
f801693
log client in sync to now
Sep 11, 2024
b7510e8
log client in saved state
Sep 11, 2024
332614f
time and log eden operations
Sep 11, 2024
4c105c3
replace maybe_unused
Sep 11, 2024
f96cce8
Updating submodules
Sep 11, 2024
4e43817
Updating submodules
Sep 12, 2024
f94dc6c
progress: return total of inodes as part of progress info
sggutier Sep 13, 2024
d7f2a29
Updating submodules
Sep 13, 2024
7af39fb
Move is_eden_fs_mount to common/utils
Sep 13, 2024
76dbdd4
Add liboqs to getdeps
Sep 13, 2024
7584bd1
Updating submodules
Sep 14, 2024
cb0b42b
regenerate github actions to update actions/upload-artifact version
ahornby Sep 14, 2024
97be47d
Updating submodules
Sep 15, 2024
d69f0f9
Updating submodules
Sep 16, 2024
875864a
Move to use libcurl-minimal
paulcruz74 Sep 16, 2024
65ae9ab
Updating submodules
Sep 17, 2024
0690fb3
Updating submodules
Sep 18, 2024
e836972
Updating submodules
Sep 19, 2024
54e9c6f
Updating submodules
Sep 20, 2024
0b3f854
fix project_install_prefix for generate-github-actions
ahornby Sep 20, 2024
a5c8fb4
restore sapling getdeps so eden/mononoke can depend on it
ahornby Sep 20, 2024
a34bb74
restore mononoke getdeps integration tests
ahornby Sep 20, 2024
ebd2b68
Updating submodules
Sep 21, 2024
882b979
Updating submodules
Sep 22, 2024
11e194f
Updating submodules
Sep 23, 2024
b212e6b
Updating submodules
Sep 24, 2024
818d09a
Updating submodules
Sep 25, 2024
7e55bb8
Updating submodules
Sep 26, 2024
814d1ee
Updating submodules
Sep 27, 2024
81a5cee
Updating submodules
Sep 28, 2024
1fb98e1
Updating submodules
Sep 29, 2024
1e0ba88
Updating submodules
Sep 30, 2024
08219a7
Updating submodules
Oct 1, 2024
ef15ada
add getDigestHash endpoint
MichaelCuevas Oct 2, 2024
d71c233
Updating submodules
Oct 2, 2024
304f5ef
Updating submodules
Oct 3, 2024
54d1c6d
Updating submodules
Oct 4, 2024
c6d8be9
fix ambiguous function call
MichaelCuevas Oct 4, 2024
106f970
Updating submodules
Oct 5, 2024
81177a3
Updating submodules
Oct 6, 2024
90be79a
remove six usage
ahornby Oct 7, 2024
3695cae
Updating submodules
Oct 7, 2024
f94a669
Updating submodules
Oct 7, 2024
b63f0d7
Upgrade serde_json to 1.0.125
jagill Oct 7, 2024
0a62cd6
add github CI signal
ahornby Oct 7, 2024
c31c7e4
run .t tests for getdeps sapling cli build
ahornby Oct 7, 2024
c16217b
Updating submodules
Oct 8, 2024
823e499
Fix OSS build
kvtsoy Oct 8, 2024
608d899
Updating submodules
Oct 9, 2024
cbf7f1f
Updating submodules
Oct 10, 2024
a907d60
make LogEvents explictly "typed" via inheritance
genevievehelsel Oct 10, 2024
d5107b1
add the notion of "typeless" events
genevievehelsel Oct 10, 2024
fc2407d
move BaseEventData and MetadataEventData into the TypedEvent inherita…
genevievehelsel Oct 10, 2024
2e88f1e
sapling getdeps cli build and test support for python 3.12
ahornby Oct 11, 2024
f2d562e
Updating submodules
Oct 11, 2024
088d965
Add xxhash as a dependency
paulcruz74 Oct 11, 2024
5d4decc
Updating submodules
Oct 12, 2024
a974c33
Updating submodules
Oct 13, 2024
21b1f3b
Updating submodules
Oct 14, 2024
44ad73e
getdeps: add xxhash ubuntu and homebrew packages, fix actions generat…
ahornby Oct 14, 2024
bc9a467
Updating submodules
Oct 15, 2024
9016f0e
enable system deps in CI to fix oss build
ahornby Oct 15, 2024
4c48464
Fix shadowed variable in watchman/Options.cpp
r-barnes Oct 15, 2024
b7c4d13
Fix shadowed variable in watchman/PDU.cpp
r-barnes Oct 15, 2024
c1a7bc6
Updating submodules
Oct 16, 2024
96f3c7a
Fix shadowed variable in watchman/bser.cpp
r-barnes Oct 16, 2024
676521d
Updating submodules
Oct 17, 2024
4c8e866
Updating submodules
Oct 17, 2024
6d7dcb2
getdeps: fix xxhash build on windows
ahornby Oct 18, 2024
fa65909
Updating submodules
Oct 18, 2024
c8c5496
Updating submodules
Oct 19, 2024
aefbee8
Updating submodules
Oct 20, 2024
10296c0
Updating submodules
Oct 21, 2024
fe99908
Updating submodules
Oct 21, 2024
5207584
Updating submodules
Oct 22, 2024
9c179cc
sapling: disable flaky tests on github getdeps cli
ahornby Oct 23, 2024
c85913f
Updating submodules
Oct 23, 2024
813f684
get mononoke green in github CI
ahornby Oct 24, 2024
f41ed2b
Vendor ractor 0.12.4 and upgrade tokio to 1.41.0
slawlor Oct 24, 2024
cd70bcd
Updating submodules
Oct 24, 2024
267bd16
getdeps: enable -fcoroutines for GCC in fb303 and eden
ahornby Oct 24, 2024
1f031a0
fbcode/eden/fs/
Oct 24, 2024
97f35b8
Updating submodules
Oct 25, 2024
3828478
Updating submodules
Oct 25, 2024
34d9ccf
update error print to say how many arguments are expected
Oct 25, 2024
cca4a55
upgrade pyre version in `fbcode/opensource` - batch 1 (#1024)
Oct 26, 2024
bbca53e
Updating submodules
Oct 26, 2024
b0b69ee
getdeps: stop error with build --clean and --src-dir=.
ahornby Oct 27, 2024
05418cd
getdeps: add env subcommand
ahornby Oct 27, 2024
9349de5
Updating submodules
Oct 27, 2024
1d4c2ab
Updating submodules
Oct 28, 2024
e5dac86
Updating submodules
Oct 29, 2024
b01a7d9
Updating submodules
Oct 30, 2024
539a704
Updating submodules
Oct 31, 2024
32fc1f9
update serde 1.0.203->1.0.214, serde_json 1.0.125->1.0.132
mimir-d Oct 31, 2024
b11b57c
Updating submodules
Nov 1, 2024
ebfac5f
Add systemd libs in manifests
paulcruz74 Nov 1, 2024
d02acb9
Updating submodules
Nov 2, 2024
e2bb8f0
Fix shadowed variable in watchman/Command.cpp
jdelliot Nov 2, 2024
5f37681
Updating submodules
Nov 3, 2024
7d247bc
Updating submodules
Nov 4, 2024
9a66b90
SlotPath topology config validation.
Nov 5, 2024
b28e7a8
Updating submodules
Nov 5, 2024
e193167
Remove default typing argument in PACKAGE file] [batch:140/146] [shar…
Nov 5, 2024
4161e94
Updating submodules
Nov 6, 2024
9d3f5ee
Initial Thrift definitions to support EdenFS filesystem notifications
jdelliot Nov 6, 2024
3a732d5
Updating submodules
Nov 7, 2024
501416a
Add simple suffix evaluation
Nov 7, 2024
08e51e4
Updating submodules
Nov 8, 2024
828be72
Add initial implementation of streamChangesSinceV2
jdelliot Nov 9, 2024
1a81073
Updating submodules
Nov 9, 2024
78abdb7
Updating submodules
Nov 10, 2024
792015b
Updating submodules
Nov 11, 2024
a20729f
Workaround build failure for range-v3 example code
paulcruz74 Nov 12, 2024
61f6234
Updating submodules
Nov 12, 2024
37830b2
Updating submodules
Nov 13, 2024
a6a75aa
Fix for missing paths in simple suffix evaluation
Nov 13, 2024
c932fb2
Tests for simple suffix
Nov 13, 2024
1038556
Use `folly::fileops` qualified name lookup
skrueger Nov 14, 2024
717329c
Updating submodules
Nov 14, 2024
d7e290a
getdeps: enable -fcoroutines for GCC in edencommon and watchman
ahornby Nov 14, 2024
7ec833c
Updating submodules
Nov 14, 2024
e60f7f8
Updating submodules
Nov 15, 2024
10c03e8
Update implementation of streamChangesSinceV2 to use ForEachDelta
jdelliot Nov 16, 2024
749660d
Prepare to move changes since API from streaming to non-streaming
jdelliot Nov 16, 2024
f433f4d
Move changes since API from streaming to non-streaming
jdelliot Nov 16, 2024
49dd7c6
Updating submodules
Nov 16, 2024
8cb8f8a
Updating submodules
Nov 17, 2024
fdf1896
Updating submodules
Nov 18, 2024
b3c21a9
Allow systemd libs to be built from source
paulcruz74 Nov 18, 2024
4e8f678
Added basic Thrift API docs for new changesSinceV2 API and depdendent…
jdelliot Nov 19, 2024
204dd69
Added support for returning LostChagnes (large change) and first lost…
jdelliot Nov 19, 2024
fd9010a
Updating submodules
Nov 19, 2024
3199d3f
Updating submodules
Nov 19, 2024
ea860b5
Updating submodules
Nov 20, 2024
9d7f5ad
Updating submodules
Nov 21, 2024
94ee5cd
Use folly::fileops qualified name
skrueger Nov 21, 2024
51a2b4c
upgrade nix to 0.26.4
chadaustin Nov 22, 2024
0d6de94
Updating submodules
Nov 22, 2024
55d4a1e
Updating submodules
Nov 23, 2024
e63661c
Updating submodules
Nov 23, 2024
3c53dbe
Updating submodules
Nov 24, 2024
b1c4ac2
Updating submodules
Nov 25, 2024
e660230
fix hangs in watchman oss ubuntu tests by excluding liblzma-dev
ahornby Nov 25, 2024
0aee5d1
Updating submodules
Nov 26, 2024
520b55a
Updating submodules
Nov 27, 2024
c603e6f
Updating submodules
Nov 28, 2024
d3fa776
Updating submodules
Nov 29, 2024
c4d5c44
make openssl install less confusing, align openssl version
ahornby Dec 2, 2024
68516ce
fetch dependencies in parallel on sandcastle
ahornby Dec 3, 2024
59b4eb7
Format with Prettier
robhogan Dec 3, 2024
b987a81
Switch to class syntax
robhogan Dec 3, 2024
63b8750
Use arrow functions, avoid self = this, var => const/let
robhogan Dec 3, 2024
8923797
Add Flow comment types
robhogan Dec 3, 2024
562b62e
Added root inclusion/exclusion params to changesSinceV2
jdelliot Dec 3, 2024
d56f056
reduce shipit fetcher update logs (#1081)
ahornby Dec 4, 2024
c1b62ab
Updating submodules
Dec 4, 2024
d64186b
Updating submodules
Dec 5, 2024
7270f5d
jom (parallel nmake) build for openssl windows
ahornby Dec 5, 2024
2f2b01c
speed up file copy on windows
ahornby Dec 6, 2024
453dd20
Updating submodules
Dec 6, 2024
3f1f5b3
Updating submodules
Dec 6, 2024
d8e7897
Convert FBCODE to use the Ruff Formatter
Dec 6, 2024
ddc0c88
Follow-up to earlier commit to change label to 8-core
Dec 7, 2024
b77c78e
Updating submodules
Dec 7, 2024
83a8597
Updating submodules
Dec 8, 2024
9d5a37c
Updating submodules
Dec 9, 2024
05cdd23
Updating submodules
Dec 10, 2024
52acaa4
Updating submodules
Dec 11, 2024
7605419
Updating submodules
Dec 12, 2024
81804c3
Updating submodules
Dec 13, 2024
de8958a
Remove facebook-hte-PortabilityInclude-{gtest,gmock} clang-tidy lints
skrueger Dec 14, 2024
4b365b5
Updating submodules
Dec 14, 2024
4d8e950
Updating submodules
Dec 15, 2024
7d7a3f4
Updating submodules
Dec 16, 2024
7fa0184
Updating submodules
Dec 17, 2024
5fd689f
upgrade nix to 0.29.0
chadaustin Dec 17, 2024
ad6ed64
Updating submodules
Dec 18, 2024
98f8500
Updating submodules
Dec 19, 2024
3187346
Updating submodules
Dec 20, 2024
cd8f642
Updating submodules
Dec 21, 2024
43a2beb
Updating submodules
Dec 22, 2024
46d8587
Updating submodules
Dec 23, 2024
32cbe36
Updating submodules
Dec 24, 2024
1bfcff7
Updating submodules
Dec 25, 2024
fd40fd3
Updating submodules
Dec 26, 2024
b7858f7
Updating submodules
Dec 27, 2024
13bf42d
Migrate OSS build from custom to getdeps
Dec 27, 2024
bd0ddab
Updating submodules
Dec 28, 2024
9a75165
Updating submodules
Dec 29, 2024
ce94b0e
Updating submodules
Dec 30, 2024
1f0df9f
Updating submodules
Dec 31, 2024
af07e42
Add suffix support for Notifications
Jan 2, 2025
f78b9fe
Updating submodules
Jan 2, 2025
4515dc4
upgrade anyhow: 1.0.86 -> 1.0.95
Jan 3, 2025
22a9a43
Updating submodules
Jan 3, 2025
cc4d869
Updating submodules
Jan 4, 2025
6e41682
Updating submodules
Jan 5, 2025
af2dcb0
Updating submodules
Jan 6, 2025
d9d0e2a
Add libaio as a library
Jan 6, 2025
22b2c11
regenerate github actions
ahornby Jan 6, 2025
d45fbbf
skip unnecessary github actions steps
ahornby Jan 6, 2025
3afb87c
add github actions caching
ahornby Jan 6, 2025
d0e920b
preserve http_proxy in generated github actions sudo invocatons
ahornby Jan 7, 2025
df14d2e
Updating submodules
Jan 7, 2025
1f321ae
Updating submodules
Jan 8, 2025
611a218
Updating submodules
Jan 9, 2025
217151d
Upgrade liboqs to 0.12.0
Jan 9, 2025
5dc420b
update libunwind version to avoid aarch64-related issues
YifanYuan3 Jan 10, 2025
e6ae2cd
Updating submodules
Jan 10, 2025
452946a
Auto-fix lint violations from Fixit] fbcode//opensource/fbcode_builde…
Jan 10, 2025
c298812
Updating submodules
Jan 11, 2025
fedef8a
Updating submodules
Jan 12, 2025
d87746e
fixing typo in libunwind
YifanYuan3 Jan 13, 2025
b52c7f7
Updating submodules
Jan 13, 2025
e69b79f
Updating submodules
Jan 14, 2025
1e6e27e
Merge mustache between fbcode and xplat
vitaut Jan 14, 2025
3c1616d
Updating submodules
Jan 15, 2025
00aef29
fbcode/eden/ [A]
Jan 15, 2025
99ed167
Updating submodules
Jan 16, 2025
1408ee9
Minor tweaks to xz and libiberty builds
jmswen Jan 17, 2025
1503186
Updating submodules
Jan 17, 2025
e792889
Rename subscribeStreamTemporary to subscribeStreamChangesSince
Jan 17, 2025
207a429
Add call+fallback for streamJournalChanged to watchman
Jan 17, 2025
34383e0
Add missing Pyre mode headers] [batch:19/1531] [shard:41/N]
Jan 17, 2025
6e7b25e
Updating submodules
Jan 18, 2025
3f73adf
Updating submodules
Jan 19, 2025
ba2747a
Support GHC 9.2.8 in the OSS build
Jan 20, 2025
baf5e36
Updating submodules
Jan 20, 2025
037be86
Add GHC 9.2.8 to github CI
Jan 21, 2025
e8eece7
Updating submodules
Jan 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
789 changes: 708 additions & 81 deletions .github/workflows/getdeps_linux.yml

Large diffs are not rendered by default.

659 changes: 591 additions & 68 deletions .github/workflows/getdeps_mac.yml

Large diffs are not rendered by default.

538 changes: 518 additions & 20 deletions .github/workflows/getdeps_windows.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
tags: ${{ format('ghcr.io/{0}/watchman-build-env:latest', github.repository) }}

clone-and-build-and-package-ubuntu:
needs: docker
needs: docker-ubuntu
runs-on: ubuntu-latest
container:
image: ${{ format('ghcr.io/{0}/watchman-build-env:latest', github.repository) }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ name: release
push:
tags:
- v*

permissions:
contents: write # to create a release

jobs:
prepare:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- v*

permissions:
contents: write # to create a release
packages: write # to upload a package

jobs:
prepare:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ libtool
ltmain.sh
cppclient/watchmanclient.pc
/website/.jekyll-metadata
/rust/**/Cargo.lock
/rust/**/target/
/CMakeCache.txt
/CMakeFiles
/*.cmake
Expand Down
6 changes: 0 additions & 6 deletions BUCK

This file was deleted.

29 changes: 25 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ set(CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/build/fbcode_builder/CMake"
${CMAKE_MODULE_PATH})

set(CMAKE_CXX_STANDARD 17)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
message(STATUS "setting C++ standard to C++${CMAKE_CXX_STANDARD}")
endif()

# Explicitly enable coroutine support, since GCC does not enable it
# by default when targeting C++17.
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fcoroutines>)
endif()

if (WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWIN32_LEAN_AND_MEAN -DNOMINMAX -DSTRICT")
Expand Down Expand Up @@ -395,17 +405,20 @@ endif()


if(Python3_Development_FOUND)
set(PYOUT "${CMAKE_CURRENT_BINARY_DIR}/build/pytimestamp")
set(PYOUT "${CMAKE_CURRENT_BINARY_DIR}/pywatchman")
set(SETUP_PY "${CMAKE_CURRENT_SOURCE_DIR}/watchman/python/setup.py")
set(PYWATCHMAN_BASE ${CMAKE_CURRENT_SOURCE_DIR}/watchman/python)
file(GLOB PYWATCHMAN_PY_SRCS "watchman/python/pywatchman/*.py")
file(MAKE_DIRECTORY ${PYOUT})
add_custom_command(
COMMENT "Building pywatchman"
OUTPUT ${PYOUT}
DEPENDS ${PYWATCHMAN_PY_SRCS} "watchman/python/pywatchman/bser.c"
WORKING_DIRECTORY ${PYWATCHMAN_BASE}
COMMAND ${CMAKE_COMMAND} -E env
CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
CMAKE_CURRENT_BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR}
${Python3_EXECUTABLE} ${SETUP_PY} build
${Python3_EXECUTABLE} ${SETUP_PY} build --build-base ${PYOUT}
COMMAND ${CMAKE_COMMAND} -E touch ${PYOUT}
)
add_custom_target(pybuild ALL DEPENDS ${PYOUT})
Expand All @@ -415,6 +428,7 @@ if(Python3_Development_FOUND)
CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
${Python3_EXECUTABLE} ${SETUP_PY} install
--root $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}
WORKING_DIRECTORY ${PYWATCHMAN_BASE}
RESULT_VARIABLE STATUS)
if (NOT STATUS STREQUAL 0)
message(FATAL_ERROR \"pywatchman install failed\")
Expand Down Expand Up @@ -458,8 +472,10 @@ target_link_libraries(third_party_deps INTERFACE
glog::glog
gflags
${Boost_LIBRARIES}
fb303::fb303
fmt::fmt
edencommon::edencommon_utils
edencommon::edencommon_telemetry
)
target_include_directories(third_party_deps INTERFACE
${FOLLY_INCLUDE_DIR}
Expand Down Expand Up @@ -605,6 +621,7 @@ watchman/PerfSample.cpp
watchman/fs/ParallelWalk.cpp
watchman/fs/Pipe.cpp
watchman/ProcessLock.cpp
watchman/ProcessUtil.cpp
# PubSub.cpp (in liblog)
watchman/QueryableView.cpp
watchman/SanityCheck.cpp
Expand Down Expand Up @@ -683,6 +700,9 @@ watchman/saved_state/SavedStateInterface.cpp
watchman/scm/Git.cpp
watchman/scm/Mercurial.cpp
watchman/scm/SCM.cpp
watchman/telemetry/LogEvent.cpp
watchman/telemetry/WatchmanStats.cpp
watchman/telemetry/WatchmanStructuredLogger.cpp
watchman/thirdparty/getopt/GetOpt.cpp
watchman/watcher/Watcher.cpp
watchman/watcher/WatcherRegistry.cpp
Expand Down Expand Up @@ -744,7 +764,7 @@ function(t_test NAME)
)
target_compile_definitions(${NAME}.t
PUBLIC WATCHMAN_TEST_SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\")
gtest_discover_tests(${NAME}.t)
gtest_discover_tests(${NAME}.t DISCOVERY_TIMEOUT 60)
list(APPEND tests ${NAME}.t)
endfunction()

Expand All @@ -756,6 +776,7 @@ add_custom_target(check
if(Python3_Interpreter_FOUND)
if (WIN32)
add_executable(susres watchman/winbuild/susres.cpp)
target_link_libraries(susres third_party_deps)
add_custom_target(make_susres ALL DEPENDS susres)
endif()

Expand Down
41 changes: 41 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Contributing to watchman
We want to make contributing to this project as easy and transparent as
possible.

## Our Development Process
Watchman is currently developed in Meta's internal repositories and then exported out to GitHub by a Meta team member; however, we invite you to submit pull requests as described below.

## Pull Requests
We actively welcome your pull requests.

1. Fork the repo and create your branch from `main`.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. If you haven't already, complete the Contributor License Agreement ("CLA").

## Getting Started
For more information on how to get started please see [contributing guide](https://facebook.github.io/watchman/docs/contributing).

## Contributor License Agreement ("CLA")
In order to accept your pull request, we need you to submit a CLA. You only need
to do this once to work on any of Meta's open source projects.

Complete your CLA here: <https://code.facebook.com/cla>

## Issues
We use GitHub issues to track public bugs. Please ensure your description is
clear and has sufficient instructions to be able to reproduce the issue.

Meta has a [bounty program](https://www.facebook.com/whitehat/) for the safe
disclosure of security bugs. In those cases, please go through the process
outlined on that page and do not file a public issue.

## Coding Style
* 2 spaces for indentation rather than tabs
* 80 character line length

## License
By contributing to watchman, you agree that your contributions will be licensed
under the LICENSE file in the root directory of this source tree (MIT License).
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Please submit a [GitHub issue](https://github.com/facebook/watchman/issues/) to

## Contributing

Please see the [contributing guide](https://facebook.github.io/watchman/contributing.html).
Please see the [contributing document](CONTRIBUTING.md).
2 changes: 1 addition & 1 deletion build/deps/github_hashes/facebook/fbthrift-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Subproject commit f06abe38cf79a4a3233b511f41c13f2d676f4bea
Subproject commit 84d64ccee636375fcce063b0bf07e19188dfb808
2 changes: 1 addition & 1 deletion build/deps/github_hashes/facebook/folly-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Subproject commit f62dca2944bb17b50f684a0fd74fedba619ceabc
Subproject commit 95c9b2b57fa47f316a4c6d7b89c12e93346df04e
2 changes: 1 addition & 1 deletion build/deps/github_hashes/facebook/wangle-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Subproject commit 1329a887b6fce52c55d7b67f0a25022c5726b14f
Subproject commit 77ab2ac5f6fd36da304d96b76de5cd28359e3035
8 changes: 7 additions & 1 deletion build/fbcode_builder/CMake/FindGlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ if (NOT TARGET glog::glog)
find_package(Gflags)
if(GFLAGS_FOUND)
message(STATUS "Found gflags as a dependency of glog::glog, include=${LIBGFLAGS_INCLUDE_DIR}, libs=${LIBGFLAGS_LIBRARY}")
set_target_properties(glog::glog PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES ${LIBGFLAGS_LIBRARY})
set_property(TARGET glog::glog APPEND PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES ${LIBGFLAGS_LIBRARY})
endif()

find_package(LibUnwind)
if(LIBUNWIND_FOUND)
message(STATUS "Found LibUnwind as a dependency of glog::glog, include=${LIBUNWIND_INCLUDE_DIR}, libs=${LIBUNWIND_LIBRARY}")
set_property(TARGET glog::glog APPEND PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES ${LIBUNWIND_LIBRARY})
endif()
endif()
19 changes: 19 additions & 0 deletions build/fbcode_builder/CMake/FindLMDB.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.

find_library(LMDB_LIBRARIES NAMES lmdb liblmdb)
mark_as_advanced(LMDB_LIBRARIES)

find_path(LMDB_INCLUDE_DIR NAMES lmdb.h)
mark_as_advanced(LMDB_INCLUDE_DIR)

find_package_handle_standard_args(
LMDB
REQUIRED_VARS LMDB_LIBRARIES LMDB_INCLUDE_DIR)

if(LMDB_FOUND)
set(LMDB_LIBRARIES ${LMDB_LIBRARIES})
set(LMDB_INCLUDE_DIR, ${LMDB_INCLUDE_DIR})
endif()
40 changes: 40 additions & 0 deletions build/fbcode_builder/CMake/FindXxhash.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#
# - Try to find Facebook xxhash library
# This will define
# Xxhash_FOUND
# Xxhash_INCLUDE_DIR
# Xxhash_LIBRARY
#

find_path(Xxhash_INCLUDE_DIR NAMES xxhash.h)

find_library(Xxhash_LIBRARY_RELEASE NAMES xxhash)

include(SelectLibraryConfigurations)
SELECT_LIBRARY_CONFIGURATIONS(Xxhash)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
Xxhash DEFAULT_MSG
Xxhash_LIBRARY Xxhash_INCLUDE_DIR
)

if (Xxhash_FOUND)
message(STATUS "Found xxhash: ${Xxhash_LIBRARY}")
endif()

mark_as_advanced(Xxhash_INCLUDE_DIR Xxhash_LIBRARY)
Loading