aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-12-01recipe/git.py: Add missing import of re module.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25statistics: Add support for publish_work_url setting.Aníbal Limón
Publish setting helps to point the url where the AUH patches and logs are saved, this url is included into AUH upgrade status email. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25statistics: Improve email format and get_summary method.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper: Add workdir setting.Aníbal Limón
The workdir setting is useful for store the AUH generated patches into another directory than $BULDDIR/upgrade-helper/work this will be used to publish AUH work. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper.py: Changed retry failure build to 30 days.Aníbal Limón
When build fails is stored into history fail that enables to don't try to build again in a period of time, so change that period to 30 days since the work patches will be publish in web server. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper: Add testimage feature.Aníbal Limón
Testimage module implements usage of testimage class, a integration branch is created with succesful recipe upgrades and then the next tests are run for every machine configured, - ptest: Recipes that support ptest are run and retrive the result after upgrade. - sato: Runs core-image-sato -c testimage. The results are stored into recipe work directory and send to the maintainer. [YOCTO #7471] [YOCTO #7567] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper.py: Add settings for enable testimage.Aníbal Limón
Testimage feature will provide the ability to run testimage class over a set of succesful upgrades. Also it will run ptest on recipes that support ptest and retrive the result for store/send to maintainer. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25utils/git.py: Add method for apply patches into a branch.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25steps.py: Move clean_repo to first step.Aníbal Limón
In order to avoid random errors of uncleaned repository. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25steps.py: Merge load_dirs step into load_env.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25recipe/base.py: Add support for get recipe inherits.Aníbal Limón
Recipe inherits are needed to detect what recipes support certain feature. For example: For detect ptest enable recipes and then do ptest runtime test after succesful upgrade. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25recipe/base.py: Add modify_recipe_files function decoratorAníbal Limón
Remove duplicate code adding modify_recipe_files decorator, this function interate over recipe_dir and found bb and includes files to make modifications. Modifications to recipe bb and include files are made by function passed to modify_recipe_files. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25recipe/base.py: Add is_recipe_or_include_file funcAníbal Limón
Instead of have duplicate code add this new function for make code easy to read. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25buildhistory: Add option for enable in upgrade-helper.confAníbal Limón
Make consistent the enablement for this feature it need to be explicit enable into upgrade-helper.conf and also needs configuration in local.conf. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper: Reorder files into directories.Aníbal Limón
Reorder files into modules directory to provide a better source tree. Changed was made for update the import lines and include modules directory into search path. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper.py: Adds own module for stepsAníbal Limón
Isolate steps into own module in order to provide better structure of the code. In order to do that the step interfaces was defined to, step(bb, git, opts, pkg_ctx) - bb: Bitbake helper instance. - git: Git helper instance. - opts: Upgrade helper options. - pkg_ctx: Package context per upgrade, it stores all information related to one upgrade. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper.py: Merge options into a dictionaryAníbal Limón
Use one dictionary to keep together the options this enables possibility to define an interface for steps, see next commit. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25{upgradehelper, bitbake}.py: Move _get_env function to bitbakeAníbal Limón
Remove unnecesary access function (_get_env) to environment move logic to build dictionary to bitbake env method. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-25upgradehelper.py: Add seconds to work directory creationAníbal Limón
To support run upgradehelper many times per minute some examples are when are using it in development process. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-13upgradehelper.py: Add message description about removed upstream patchesAníbal Limón
in email. [YOCTO #8120] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-12upgradehelper.py: Add support for preserve emails.Aníbal Limón
This support is useful for review purposes after upgrade process and these emails are saved into recipe work directory. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11upgradehelper.py: Fix indent due to previous commit.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11upgradehelper.py: Only send email to Maintainer when upgrade succeed.Aníbal Limón
Change the policy for send emails to only send when upgrade succeed to avoid waste time of the Maintainers when upgrade process fails because the failure patch generated isn't useful. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11requirements.txt: Add file for now only with GitPythonAníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11upgradehelper.py: Add support for preserve statistics into work directory.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11upgradehelper.py: Add support for do recipe upgrades based on builddepAníbal Limón
Now upgradehelper runs recipe upgrades based on build dependencies, the dependency information is taken of bitbake dependency graph. So if recipe a depends in build time on recipe b and c these recipes b and c are first tried to upgrade then a. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11upgradehelper.py: Improve work directory structureAníbal Limón
Add work directory with datetime suffix to preserve recipe upgrades. Create tree folders all, succeed and failed, all - Contains all the recipes work succeed - Contains a symlinks to the recipes that successful upgrade failed - Contains a symlinks to the recipes that fail upgrade This helps to navigate over patches that have a successful upgrade. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11buildhistory.py: Add missing warning import. git.py: Fix last_commit method.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11upgradehelper.py: Add sanity test for ensure that git is configured.Aníbal Limón
[YOCTO #8390] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11buildhistory.py: Don't modify BB_ENV_EXTRAWHITE before init.Aníbal Limón
Move code for add BUILDHISTORY_DIR to __init__ method because it fails when import in early step. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-11-11recipe.py: Improvements and refactor of fetch method.Aníbal Limón
Make more clear fetch method changing recursive manner to loop and split logic into try fetch and suffix change. Now when fails only retry changing recipe suffix when recipe isn't git based because does not make sense suffixes in SCM's. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-10-26upgradehelper.py: Fix bug when buildhistory isn't enabledAníbal Limón
Don't use buildhistory object if buildhistory_enabled is False because cause undefined variable error. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-10-26upgradehelper.py: Add step for build gcc-runtime at init.Aníbal Limón
When try to upgrade a recipe the first recipe in the list takes too much time because gcc-runtime build is needed. So add previous step to build gcc-runtime for every machine. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-10-06README: Upgrade instructions with changes done in 1.9.Aníbal Limón
Add section zero for point that needs Yocto dependencies also git configured. Add description about the buildhistory output if upgrade succeed. Remove mode usage for upgrade two recipes in automatic now is deprecated the available modes are automatic for all recipes and manual for one. [YOCTO #7439] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-10-06upgradehelper.py: Display error when git commit fails.Aníbal Limón
Don't hide error if git commit fails this helps to debug git problems. Git commit fail if isn't configured with user name and email. [YOCTO #8390] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper: Add support for generate buildhistory recipe diff'sAníbal Limón
Now AUH generates buildhistory diff when recipe was upgraded successfully. For enable this feature set into local.conf. INHERIT += "buildhistory" BUILDHISTORY_COMMIT = "1" Summary of the changes, - bitbake.py: Enable environment generation without recipe, removes Buildhistory class. - buildhistory.py: Add buildhistory class that generates initial buildhistory revision and keeps track of build revisions for generate diff when build is successful. - upgradehelper.py: Add buildhistory steps for upgrade, add support for detect when buildhistory is enabled loading the environment without recipe. [YOCTO #7175] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: Move upstream versioning code to UniverseUpdaterAníbal Limón
Reorder code related to upstream versioning detection no makes sense to have in Updater because only in UniverseUpdater is used. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: Remove unused references to Buildhistory classAníbal Limón
Buildhistory class isn't implemented so removed related code. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03bitbake.py: Rename bitbake_log.txt to bitbake_error_logAníbal Limón
Bitbake log only is written when error appears, rename it to be consistent with information into the log. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: UniverseUpdate don't abort if recipe checkpkg fails.Aníbal Limón
When try to detect upstream version of recipes if one fails don't abort all the execution. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: step _detect_repo clarify why don't load gitAníbal Limón
Add comment to clarify why don't load git when is already instanced the reason is the UniverseUpdater use poky git repository root instead of per recipe directory. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: Add own step for loading environmentAníbal Limón
Instead of load environment in detecting git repository use own function making easy to debug. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03bitbake.py: Improve performance on env() callAníbal Limón
When AUH load recipe enviroment use bitbake -e call and parses the output using regex VAR=VALUE. For improve performance discard all the comments on cmd output adding a output_filter using grep. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: Only send emails when patch file existAníbal Limón
Remove old decision of send email based on error because only makes sense to send email when patch file was created. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: Validate if upgrade is neededAníbal Limón
When run upgradehelper only with one recipe upgrade needed validation isn't did. [YOCTO #7947] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-08-03upgradehelper.py: Only run with one recipe or all.Aníbal Limón
When try to upgrading a recipe is an interactive process it needs specify the version to upgrade, for simplify the upgrade process only support one recipe at time. Now supported modes: Batch mode for upgrade universe recipes to upstream version detected, $ ./upgradehelper.py all Interactive mode for upgrade one recipe to user provided version, $ ./upgradehelper.py recipe --to_version VERSION Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-22Add support to send copy of the patch to status_recipents.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-22upgradehelper.py: Add AUH maintainer into email footer.Aníbal Limón
Add point of contact for any problem into email footer. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-17README: Edit Maintainece section to add current maintainer.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2015-06-17upgradehelper.py: Change print to logger info.Aníbal Limón
Print sentences need to be displayed as information in the logger this unifies logger facilities. [YOCTO #7489] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>