aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-12-19upgradehelper.py: do not include absolute paths in the generated tarballAlexander Kanavin
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2017-12-19Add protection measures and information against running with existing build ↵Alexander Kanavin
directories. This should help e.g. with the following issue: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7174 Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2017-12-19Add support for compiling against non-default C librariesAlexander Kanavin
Particularly, musl is a notorious source of failures and so it's very useful to do at least one build against it by default. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2017-12-19weeklyjob.sh: set up a temporary branch and clean up afterwardsAlexander Kanavin
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2017-12-15upgradehelper.py: replace the confusing 'maintainer' command line optionAlexander Kanavin
It wasn't clear what the option does, and why it need to be on the command line, so the replacement is a 'global_maintainer_override' config file setting which does the same thing, in a cleaner fashion. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2017-12-15upgradehelper.py: drop automatic modeAlexander Kanavin
No longer used since migration to devtool: all upgrades are automatic Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2017-12-15upgradehelper.py: don't build gcc-runtime when --skip-compilationRobert Yang
It doesn't make any sense to build it when skip compile. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15upgradehelper.py: print info when recipe is skipped to upgradeRobert Yang
This makes debug easier. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15upgradehelper.py: always do upgrade when recipes are specifiedRobert Yang
For example, first run: $ upgradehelper.py less -d 5 It did the upgrade Second run: $ upgradehelper.py less -d 5 DEBUG: Skipping upgrade of less: is in history and not 30 days passed Let it always do the upgrade makes it easier to use when do upgrade locally. It will still do the check when the recipe is all. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15upgradehelper.py: only check email settings when -e is specifiedRobert Yang
Fixed: $ upgradehelper.py less ERROR: smtp host not set! Sending emails disabled! ERROR: 'From' address not set! Sending emails disabled! Only check email settings when "-e" is specified can fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15modules/steps.py: fix warn when skip compilationRobert Yang
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15upgradehelper.py: use UniverseUpdater for all casesRobert Yang
* Use UniverseUpdater() for the following 3 cases: + Upgrade all recipes + Upgrade 1 recipe - '--maintainer' is not a must when any more when use --send-emails, the maintainer be got from distrodata. + Upgrade multiple recipes * Use "args" as the parameter of UniverseUpdater() and Updater(), this can make the parameters simple, and easy for extending. * Make upgrade "all" recipes respect the args, it didn't care --send-emails or --maintainer which would suprise the user. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15upgradehelper.py: support upgrade multiple recipesRobert Yang
Now we can use: $ upgradehelper.py recipe1 recipe2 Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-15upgradehelper.py: fix checking for do_checkpkgRobert Yang
The error message in the log is: Initialising tasks...ERROR: Task do_checkpkg does not exist for target strace [snip] So line.find("ERROR: Task do_checkpkg does not exist") == 0 doesn't work, use != -1 to fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-12-14upgradehelper.py: revert commits that failed to buildAlexander Kanavin
This helps avoid 'cascading build failures' where one failed update holds up everything else. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14upgradehelper.py: when recovering from upgrade error, do not refer to a dict ↵Alexander Kanavin
entry that may not exist Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14upgradehelper.py: when attempting to commit changes do not discard previous ↵Alexander Kanavin
errors Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14upgradehelper.py: add all changes before committing themAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14upgradehelper.py: send email even if recipe upgrade failedAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14upgradehelper.py: fixups to the email message templateAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14testimage.py: add extra logging for the testimage logs retrievalAlexander Kanavin
This helped with diagnozing issues described in https://bugzilla.yoctoproject.org/show_bug.cgi?id=12396 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14testimage.py: do not call into removed codeAlexander Kanavin
This was using the removed recipe parsing code to determine if a package supports ptest; it should be replaced with using bitbake API but for now we can simply add all update packages to the list. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14utils/git.py: print current dir when git failsAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14upgradehelper.py: remove the package ordering codeAlexander Kanavin
It was broken and commented out, and not really necessary. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14modules/recipe: removeAlexander Kanavin
The hand-crafted recipe updating/rewriting has been replaced by calling devtool. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14Replace references to Aníbal Limón as the maintainer.Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14testimage.py: do not manipulate branchesAlexander Kanavin
AUH simply creates a series of commits now, so we can create and run testimage directly on the branch we're on. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14buildhistory.py: replace cleanall with cleansstateAlexander Kanavin
It should not be really necessary, and wastes time as the upstream source needs to be re-fetched. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-14Add devtool support for upgrading recipesAlexander Kanavin
devtool has a much better support for rebasing patches, can be used interactively when things go wrong, and we also need to avoid having two codebases for updating recipes that broadly do the same thing. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-12-13upgradehelper.py: add the old recipe version in pkg_ctxAlexander Kanavin
So that it can be later used in the commit message. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-11-30upgradehelper.py: support updates to a new vcs revision.Alexander Kanavin
Devtool has support for this, and it's useful when the upstream never issues new versions; in this situation we can simply attempt to update to the latest revision. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-11-30upgradehelper.py: do not manipulate git branches.Alexander Kanavin
Let's just write the commits into the current branch, and leave branch management to some other tool. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-11-28upgradehelper.py: always run checkpkgAlexander Kanavin
There was code to skip upstream version check if it was performed recently, which was actually broken as it didn't verify that checkpkg.csv already contains the package we want to update. Let's just drop the whole logic and run checkpkg always. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-11-28upgradehelper.py: do not error out if testimage or buildhistory are enabled ↵Alexander Kanavin
in bitbake conf, but not in AUH conf Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
2017-06-05upgradehelper.py: Layer mode do a full cleanup of pokyAníbal Limón
When is executing in normal mode the poky respository may be leaves on uncleaned state, so clean it. Signed: Aníbal Limón <anibal.limon@linux.intel.com>
2017-05-18upgradehelper.py: Add _get_recipes_by_layer methodAníbal Limón
When the layer mode is enabled and the upgradehelper is run with all, there is a need to discover what recipes are provides the layer to only try to upgrade those. [YOCTO #8962] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-05-18upgradehelper.py: Add layer name to upgrade email subjectAníbal Limón
[YOCTO #8962] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-05-18upgradehelper.py: Add support for sync layer masterAníbal Limón
[YOCTO #8962] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-05-18upgradehelper.py: Add ability to run UniverseUpdater over certain recipesAníbal Limón
[YOCTO #8962] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-05-18README: Update with the new layer settings.Aníbal Limón
[YOCTO #8962] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-05-18upgradehelper.py: Add support to load layer settingsAníbal Limón
Those settings are to support layer recipe upgrades runs into the AUH. [YOCTO #8962] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2017-04-27recipe/base.py: Disable do_package error handlingAníbal Limón
This handler looks for files not shipped but currently isn't working causing a infinite recursion loop. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-12-05AUH: status email indicates the URL of the log folderEdwin Plauchu
Upgrade status email should indicate the URL of the log folder instead of the tar URL [YOCTO #10670] Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@linux.intel.com>
2016-11-02recipes/base: Avoid infinite recursion in do_package failure handleAníbal Limón
If do_package fails and isn't files not shipped related don't try to execute again the compile step because will cause infinite recursion. Now raise a new exception for PackageError. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-30testimage.py: When patch fail to apply add ability to abort git amv1.0Aníbal Limón
In certain cases a patch could be fail to apply at level of integration for do a testimage, so if a patch fails to apply add the ability to abort git am session and mark the package as integration error. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-30modules/testimage.py: Delete unused variable error_msg.Aníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-20upgradehelper.py: Disable _order_pkgs_to_upgrade functionalityAníbal Limón
The _order_pkgs_to_upgrade function order a set of packages to be upgraded based on bitbake dependency graph, currently _order_pkgs_to_upgrade is broken so disable it while fix. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-20upgradehelper.py: Move build of gcc runtime after discover packagesAníbal Limón
If no packages are found to upgrade, it didn't make sense to build gcc runtime before is only a waste of time. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-20Small fixes to use with Python3.Aníbal Limón
[YOCTO #9747] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-01-13steps.py: Adds {pack,unpack}_original_workdir.Aníbal Limón
The original workdir directory is needed for make diff's for example when license change [1], in order to avoid deletion of original workdir when recipe is upgraded. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> [1] https://lists.yoctoproject.org/pipermail/yocto/2016-January/028025.html