Commit Graph

9 Commits

Author SHA1 Message Date
Aníbal Limón
0cbfc25eff scripts/tools/rrs_upstream_email.py: Update email body
Remove unavailable link to pkgupgrade info.
Change default contact person from Saul Wold to Anibal Limon.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-25 12:28:00 +00:00
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
c2dc59357a scripts/tools/rrs_upgrade_history.py: Fix branch deletion
Add try/catch to branch deletion because at initial loop the branch
don't exist.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-02-17 10:46:16 +00:00
Aníbal Limón
8d2223c7f2 rrs: RecipeDetail view fix
scripts/tools/rrs_upgrade_history.py: For initial import of recipe
use NoMaintainer by default.
rrs/views.py: Now is necessary to test if a RecipeMaintainer exists by
milestone to avoid errors for undefined variables.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-29 14:46:15 -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
0e79557e26 scripts/tools/rrs_*: Add tool scripts for rrs.
rrs_create_milestone.py: Helps in Milestone creation.

rrs_upgrade_history.py: Recreates upgrade history from recipes, this
should be run at initial installation.

rrs_upstream_email.py: Send Upstream report to mailing list, this
report contains information about recipes that need upgrade.

requirements.txt: Add tabulate module that is needed by
rrs_upstream_email.py.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-01-08 12:43:35 -06:00
Aníbal Limón
60fd912b44 layerindex: Reorder code in order to use in the Recipe reporting system
For use the same code base for Recipe reporting system moves non-WEB
code outside layerindex, create lib directory that contains common code
for Layerindex and RRS.

Create scripts directory that contains common infraestructure to populate
db and tool scripts, modularize update.py script move Layerindex update
to own folder.

Update references for utils and recipeparse modules to point lib directory.

Add missing GitPython into requirements.txt.

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