-
-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Linux and Windows build workflows to use architecture-specific…
… runners and add dynamic port allocation in profileserver.py
- Loading branch information
1 parent
6db0883
commit 4124a3c
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/build/pgo/profileserver.py b/build/pgo/profileserver.py | ||
index 31556cc9ae1a44a04e300083f7be4dc908cc3794..23ef1d8f5b30068ffdddc3c9cb6cd45e64d93071 100755 | ||
--- a/build/pgo/profileserver.py | ||
+++ b/build/pgo/profileserver.py | ||
@@ -18,7 +18,13 @@ from mozprofile import FirefoxProfile, Preferences | ||
from mozprofile.permissions import ServerLocations | ||
from mozrunner import CLI, FirefoxRunner | ||
|
||
-PORT = 8888 | ||
+import socket | ||
+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", |