./mach test-info fails with "KeyError: u'platform'"

RESOLVED FIXED in Firefox 68

Status

defect
RESOLVED FIXED
Last year
3 months ago

People

(Reporter: tjr, Assigned: gbrown)

Tracking

(Blocks 1 bug)

3 Branch
mozilla68
Dependency tree / graph

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(1 attachment)

./mach test-info browser/components/translation/test/browser_translation_bing.js                                                  
===== browser/components/translation/test/browser_translation_bing.js =====
Found browser/components/translation/test/browser_translation_bing.js in source control.
browser/components/translation/test/browser_translation_bing.js found in manifest browser/components/translation/test/browser.ini
  flavor: browser-chrome
Querying ActiveData...
Found records matching 'browser/components/translation/test/browser_translation_bing.js' in ActiveData.

Test results for browser/components/translation/test/browser_translation_bing.js on mozilla-central,mozilla-inbound,autoland between 2018-03-07 and 2018-03-14
Error running mach:

    ['test-info', 'browser/components/translation/test/browser_translation_bing.js']

The error occurred in the implementation of the invoked mach command.

This should never occur and is likely a bug in the implementation of that
command. Consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

KeyError: u'platform'

  File "/home/tom/Documents/moz/mozilla-unified-fuzz-followup/testing/mach_commands.py", line 619, in test_info
    self.report_test_results()
  File "/home/tom/Documents/moz/mozilla-unified-fuzz-followup/testing/mach_commands.py", line 815, in report_test_results
    data.sort(key=self.get_platform)
  File "/home/tom/Documents/moz/mozilla-unified-fuzz-followup/testing/mach_commands.py", line 762, in get_platform
    platform = record['build']['platform']
Version: Version 3 → 3 Branch

I see the same error for all sorts of tests.

Assignee: nobody → gbrown
Type: enhancement → defect
Summary: ./mach test-info fails for a browser-chrome test → ./mach test-info fails with "KeyError: u'platform'"

The format of platform and type data seems to have evolved over time; these
changes seem to handle the new formats well.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2705cdbf8f77
Fix 'mach test-info' platform handling; r=jmaher
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.