Skip to content

Commit

Permalink
Restrict build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfootjon committed May 9, 2024
1 parent 4d8749d commit 7f8f85a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/scripts/bad_targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is a list of bad targets that do not build in OSS. Ideally this list goes away
# with time.
root//folly/docs/examples/folly:baton_demo
root//folly/docs/examples/folly:cancellation_callback_demo
root//folly/docs/examples/folly:cancellation_source_demo
root//folly/docs/examples/folly:cancellation_token_demo
root//folly/docs/examples/folly:dynamic_converter_demo
root//folly/docs/examples/folly:dynamic_demo
root//folly/docs/examples/folly:executor_guide
root//folly/docs/examples/folly:file_demo
root//folly/docs/examples/folly:format_demo
root//folly/docs/examples/folly:function_demo
root//folly/docs/examples/folly:ipaddress_demo
root//folly/docs/examples/folly:likely_demo
root//folly/docs/examples/folly:map_util_demo
root//folly/docs/examples/folly:scope_guard_demo
root//folly/docs/examples/folly:scope_guard2_demo
root//folly/docs/examples/folly:scoped_event_base_thread_demo
root//folly/docs/examples/folly:scoped_event_base_thread2_demo
root//folly/docs/examples/folly:synchronized_demo
root//folly/docs/examples/folly/container:array_demo
root//folly/docs/examples/folly/dynamic:array_demo
root//folly/docs/examples/folly/dynamic:object_demo
root//folly/docs/examples/folly/experimental/coro:async_scope_demo
root//folly/docs/examples/folly/experimental/coro:cancellable_async_scope_demo
root//folly/docs/examples/folly/experimental/coro:detach_on_cancel_demo
root//folly/docs/examples/folly/experimental/coro:promise_demo
root//folly/docs/examples/folly/experimental/coro:retry_demo
root//folly/docs/examples/folly/experimental/coro:task_demo
root//folly/docs/examples/folly/experimental/coro:with_cancellation_demo
root//folly/docs/examples/folly/hash:hash_demo
root//folly/docs/examples/folly/io:i_o_buf_demo
root//folly/experimental/exception_tracer:exception_counter
root//folly/experimental/exception_tracer:exception_tracer
root//folly/experimental/exception_tracer:exception_tracer_callbacks
root//folly/experimental/exception_tracer:smart_exception_stack_trace_hooks
root//folly/experimental/exception_tracer:smart_exception_tracer
root//folly/experimental/symbolizer/tool:folly-addr2line
root//folly/experimental/symbolizer/tool:libFollySegFault.so
root//folly/logging/example:example
root//folly/python:executor_lib
root//folly/python:fibers_lib
root//folly/python:iobuf_lib
root//folly/tool:benchmark_compare
shim//third-party/libaio:aio__libaio__brew_headers
5 changes: 4 additions & 1 deletion .github/scripts/buck_build_and_test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

TARGETS_FILE=$(mktemp)
./buck2 targets //... | grep -F -v -f .github/scripts/bad_targets | grep -v test >$TARGETS_FILE

./buck2 build //... && ./buck2 test //...
./buck2 build @$TARGETS_FILE
# ./buck2 test @$TARGETS_FILE

0 comments on commit 7f8f85a

Please sign in to comment.