Reland "[bazel] Disable build_runfile_manifests for remote builds"

This is a reland of commit 6a39bcb272857ff703984f88bd127e39cf3bb9d7

Original change's description:
> [bazel] Disable build_runfile_manifests for remote builds
>
> We do this on the infra repo also to improve performance:
> https://github.com/google/skia-buildbot/blob/f5f165a639445dd4fae93b6fd5b11ea44f58fd0a/.bazelrc#L124
>
> Change-Id: I96bd951f85c19d18a4282c938622f96283184e8b
> Bug: skia:12541
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/561756
> Reviewed-by: Leandro Lovisolo <lovisolo@google.com>

Bug: skia:12541
Change-Id: I5b8ed3bda434fb22cd01556281e939a84756a875
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/561763
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
diff --git a/infra/bots/gen_tasks_logic/gen_tasks_logic.go b/infra/bots/gen_tasks_logic/gen_tasks_logic.go
index 22abca4..8ec7541 100644
--- a/infra/bots/gen_tasks_logic/gen_tasks_logic.go
+++ b/infra/bots/gen_tasks_logic/gen_tasks_logic.go
@@ -2120,6 +2120,8 @@
 			cmd = append(cmd, "--bazel_arg=--config=for_linux_x64_with_rbe")
 			cmd = append(cmd, "--bazel_arg=--jobs=100")
 			cmd = append(cmd, "--bazel_arg=--remote_download_minimal")
+			// https://bazel.build/docs/user-manual#build-runfile-manifests
+			cmd = append(cmd, "--bazel_arg=--nobuild_runfile_manifests", "--bazel_arg=--nobuild_runfile_links")
 		} else {
 			panic("unsupported Bazel host " + host)
 		}
@@ -2157,8 +2159,8 @@
 				"--changelist_id="+specs.PLACEHOLDER_ISSUE,
 				"--patchset_order="+specs.PLACEHOLDER_PATCHSET,
 				"--tryjob_id="+specs.PLACEHOLDER_BUILDBUCKET_BUILD_ID,
-				 // It is unclear why this is needed, but it helps resolve issues like
-				 // Middleman ...tests-runfiles failed: missing input file 'external/npm/node_modules/karma-chrome-launcher/...'
+				// It is unclear why this is needed, but it helps resolve issues like
+				// Middleman ...tests-runfiles failed: missing input file 'external/npm/node_modules/karma-chrome-launcher/...'
 				"--expunge_cache")
 			b.cipd(CIPD_PKGS_GOLDCTL)
 			break
diff --git a/infra/bots/tasks.json b/infra/bots/tasks.json
index 6880b62..cba457d 100755
--- a/infra/bots/tasks.json
+++ b/infra/bots/tasks.json
@@ -3349,7 +3349,9 @@
         "--workdir=.",
         "--bazel_arg=--config=for_linux_x64_with_rbe",
         "--bazel_arg=--jobs=100",
-        "--bazel_arg=--remote_download_minimal"
+        "--bazel_arg=--remote_download_minimal",
+        "--bazel_arg=--nobuild_runfile_manifests",
+        "--bazel_arg=--nobuild_runfile_links"
       ],
       "dimensions": [
         "cpu:x86-64-Haswell_GCE",
@@ -3391,7 +3393,9 @@
         "--workdir=.",
         "--bazel_arg=--config=for_linux_x64_with_rbe",
         "--bazel_arg=--jobs=100",
-        "--bazel_arg=--remote_download_minimal"
+        "--bazel_arg=--remote_download_minimal",
+        "--bazel_arg=--nobuild_runfile_manifests",
+        "--bazel_arg=--nobuild_runfile_links"
       ],
       "dimensions": [
         "cpu:x86-64-Haswell_GCE",
@@ -3433,7 +3437,9 @@
         "--workdir=.",
         "--bazel_arg=--config=for_linux_x64_with_rbe",
         "--bazel_arg=--jobs=100",
-        "--bazel_arg=--remote_download_minimal"
+        "--bazel_arg=--remote_download_minimal",
+        "--bazel_arg=--nobuild_runfile_manifests",
+        "--bazel_arg=--nobuild_runfile_links"
       ],
       "dimensions": [
         "cpu:x86-64-Haswell_GCE",
@@ -3475,7 +3481,9 @@
         "--workdir=.",
         "--bazel_arg=--config=for_linux_x64_with_rbe",
         "--bazel_arg=--jobs=100",
-        "--bazel_arg=--remote_download_minimal"
+        "--bazel_arg=--remote_download_minimal",
+        "--bazel_arg=--nobuild_runfile_manifests",
+        "--bazel_arg=--nobuild_runfile_links"
       ],
       "dimensions": [
         "cpu:x86-64-Haswell_GCE",
@@ -3517,7 +3525,9 @@
         "--workdir=.",
         "--bazel_arg=--config=for_linux_x64_with_rbe",
         "--bazel_arg=--jobs=100",
-        "--bazel_arg=--remote_download_minimal"
+        "--bazel_arg=--remote_download_minimal",
+        "--bazel_arg=--nobuild_runfile_manifests",
+        "--bazel_arg=--nobuild_runfile_links"
       ],
       "dimensions": [
         "cpu:x86-64-Haswell_GCE",
@@ -3559,7 +3569,9 @@
         "--workdir=.",
         "--bazel_arg=--config=for_linux_x64_with_rbe",
         "--bazel_arg=--jobs=100",
-        "--bazel_arg=--remote_download_minimal"
+        "--bazel_arg=--remote_download_minimal",
+        "--bazel_arg=--nobuild_runfile_manifests",
+        "--bazel_arg=--nobuild_runfile_links"
       ],
       "dimensions": [
         "cpu:x86-64-Haswell_GCE",