Age | Commit message (Collapse) | Author |
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
In order to avoid random errors of uncleaned repository.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
in email.
[YOCTO #8120]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
[YOCTO #8390]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Buildhistory class isn't implemented so removed related code.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Add point of contact for any problem into email footer.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
|
|
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>
|