commit 76961e11653cfde17d2dd78a13e73150a1150c02
parent 02c06caf676a52508a1fadac7f20bf324a56290e
Author: Marco Bonardo <mbonardo@mozilla.com>
Date: Fri, 24 Oct 2025 12:37:05 +0000
Bug 1995785 - Perma failure in [tier 2] browser_ml_semantic_history_search_perf.js. r=cgopal
For now just fix the failure, the test must be switched to the new
static embeddings in Bug 1995866
Differential Revision: https://phabricator.services.mozilla.com/D269660
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/toolkit/components/ml/tests/browser/browser_ml_semantic_history_search_perf.js b/toolkit/components/ml/tests/browser/browser_ml_semantic_history_search_perf.js
@@ -230,6 +230,7 @@ async function prepareSemanticSearchTest({
let semanticManager = lazy.getPlacesSemanticHistoryManager(
{
+ backend: "onnx-native",
embeddingSize: 384,
rowLimit,
samplingAttrib: "frecency",
diff --git a/toolkit/components/places/PlacesSemanticHistoryManager.sys.mjs b/toolkit/components/places/PlacesSemanticHistoryManager.sys.mjs
@@ -601,7 +601,7 @@ class PlacesSemanticHistoryManager {
lazy.logger.error(`Error processing tensors: ${ex}`);
// If we failed generating tensors skip the addition, but proceed
// with removals below.
- rowsToAdd.clear();
+ rowsToAdd.length = 0;
}
}