Closed Bug 1587715 Opened 5 years ago Closed 5 years ago

`TypeError: a float is required` after a successful build

Categories

(Firefox Build System :: Mach Core, defect, P3)

defect

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: glob, Assigned: chmanchester)

References

(Blocks 1 open bug)

Details

(Keywords: in-triage)

Attachments

(2 files)

Attached file build_resources.json

After a success build (Windows 10 VM, MozillaBuild 3.3, mozilla-central rev cad27f93a986) I see the following error:

To view resource usage of the build, run |mach resource-usage|.
70:52.46 We know it took a while, but your build finally finished successfully!
To take your build for a test drive, run: |mach run|
For more information on what to do now, see https://developer.mozilla.org/docs/Developer_Guide/So_You_Just_Built_Firefox
Error running mach:

    ['build']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

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

The details of the failure are as follows:

TypeError: a float is required

  File "c:\mozilla-source\mozilla-central\build/mach_bootstrap.py", line 301, in post_dispatch_handler
    command_attrs=command_attrs, paths=paths)
  File "c:\mozilla-source\mozilla-central\python/mozbuild\mozbuild\telemetry.py", line 292, in gather_telemetry
    'build_attrs': get_build_attrs(command_attrs),
  File "c:\mozilla-source\mozilla-central\python/mozbuild\mozbuild\telemetry.py", line 242, in get_build_attrs
    res['cpu_percent'] = int(round(usage['cpu_percent']))
Assignee: nobody → cmanchester
Priority: -- → P3
Pushed by cmanchester@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01028fb65d10
Fix TypeError when submitting build telemetry without cpu_percent present. r=dmajor
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.