Skip to main content
Sign in
Snippets Groups Projects
Verified Commit 18ee3e22 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Bug 41045: Log more information about Firefox build times.

We could dump more information about the time it takes to build Firefox
to possibly improve our build strategies.
parent 93acf955
Branches
Tags
1 merge request!874Bug 41045, 41046 & 42337 (TB): Include Geckodriver and twaks to the build system
......@@ -161,6 +161,7 @@ mkdir "$HOME/.mozbuild"
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
echo "Starting ./mach configure $(date)"
./mach configure \
--with-distribution-id=org.torproject \
--with-base-browser-version=[% c("var/torbrowser_version") %] \
......@@ -168,12 +169,15 @@ export LANG=C.UTF-8
[% IF !c("var/base-browser") -%]--with-branding=browser/branding/[% c("var/branding_directory_prefix") %]-[% c("var/channel") %][% END %] \
[% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %]
echo "Starting ./mach build $(date)"
./mach build --verbose
[% IF c("var/has_l10n") -%]
echo "Starting to merge locales $(date)"
export MOZ_CHROME_MULTILOCALE="$supported_locales"
# No quotes on purpose, see https://firefox-source-docs.mozilla.org/build/buildsystem/locales.html#instructions-for-multi-locale-builds
./mach package-multi-locale --locales en-US $MOZ_CHROME_MULTILOCALE
AB_CD=multi ./mach build stage-package
echo "Locales merged $(date)"
[% ELSE -%]
./mach build stage-package
[% END -%]
......@@ -324,6 +328,8 @@ END;
[% END -%]
[% END -%]
echo "Starting to package artifacts $(date)"
[% c('tar', {
tar_src => [ browserdir ],
tar_args => '-caf ' _ dest_dir _ '/' _ c('filename') _ '/browser.tar.' _ c('compress_tar'),
......
......
......@@ -64,10 +64,13 @@ cp -rl $gradle_repo/maven2/* $gradle_repo || true
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
# Create .mozbuild to avoid interactive prompt in configure
mkdir "$HOME/.mozbuild"
echo "Starting ./mach configure $(date)"
./mach configure \
--with-base-browser-version=[% c("var/torbrowser_version") %] \
[% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %]
echo "Starting ./mach build $(date)"
./mach build --verbose
[% IF !c("var/android_single_arch") -%]
......@@ -85,6 +88,7 @@ export MOZ_SOURCE_REPO="[% c('var/gitlab_project') %]"
export MOZ_SOURCE_CHANGESET=[% c("var/git_commit") %]
MOZCONFIG_EOF
echo "Starting the creation of the fake fat AAR $(date)"
pushd tools/torbrowser
make fat-aar ARCHS="[% c('arch') %]"
popd
......@@ -93,6 +97,7 @@ MOZCONFIG_EOF
exoplayer2:publishDebugPublicationToMavenLocal
[% END -%]
echo "Starting to package artifacts $(date)"
cd $distdir
[% c('tar', {
tar_src => [ project ],
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment