Confirmed users
3,990
edits
m (Add $REVISION) |
m (Add piece of code which allows multiple platforms) |
||
| Line 144: | Line 144: | ||
#* You have to hard-link since archiver [http://mxr.mozilla.org/build/source/tools/buildfarm/utils/archiver_client.py#175 does not allow symlinks on Windows] | #* You have to hard-link since archiver [http://mxr.mozilla.org/build/source/tools/buildfarm/utils/archiver_client.py#175 does not allow symlinks on Windows] | ||
# Just before calling [http://hg.mozilla.org/mozilla-central/file/default/testing/mozharness/scripts/firefox_ui_updates.py#l104 super()] create a new sys.argv values [1] | # Just before calling [http://hg.mozilla.org/mozilla-central/file/default/testing/mozharness/scripts/firefox_ui_updates.py#l104 super()] create a new sys.argv values [1] | ||
# You can either test all 64-bit jobs or the 32-bit jobs with this logic [2] | |||
# after that you can push to try with this commit message (try: -b o -p android-x86 -u none -t none) | # after that you can push to try with this commit message (try: -b o -p android-x86 -u none -t none) | ||
#* The try message should contain at least one platform that would be triggered on buildbot, otherwise, we want be able to use BuildApi since the revision won't exist unless there is at least one platform to schedule | #* The try message should contain at least one platform that would be triggered on buildbot, otherwise, we want be able to use BuildApi since the revision won't exist unless there is at least one platform to schedule | ||
| Line 156: | Line 157: | ||
command = 'scripts/scripts/firefox_ui_updates.py --cfg generic_releng_config.py --cfg generic_releng_linux64.py --firefox-ui-branch mozilla-beta --update-verify-config mozBeta-firefox-linux64.cfg --tools-tag FIREFOX_40_0b6_RELEASE_RUNTIME --total-chunks 6 --this-chunk 1 --build-number 1' | command = 'scripts/scripts/firefox_ui_updates.py --cfg generic_releng_config.py --cfg generic_releng_linux64.py --firefox-ui-branch mozilla-beta --update-verify-config mozBeta-firefox-linux64.cfg --tools-tag FIREFOX_40_0b6_RELEASE_RUNTIME --total-chunks 6 --this-chunk 1 --build-number 1' | ||
sys.argv = command.split(' ') | sys.argv = command.split(' ') | ||
[2] | |||
from mozharness.base.script import platform_name | |||
ENABLE_BITS='64' | |||
# Ignore that for Linux 32 the key is linux64 and Windows 64-bit is win32 | |||
PLATFORM_FLAGS = { | |||
'32': { | |||
'linux': | |||
'--cfg releng_infra_configs/linux.py ' + \ | |||
'--update-verify-config mozBeta-firefox-linux.cfg', | |||
'linux64': '--help', | |||
'win32': | |||
'--cfg releng_infra_configs/win32.py ' + \ | |||
'--update-verify-config mozBeta-firefox-win32.cfg', | |||
}, | |||
'64': { | |||
'linux': '--help', | |||
'linux64': | |||
'--cfg releng_infra_configs/linux64.py ' + \ | |||
'--update-verify-config mozBeta-firefox-linux64.cfg', | |||
'macosx': | |||
'--cfg releng_infra_configs/macosx64.py ' + \ | |||
'--update-verify-config mozBeta-firefox-mac64.cfg' | |||
, | |||
'win32': | |||
'--cfg releng_infra_configs/win64.py ' + \ | |||
'--update-verify-config mozBeta-firefox-win64.cfg' | |||
, | |||
}, | |||
} | |||
== Selecting the right platform and the right command == | == Selecting the right platform and the right command == | ||