Closed Bug 1362142 Opened 7 years ago Closed 7 years ago

Mozharness' platform_name() does not return win64 when running on 64-bit host

Categories

(Release Engineering :: Applications: MozharnessCore, enhancement)

enhancement
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
Tracking Status
firefox55 --- fixed

People

(Reporter: armenzg, Assigned: armenzg)

Details

Attachments

(1 file)

The code in particular is this:
https://hg.mozilla.org/mozilla-central/file/0b255199db9d/testing/mozharness/mozharness/base/script.py#l120

We currently use:
> '64' in platform.architecture()[0] # architecture() returns (bits, linkage)

Unfortunately, that is the Python binary byte size.
https://docs.python.org/2/library/platform.html
> platform.architecture(executable=sys.executable, bits='', linkage='')
> 
>    Queries the given executable (defaults to the Python interpreter binary)
>    for various architecture information.
> 
>    Returns a tuple (bits, linkage) which contain information about the bit
>    architecture and the linkage format used for the executable. 

Instead we should be using machine()
> platform.machine()¶
> 
>    Returns the machine type, e.g. 'i386'. An empty string is returned if the
>    value cannot be determined.

My sampling size:
* win10   - AMD64
* win7    - x86
* Linux64 - x86_64
* MacOSX  - x86_64
Comment on attachment 8864611 [details]
Bug 1362142 - Mozharness to distinguish Windows archictecture properly.

https://reviewboard.mozilla.org/r/136286/#review139374
Attachment #8864611 - Flags: review?(aki) → review+
Pushed by armenzg@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4e3aad47ea15
Mozharness to distinguish Windows archictecture properly. r=aki
https://hg.mozilla.org/mozilla-central/rev/4e3aad47ea15
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: