feat: PGO changes for github actions
This commit is contained in:
@@ -1267,14 +1267,14 @@ BrowserGlue.prototype = {
|
|||||||
let { BackgroundUpdate } = ChromeUtils.importESModule(
|
let { BackgroundUpdate } = ChromeUtils.importESModule(
|
||||||
"resource://gre/modules/BackgroundUpdate.sys.mjs"
|
"resource://gre/modules/BackgroundUpdate.sys.mjs"
|
||||||
);
|
);
|
||||||
try {
|
// try {
|
||||||
await BackgroundUpdate.scheduleFirefoxMessagingSystemTargetingSnapshotting();
|
// await BackgroundUpdate.scheduleFirefoxMessagingSystemTargetingSnapshotting();
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
console.error(
|
// console.error(
|
||||||
"There was an error scheduling Firefox Messaging System targeting snapshotting: ",
|
// "There was an error scheduling Firefox Messaging System targeting snapshotting: ",
|
||||||
e
|
// e
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
await BackgroundUpdate.maybeScheduleBackgroundUpdateTask();
|
await BackgroundUpdate.maybeScheduleBackgroundUpdateTask();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@@ -18,7 +19,12 @@ from mozprofile import FirefoxProfile, Preferences
|
|||||||
from mozprofile.permissions import ServerLocations
|
from mozprofile.permissions import ServerLocations
|
||||||
from mozrunner import CLI, FirefoxRunner
|
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 = {
|
PATH_MAPPINGS = {
|
||||||
"/webkit/PerformanceTests": "third_party/webkit/PerformanceTests",
|
"/webkit/PerformanceTests": "third_party/webkit/PerformanceTests",
|
||||||
|
|||||||
Reference in New Issue
Block a user