Skip to content

Commit c036c53

Browse files
authored
Merge branch 'facebook:main' into update-release-yml
2 parents d420424 + 6d7dcb2 commit c036c53

File tree

11 files changed

+230
-190
lines changed

11 files changed

+230
-190
lines changed

.github/workflows/getdeps_linux.yml

Lines changed: 89 additions & 79 deletions
Large diffs are not rendered by default.

.github/workflows/getdeps_mac.yml

Lines changed: 73 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -18,143 +18,149 @@ jobs:
1818
runs-on: macOS-latest
1919
steps:
2020
- uses: actions/checkout@v4
21+
- name: Install system deps
22+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive watchman
2123
- name: Install Rust Stable
2224
uses: dtolnay/rust-toolchain@stable
2325
- name: Fetch boost
24-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests boost
26+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests boost
2527
- name: Fetch ninja
26-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
28+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests ninja
2729
- name: Fetch cmake
28-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
30+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cmake
2931
- name: Fetch cpptoml
30-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cpptoml
32+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cpptoml
3133
- name: Fetch fmt
32-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fmt
34+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fmt
3335
- name: Fetch gflags
34-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests gflags
36+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests gflags
3537
- name: Fetch glog
36-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests glog
38+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests glog
3739
- name: Fetch googletest
38-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests googletest
40+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests googletest
41+
- name: Fetch xxhash
42+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests xxhash
3943
- name: Fetch zstd
40-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zstd
44+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zstd
4145
- name: Fetch double-conversion
42-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
46+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests double-conversion
4347
- name: Fetch fast_float
44-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fast_float
48+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fast_float
4549
- name: Fetch libdwarf
46-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libdwarf
50+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libdwarf
4751
- name: Fetch lz4
48-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests lz4
52+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests lz4
4953
- name: Fetch openssl
50-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests openssl
54+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests openssl
5155
- name: Fetch snappy
52-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests snappy
56+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests snappy
5357
- name: Fetch pcre2
54-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests pcre2
58+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests pcre2
5559
- name: Fetch python-setuptools
56-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-setuptools
60+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests python-setuptools
5761
- name: Fetch libevent
58-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libevent
62+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libevent
5963
- name: Fetch liboqs
60-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests liboqs
64+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests liboqs
6165
- name: Fetch zlib
62-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zlib
66+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zlib
6367
- name: Fetch autoconf
64-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
68+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests autoconf
6569
- name: Fetch automake
66-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
70+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests automake
6771
- name: Fetch libtool
68-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
72+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libtool
6973
- name: Fetch libsodium
70-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libsodium
74+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libsodium
7175
- name: Fetch xz
72-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests xz
76+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests xz
7377
- name: Fetch folly
74-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests folly
78+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests folly
7579
- name: Fetch fizz
76-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fizz
80+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fizz
7781
- name: Fetch mvfst
78-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests mvfst
82+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests mvfst
7983
- name: Fetch wangle
80-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests wangle
84+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests wangle
8185
- name: Fetch fbthrift
82-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fbthrift
86+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fbthrift
8387
- name: Fetch fb303
84-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fb303
88+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fb303
8589
- name: Fetch edencommon
86-
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests edencommon
90+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests edencommon
8791
- name: Build boost
88-
run: python3 build/fbcode_builder/getdeps.py build --no-tests boost
92+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests boost
8993
- name: Build ninja
90-
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
94+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests ninja
9195
- name: Build cmake
92-
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
96+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cmake
9397
- name: Build cpptoml
94-
run: python3 build/fbcode_builder/getdeps.py build --no-tests cpptoml
98+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cpptoml
9599
- name: Build fmt
96-
run: python3 build/fbcode_builder/getdeps.py build --no-tests fmt
100+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fmt
97101
- name: Build gflags
98-
run: python3 build/fbcode_builder/getdeps.py build --no-tests gflags
102+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests gflags
99103
- name: Build glog
100-
run: python3 build/fbcode_builder/getdeps.py build --no-tests glog
104+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests glog
101105
- name: Build googletest
102-
run: python3 build/fbcode_builder/getdeps.py build --no-tests googletest
106+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests googletest
107+
- name: Build xxhash
108+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests xxhash
103109
- name: Build zstd
104-
run: python3 build/fbcode_builder/getdeps.py build --no-tests zstd
110+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zstd
105111
- name: Build double-conversion
106-
run: python3 build/fbcode_builder/getdeps.py build --no-tests double-conversion
112+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests double-conversion
107113
- name: Build fast_float
108-
run: python3 build/fbcode_builder/getdeps.py build --no-tests fast_float
114+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fast_float
109115
- name: Build libdwarf
110-
run: python3 build/fbcode_builder/getdeps.py build --no-tests libdwarf
116+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libdwarf
111117
- name: Build lz4
112-
run: python3 build/fbcode_builder/getdeps.py build --no-tests lz4
118+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests lz4
113119
- name: Build openssl
114-
run: python3 build/fbcode_builder/getdeps.py build --no-tests openssl
120+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests openssl
115121
- name: Build snappy
116-
run: python3 build/fbcode_builder/getdeps.py build --no-tests snappy
122+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests snappy
117123
- name: Build pcre2
118-
run: python3 build/fbcode_builder/getdeps.py build --no-tests pcre2
124+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests pcre2
119125
- name: Build python-setuptools
120-
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-setuptools
126+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests python-setuptools
121127
- name: Build libevent
122-
run: python3 build/fbcode_builder/getdeps.py build --no-tests libevent
128+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libevent
123129
- name: Build liboqs
124-
run: python3 build/fbcode_builder/getdeps.py build --no-tests liboqs
130+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests liboqs
125131
- name: Build zlib
126-
run: python3 build/fbcode_builder/getdeps.py build --no-tests zlib
132+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zlib
127133
- name: Build autoconf
128-
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
134+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests autoconf
129135
- name: Build automake
130-
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
136+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests automake
131137
- name: Build libtool
132-
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
138+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libtool
133139
- name: Build libsodium
134-
run: python3 build/fbcode_builder/getdeps.py build --no-tests libsodium
140+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libsodium
135141
- name: Build xz
136-
run: python3 build/fbcode_builder/getdeps.py build --no-tests xz
142+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests xz
137143
- name: Build folly
138-
run: python3 build/fbcode_builder/getdeps.py build --no-tests folly
144+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests folly
139145
- name: Build fizz
140-
run: python3 build/fbcode_builder/getdeps.py build --no-tests fizz
146+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fizz
141147
- name: Build mvfst
142-
run: python3 build/fbcode_builder/getdeps.py build --no-tests mvfst
148+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests mvfst
143149
- name: Build wangle
144-
run: python3 build/fbcode_builder/getdeps.py build --no-tests wangle
150+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests wangle
145151
- name: Build fbthrift
146-
run: python3 build/fbcode_builder/getdeps.py build --no-tests fbthrift
152+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fbthrift
147153
- name: Build fb303
148-
run: python3 build/fbcode_builder/getdeps.py build --no-tests fb303
154+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fb303
149155
- name: Build edencommon
150-
run: python3 build/fbcode_builder/getdeps.py build --no-tests edencommon
156+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests edencommon
151157
- name: Build watchman
152-
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. watchman --project-install-prefix watchman:/usr/local
158+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. watchman --project-install-prefix watchman:/usr/local
153159
- name: Copy artifacts
154-
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. watchman _artifacts/mac --project-install-prefix watchman:/usr/local --final-install-prefix /usr/local
160+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --src-dir=. watchman _artifacts/mac --project-install-prefix watchman:/usr/local --final-install-prefix /usr/local
155161
- uses: actions/upload-artifact@v4
156162
with:
157163
name: watchman
158164
path: _artifacts
159165
- name: Test watchman
160-
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. watchman --project-install-prefix watchman:/usr/local
166+
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. watchman --project-install-prefix watchman:/usr/local

