Skip to content

Variable tracking: Cleaned up and less buggy

Peter Seebach bitbake-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3data_smart.py: Provide (optional) logging of variable modificationslib/bb/cooker.py lib/bb/data.py lib/bb/data_smart.py +1 more+152 -670 replies
2/3data_smart.py: Track configuration file inclusionslib/bb/data.py lib/bb/data_smart.py lib/bb/parse/__init__.py+59 -40 replies
3/3data_smart.py: Fix variable trackinglib/bb/data_smart.py lib/bb/parse/ast.py lib/bb/parse/parse_py/ConfHandler.py+57 -350 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Variable tracking: Cleaned up and less buggy

So, I finally got around to looking at a couple of "hmm, that looks funny" thoughts I had about the variable tracking, and went and cleaned things up. Appends were being reported twice in many cases, but also they were reporting ever-increasing stuff for large values; in my build tree, the output for BBCLASSEXTEND *alone* was 10MB. (!!)

So to summarize:

-rw-r--r-- 1 seebs seebs 11078986 2012-08-09 13:09 bitbake-e.prepatch
-rw-r--r-- 1 seebs seebs 635832 2012-08-09 15:02 bitbake-e.postpatch

Of these files, the second contains more actual information about how variables got set.

I've left the old patch alone and done this as a new patch. I could merge them, but I figure anyone who's been using the old patch would like to have a patch that can be applied on top of it. :)

The following changes since commit 23bd5300b4a99218a15f4f6b0ab4091d63a602a5:
Richard Purdie (1):
data_smart: Fix unanchored regexp causing strange parsing issue

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib seebs/ntracking
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=seebs/ntracking

Peter Seebach (3):
data_smart.py: Provide (optional) logging of variable modifications data_smart.py: Track configuration file inclusions data_smart.py: Fix variable tracking

 lib/bb/cooker.py                     |    2 +
 lib/bb/data.py                       |   65 ++++++++++---
 lib/bb/data_smart.py                 |  177 +++++++++++++++++++++++++++-------
 lib/bb/parse/__init__.py             |    6 +-
 lib/bb/parse/ast.py                  |   70 ++++++++------
 lib/bb/parse/parse_py/ConfHandler.py |    4 +-
 6 files changed, 243 insertions(+), 81 deletions(-)