tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8196fe9e43dd688419b5beced56dd78a26d844b9
parent e5bb7184794a52602e9ec0e5d2667ed8f912c2c5
Author: Greg Mierzwinski <gmierz2@outlook.com>
Date:   Thu,  8 Jan 2026 13:45:45 +0000

Bug 2005568 - Output condprof artifacts to the upload dir in on-the-fly runs. r=perftest-reviewers,aglavic DONTBUILD

This patch changes the profile creator to produce the geckodriver logs in the MOZ_UPLOAD_DIR when it's being used for on-the-fly profile creations in CI.

Differential Revision: https://phabricator.services.mozilla.com/D276029

Diffstat:
Mtesting/condprofile/condprof/creator.py | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/testing/condprofile/condprof/creator.py b/testing/condprofile/condprof/creator.py @@ -68,7 +68,13 @@ class ProfileCreator: # Make a temporary directory for the logs if an # archive dir is not provided if not self.archive: - self.tmp_dir = tempfile.mkdtemp() + if os.environ.get("MOZ_UPLOAD_DIR"): + self.tmp_dir = os.path.join( + os.environ.get("MOZ_UPLOAD_DIR"), "condprof" + ) + os.makedirs(self.tmp_dir, exist_ok=True) + else: + self.tmp_dir = tempfile.mkdtemp() def _log_filename(self, name): filename = "%s-%s-%s.log" % (