Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Two leftover oven patches #183

Merged
merged 2 commits into from
Nov 10, 2016
Merged

Two leftover oven patches #183

merged 2 commits into from
Nov 10, 2016

Conversation

Villemoes
Copy link
Contributor

I left these out of the big parallel PR mostly because I had to draw a line somewhere.

@esben esben added this to the 6.3.0 milestone Nov 10, 2016
@@ -274,6 +277,7 @@ def wait(self, poll=False):
if self.result is not None:
# Something bad happened in start
self.cleanup_context()
self.func_end = oelite.util.now()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point of recording self.func_end here? It only seems to be used later on in the function, which will never be reached in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, probably a refactoring artifact. Moreover, there's no reason to store func_end in self, we can just use a local variable (like prefunc_start). Will push a fixed version.

Rasmus Villemoes added 2 commits November 10, 2016 14:29
All pre- and post-funcs run synchronously in the main oe process. Some
of these tend to be rather time-consuming, so it would be better if they
could be made into tasks of their own, or run as part of the main task
function, or just optimized to run faster. Otherwise, the oven risks
being underused for a long time (for example, some do_install script
finishes, and we go on to execute the associated postfuncs, which may
take > 30 seconds to complete - meanwhile, some do_compile task has
finished, but there's no way we'll notice before we're done with those
postfuncs).

Knowing which tasks' pre- and postfuncs take a long time is useful for
finding recipes (or maybe whole classes) that are worth optimizing.
There's just a tad too many digits in "native:bzip2_1.0.6:do_package
finished - 1.51460909843 s". Print all time deltas with "%.3f".
@esben esben merged commit 742aefd into oe-lite:master Nov 10, 2016
@Villemoes Villemoes deleted the ravi/oventweaks branch November 14, 2016 07:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants