feat: PGO changes for github actions

This commit is contained in:
Alex Kontos
2024-08-08 10:20:23 +01:00
parent f3f286cbe1
commit 0dcefccb1a
2 changed files with 15 additions and 9 deletions

View File

@@ -1267,14 +1267,14 @@ BrowserGlue.prototype = {
let { BackgroundUpdate } = ChromeUtils.importESModule(
"resource://gre/modules/BackgroundUpdate.sys.mjs"
);
try {
await BackgroundUpdate.scheduleFirefoxMessagingSystemTargetingSnapshotting();
} catch (e) {
console.error(
"There was an error scheduling Firefox Messaging System targeting snapshotting: ",
e
);
}
// try {
// await BackgroundUpdate.scheduleFirefoxMessagingSystemTargetingSnapshotting();
// } catch (e) {
// console.error(
// "There was an error scheduling Firefox Messaging System targeting snapshotting: ",
// e
// );
// }
await BackgroundUpdate.maybeScheduleBackgroundUpdateTask();
}
},

View File

@@ -7,6 +7,7 @@
import glob
import json
import os
import socket
import subprocess
import sys
@@ -18,7 +19,12 @@ from mozprofile import FirefoxProfile, Preferences
from mozprofile.permissions import ServerLocations
from mozrunner import CLI, FirefoxRunner
PORT = 8888
def find_free_port():
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind(('', 0))
return s.getsockname()[1]
PORT = find_free_port()
PATH_MAPPINGS = {
"/webkit/PerformanceTests": "third_party/webkit/PerformanceTests",