Commit Graph

8 Commits

Author SHA1 Message Date
Aníbal Limón
b2419f2b85 rrs: Add exception handling to vercmp_string call
Improve robustness adding a exception handling when two versions
are compared because sometimes fails due to incompatible version
format.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-18 09:46:42 +00:00
Aníbal Limón
4b0995e0a7 rrs: Add script to migrate the Upstream info based on distrodata
reports

scripts/tools/rrs_upstream_history.py: Add script to migrate the
upstream info from distrodata reports.
scripts/rrs_update/recipe_upstream.py: Make vercmp_string function
public in order to import from rrs_upstream_history.
rrs/views.py: Now if a recipe have history but not upstream info
set to Unknown state.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 16:10:17 +00:00
Aníbal Limón
9f45d64201 scripts/rrs_update/recipe_upstream.py: Show traceback when except
getting upstream version.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-12 21:27:23 -06:00
Aníbal Limón
9119b5d777 rrs: Add support for Recipe maintainership history
Now can you get maintainers based on Milestones.

Feature changes,

	rrs/models.py: Add RecipeMaintainerHistory to store maintainer updates.
	rrs/admin.py: Add admin site for RecipeMaintainerHistory.
	scripts/tools/rrs_maintainer_history.py: Add script for update
	maintainership history.
	scripts/update.py: Drop maintainer update support use
	rrs_maintainer_history.py instead.

Adapt changes,

Now you need to specify RecipeMaintainerHistory to get RecipeMaintainer.

	rrs/views.py:
	scripts/tools/rrs_upstream_email.py:
	scripts/rrs_update/recipe_upgrade.py:

These set of changes are incompatible with the previous version you need
to do initial setup described in README.rrs.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-28 17:38:04 -06:00
Aníbal Limón
6b2b08456a rrs: Add support for store RecipeUpstreamHistory
To provide statistics about RecipeUpstream information based on
Milestones we need to store RecipeUpstreamHistory that contains when the
update script was executed.

rrs/admin.py: Add admin page for RecipeUpstreamHistory.
rrs/models.py: Add model for RecipeUpstreamHistory with helper functions
for get last and last by date range also add migration.
scripts/rrs_update/recipe_upstream.py: Add support in update.py for store
RecipeUpstreamHistory relation in RecipeUpstream.
scripts/tools/rrs_upstream_email.py: Update email script for take into
account RecipeUpstreamHistory get the last one for generate report.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-20 17:46:53 -06:00
Aníbal Limón
27c318542f scripts/rrs_update/__init__.py: Improve remove old recipes
Now if recipe have two differente versions there are compared using
bb.utils.vercmp_string in order to delete the old one.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-15 16:51:58 -06:00
Aníbal Limón
9a5de0e7ec scripts/rrs_update/recipe_upstream.py: Also create_recipe_upstream when
no_update_reason changes.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-14 11:02:28 -06:00
Aníbal Limón
1152195b9e scripts/update.py: Add support for rrs
conf/local.conf: Add meta-yocto includes for get distro information
(distro aliases, maintainers, upstream {regex, tracking}) needed by
rrs.

scripts/update.py: Add support for rrs, ability to download poky layer
and set BBPATH to support meta-yocto includes in bitbake.

scripts/rrs_update/*: Modules for update data needed by rrs, distros,
maintainers, upgrades and upstream.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 12:32:05 -06:00