.github/workflows/getdeps_windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
run: python build/fbcode_builder/getdeps.py fetch --no-tests googletest
4646
- name: Fetch libsodium
4747
run: python build/fbcode_builder/getdeps.py fetch --no-tests libsodium
48+
- name: Fetch xxhash
49+
run: python build/fbcode_builder/getdeps.py fetch --no-tests xxhash
4850
- name: Fetch zstd
4951
run: python build/fbcode_builder/getdeps.py fetch --no-tests zstd
5052
- name: Fetch double-conversion
@@ -103,6 +105,8 @@ jobs:
103105
run: python build/fbcode_builder/getdeps.py build --no-tests googletest
104106
- name: Build libsodium
105107
run: python build/fbcode_builder/getdeps.py build --no-tests libsodium
108+
- name: Build xxhash
109+
run: python build/fbcode_builder/getdeps.py build --no-tests xxhash
106110
- name: Build zstd
107111
run: python build/fbcode_builder/getdeps.py build --no-tests zstd
108112
- name: Build double-conversion
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 5ae23ab52d29fec02244a7d50903cf1fb4031ace
1+
Subproject commit 97518207214e89d6db73da63837f4e1dc2b57acf
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 452c7438adb67321f99f2bca7395087ef59dd58f
1+
Subproject commit ab576d641d9ae77662e6e54a5db7fbe6d215fa6d
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 95d995a1dc06d5244676f4981393accb205753b3
1+
Subproject commit dd5f918c13d1f4c89519cc76edec50e39c0fdc2b

