From b93c75d3a5be6449dd1f05b1da927fabdebeeb30 Mon Sep 17 00:00:00 2001 From: Andrea Aquino Date: Thu, 17 Feb 2022 11:13:23 -0800 Subject: [PATCH] Fix getdeps test classification Summary: If getdeps tests run from fbcode, tpx guesses that the test type is FBCODE rather than FBTEST. This makes UTF ignore the buildsystem=getdeps config, which leads tests to be ignored. This diff sets the test type explicitly. More context in [this post](https://fb.workplace.com/groups/tpx.users/permalink/1309289352870499/). Reviewed By: sandeepkumarpani888 Differential Revision: D34271402 fbshipit-source-id: 2c6c37d706f22d214cd2f7622a7124b4c3f92ba0 --- build/fbcode_builder/getdeps/builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/build/fbcode_builder/getdeps/builder.py b/build/fbcode_builder/getdeps/builder.py index e1ea29186..bff4adc63 100644 --- a/build/fbcode_builder/getdeps/builder.py +++ b/build/fbcode_builder/getdeps/builder.py @@ -790,6 +790,7 @@ if __name__ == "__main__": working_dir = get_property(test, "WORKING_DIRECTORY") labels = [] machine_suffix = self.build_opts.host_type.as_tuple_string() + labels.append("tpx-fb-test-type=3") labels.append("tpx_test_config::buildsystem=getdeps") labels.append("tpx_test_config::platform={}".format(machine_suffix))