Skip to content

Commit 3366269

Browse files
Shitanshu Shahfacebook-github-bot
Shitanshu Shah
authored andcommitted
Follow-up to earlier commit to change label to 8-core
Summary: X-link: facebookincubator/zstrong#1086 Discussed with Opensource team further. 4-core-ubuntu-22.04 label does not work since it does not exist and runners can work only with the allocated list of labels. Opensource team has now added necessary label, is added for 8-core as requested. So, now making code change for good, hopefully! https://fb.workplace.com/groups/osssupport/permalink/27367197886235467/ Reviewed By: xiangxu1121 Differential Revision: D66487987 fbshipit-source-id: 62fa2b60b5613876aaa1f0c1a47dde8826746926
1 parent cd29fb2 commit 3366269

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/fbcode_builder/getdeps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,8 @@ def write_job_for_platform(self, platform, args): # noqa: C901
10211021
if build_opts.is_linux():
10221022
artifacts = "linux"
10231023
runs_on = f"ubuntu-{args.ubuntu_version}"
1024+
if args.cpu_cores:
1025+
runs_on = f"{args.cpu_cores}-core-ubuntu-{args.ubuntu_version}"
10241026
elif build_opts.is_windows():
10251027
artifacts = "windows"
10261028
runs_on = "windows-2019"
@@ -1272,6 +1274,10 @@ def setup_project_cmd_parser(self, parser):
12721274
parser.add_argument(
12731275
"--ubuntu-version", default="22.04", help="Version of Ubuntu to use"
12741276
)
1277+
parser.add_argument(
1278+
"--cpu-cores",
1279+
help="Number of CPU cores to use (applicable for Linux OS)",
1280+
)
12751281
parser.add_argument(
12761282
"--cron",
12771283
help="Specify that the job runs on a cron schedule instead of on pushes",

0 commit comments

Comments
 (0)