build/fbcode_builder/getdeps.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,10 @@ def get_run_on(self, args):
959959
def write_job_for_platform(self, platform, args): # noqa: C901
960960
build_opts = setup_build_options(args, platform)
961961
ctx_gen = build_opts.get_context_generator()
962+
if args.enable_tests:
963+
ctx_gen.set_value_for_project(args.project, "test", "on")
964+
else:
965+
ctx_gen.set_value_for_project(args.project, "test", "off")
962966
loader = ManifestLoader(build_opts, ctx_gen)
963967
self.process_project_dir_arguments(args, loader)
964968
manifest = loader.load_manifest(args.project)
@@ -1081,7 +1085,10 @@ def write_job_for_platform(self, platform, args): # noqa: C901
10811085
free_up_disk = ""
10821086

10831087
allow_sys_arg = ""
1084-
if run_tests:
1088+
if (
1089+
build_opts.allow_system_packages
1090+
and build_opts.host_type.get_package_manager()
1091+
):
10851092
sudo_arg = "sudo "
10861093
allow_sys_arg = " --allow-system-packages"
10871094
if build_opts.host_type.get_package_manager() == "deb":
@@ -1092,13 +1099,16 @@ def write_job_for_platform(self, platform, args): # noqa: C901
10921099
if build_opts.is_darwin():
10931100
# brew is installed as regular user
10941101
sudo_arg = ""
1102+
tests_arg = "--no-tests "
1103+
if run_tests:
1104+
tests_arg = ""
10951105
out.write(
1096-
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive {manifest.name}\n"
1106+
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps {tests_arg}--recursive {manifest.name}\n"
10971107
)
10981108
if build_opts.is_linux() or build_opts.is_freebsd():
10991109
out.write(" - name: Install packaging system deps\n")
11001110
out.write(
1101-
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive patchelf\n"
1111+
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps {tests_arg}--recursive patchelf\n"
11021112
)
11031113
required_locales = manifest.get(
11041114
"github.actions", "required_locales", ctx=manifest_ctx
@@ -1176,7 +1186,7 @@ def write_job_for_platform(self, platform, args): # noqa: C901
11761186
no_deps_arg = "--no-deps "
11771187

11781188
no_tests_arg = ""
1179-
if not args.enable_tests:
1189+
if not run_tests:
11801190
no_tests_arg = "--no-tests "
11811191

11821192
out.write(

build/fbcode_builder/manifests/xxhash

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ sha256 = baee0c6afd4f03165de7a4e67988d16f0f2b257b51d0e3cb91909302a26a79c4
88
[rpms]
99
xxhash-devel
1010

11+
[debs]
12+
libxxhash-dev
13+
xxhash
14+
15+
[homebrew]
16+
xxhash
17+
1118
[build.not(os=windows)]
1219
builder = make
1320
subdir = xxHash-0.8.2
@@ -18,3 +25,6 @@ all
1825
[make.install_args]
1926
install
2027

28+
[build.os=windows]
29+
builder = cmake
30+
subdir = xxHash-0.8.2/cmake_unofficial

0 commit comments

Comments
 (0)