| Summary: | Bitbake UI reports incorrect task elapsed time after suspend | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Michael Opdenacker <michael.opdenacker> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher, randy.macleod, ross.burton |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Michael Opdenacker
2023-01-25 08:41:22 UTC
I'm not entirely convinced this is a bug. I saw your patch changing the UI code to use time.monotonic() instead of time.time(). My worries include: a) in the code it is documented as "start time" which it no longer is b) whether we change all places where this is compared to monotonic? c) there is wide use of time.time() elsewhere in bitbake so we can no longer easily compare timestamps d) you can't really compare time.monotonic() between processes and we do have multiple processes involved in bitbake I'd think suspend to RAM in the middle of a build is a relatively rare case and I'm not sure we want to take the risk and complication from trying to change this. I mostly agree with RP. It would be nice for the durations to not include time asleep, but that would involve a wholescale review of every timestamp to understand if its a monotonic clock or wall clock. That's a non-trivial amount of effort for a very niche usecase, IMHO. Understood, no problem. I actually suspend my laptop every time I leave it (unless I have an urgent job to complete). This saves a lot a power! However, I agree this corresponds to a niche case and people are not likely to complain about this minor issue. I just hoped my patch only impacted the task duration in the UI, but you know better what the side effects may be. Don't hesitate to close it as "WON'T FIX". It seems I can't. As per discussion above. |