commit 57d39164ab13ff3d7966a7f0d3299b19b6ba4690
parent d1d521eb320ef87ad916e54830b24adaf43c3903
Author: Tooru Fujisawa <arai_a@mac.com>
Date: Thu, 16 Oct 2025 11:58:16 +0000
Bug 1989240 - Part 1: Add searchfox job with linux64 opt build. r=releng-reviewers,taskgraph-reviewers,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D268529
Diffstat:
4 files changed, 82 insertions(+), 0 deletions(-)
diff --git a/browser/config/mozconfigs/linux64/opt-searchfox-clang b/browser/config/mozconfigs/linux64/opt-searchfox-clang
@@ -0,0 +1,12 @@
+MOZ_AUTOMATION_BUILD_SYMBOLS=0
+MOZ_AUTOMATION_CHECK=0
+
+. "$topsrcdir/build/unix/mozconfig.unix"
+
+# Add the static checker
+ac_add_options --enable-clang-plugin
+ac_add_options --enable-mozsearch-plugin
+
+. "$topsrcdir/build/unix/mozconfig.stdcxx"
+
+. "$topsrcdir/build/mozconfig.common.override"
diff --git a/taskcluster/gecko_taskgraph/target_tasks.py b/taskcluster/gecko_taskgraph/target_tasks.py
@@ -1095,6 +1095,7 @@ def target_tasks_searchfox(full_task_graph, parameters, graph_config):
insert_index(index_path, os.environ["TASK_ID"], use_proxy=True)
return [
+ "searchfox-linux64-searchfox/opt",
"searchfox-linux64-searchfox/debug",
"searchfox-macosx64-searchfox/debug",
"searchfox-macosx64-aarch64-searchfox/debug",
diff --git a/taskcluster/kinds/searchfox/kind.yml b/taskcluster/kinds/searchfox/kind.yml
@@ -37,6 +37,38 @@ task-defaults:
MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE: system
tasks:
+ linux64-searchfox/opt:
+ description: "Linux64 opt Searchfox"
+ index:
+ job-name: linux64-searchfox-opt
+ treeherder:
+ platform: linux64/opt
+ worker:
+ max-run-time: 10800
+ env:
+ PERFHERDER_EXTRA_OPTIONS: searchfox
+ MOZSEARCH_PLATFORM: "linux"
+ run:
+ using: mozharness
+ actions: [build]
+ config:
+ - builds/releng_base_firefox.py
+ - builds/releng_sub_linux_configs/64_searchfox_and_opt.py
+ script: "mozharness/scripts/fx_desktop_build.py"
+ tooltool-downloads: public
+ keep-artifacts: false
+ fetches:
+ toolchain:
+ - linux64-clang
+ - linux64-nasm
+ - linux64-node
+ - linux64-rust
+ - linux64-cbindgen
+ - linux64-dump_syms
+ - linux64-pkgconf
+ - sysroot-x86_64-linux-gnu
+ - sysroot-wasm32-wasi
+
linux64-searchfox/debug:
description: "Linux64 Debug Searchfox"
index:
diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_searchfox_and_opt.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_searchfox_and_opt.py
@@ -0,0 +1,37 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+import os
+
+config = {
+ # note: overridden by MOZHARNESS_ACTIONS in TaskCluster tasks
+ "default_actions": [
+ "clobber",
+ "build",
+ ],
+ "vcs_share_base": "/builds/hg-shared",
+ "upload_env": {
+ "UPLOAD_PATH": "/builds/worker/artifacts",
+ },
+ "env": {
+ "MOZBUILD_STATE_PATH": os.path.join(os.getcwd(), ".mozbuild"),
+ "DISPLAY": ":2",
+ "HG_SHARE_BASE_DIR": "/builds/hg-shared",
+ "MOZ_OBJDIR": "%(abs_obj_dir)s",
+ "TINDERBOX_OUTPUT": "1",
+ "TOOLTOOL_CACHE": "/builds/worker/tooltool-cache",
+ "TOOLTOOL_HOME": "/builds",
+ "MOZ_CRASHREPORTER_NO_REPORT": "1",
+ "LC_ALL": "C",
+ "PATH": "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin",
+ },
+ "mozconfig_variant": "opt-searchfox-clang",
+ #########################################################################
+ #########################################################################
+ ###### 64 bit specific ######
+ "platform": "linux64",
+ "stage_platform": "linux64-searchfox-opt",
+ # This doesn't actually inherit from anything.
+ "mozconfig_platform": "linux64",
+}