| Summary: | devtool: upgrade: Being able to check for specified source revision is on the specified branch | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Rebecca Chang <rebecca.swee.fun.chang> |
| Component: | Scripts and Tools | Assignee: | Rebecca Chang <rebecca.swee.fun.chang> |
| Status: | VERIFIED FIXED | QA Contact: | yeoh ee peng <ee.peng.yeoh> |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | bluelightning, ee.peng.yeoh, rebecca.swee.fun.chang, ross.burton |
| Version: | unspecified | ||
| Target Milestone: | 2.4 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Rebecca Chang
2017-05-09 04:06:24 UTC
Submitted patch to mailing list http://lists.openembedded.org/pipermail/openembedded-core/2017-August/140931.html Patch accepted in upstream. OE-Core rev: 29ced7387a92aed17b7fe93b1654790a981734c1 Verify the fixes (reproduce the issue before verified the fixes) 1) Reproduce the issue successfully using origin/pyro Prepare the environment: First revert to origin/pyro branch in order to get the code base before Rebecca fixes. Then, prepared a github repo for the testing, where the dev1 branch contain commit f26a5d9e53524edc72b9f476a628c35eb82e497b which does not existing in master. Steps: a) Perform devtool add bbexample https://github.com/epyeoh/bbexample.git b) Perform devtool finish bbexample <local_layer_as_destination> c) Perform devtool upgrade --srcrev f26a5d9e53524edc72b9f476a628c35eb82e497b bbexample d) Perform bitbake bbexample and receive the error WARNING: bbexample-0.1+gitAUTOINC+f26a5d9e53-r0 do_fetch: Failed to fetch URL git://github.com/epyeoh/bbexample.git;protocol=https, attempting MIRRORS if available ERROR: bbexample-0.1+gitAUTOINC+f26a5d9e53-r0 do_fetch: Fetcher failure: Unable to find revision f26a5d9e53524edc72b9f476a628c35eb82e497b in branch master even from upstream ERROR: bbexample-0.1+gitAUTOINC+f26a5d9e53-r0 do_fetch: Fetcher failure for URL: 'git://github.com/epyeoh/bbexample.git;protocol=https'. Unable to fetch URL from any source. ERROR: bbexample-0.1+gitAUTOINC+f26a5d9e53-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /workdir/devtool_poky/poky/build/tmp/work/i586-poky-linux/bbexample/0.1+gitAUTOINC+f26a5d9e53-r0/temp/log.do_fetch.94803 ERROR: Task (/workdir/devtool_poky/poky/meta-yocto-bsp/recipes-bbexample/bbexample/bbexample_git.bb:do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 468 tasks of which 467 didn't need to be rerun and 1 failed. Verify the fixes 2) Verify the fixes from origin/master can upgrade recipe with srcrev exist only in dev1 branch. a) Checkout to origin/master branch to get the fixes from Rebecca b) Perform devtool upgrade --srcrev f26a5d9e53524edc72b9f476a628c35eb82e497b bbexample c) Verify that the SRC_URI generated contain the branch information SRC_URI = "git://github.com/epyeoh/bbexample.git;protocol=https;branch=dev" d) Verify that bitbake bbexample can build successfully Initialising tasks: 100% |###################################################################################################| Time: 0:00:00 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded. pokyuser@6b6751c55719:/workdir/devtool_poky/poky/build$ bitbake bbexample Loading cache: 100% |########################################################################################################| Time: 0:00:00 Loaded 1301 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.34.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "i586-poky-linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "2.3.2" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-poky meta-yocto-bsp = "pyro:717303e6fbcbbe181ad9645d762eb5a85d934523" Initialising tasks: 100% |###################################################################################################| Time: 0:00:00 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 481 tasks of which 480 didn't need to be rerun and all succeeded. Verify the fixes 2) Verify the fixes from origin/master can prompt user when try to upgrade recipe with srcrev exists on multiple branches (eg. dev2 & dev3) and srcrev deoes not exist in master branch. a) Verify that dev2 & dev3 branch from https://github.com/epyeoh/bbexample.git contain commit a1e995ea27eb2e800cee1fc7b37672116aee2305bbexample that does not exist in master. b) Checkout to origin/master branch to get the fixes from Rebecca c) Perform devtool upgrade --srcrev a1e995ea27eb2e800cee1fc7b37672116aee2305 bbexample d) Verify that devtool will prompt error message Initialising tasks: 100% |#################################################################################################| Time: 0:00:00 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded. ERROR: Revision a1e995ea27eb2e800cee1fc7b37672116aee2305 was found on multiple branches: dev2 dev3 Please provide the correct branch in the devtool command with "--srcbranch" or "-B" option. Verify the fixes
2) Verify the fixes from origin/master can upgrade recipe when provide the srcrev and srcbranch argument.
a) Checkout to origin/master branch to get the fixes from Rebecca
b) Perform devtool upgrade --srcrev a1e995ea27eb2e800cee1fc7b37672116aee2305 --srcbranch dev2 bbexample
c) Verify that the SRC_URI generated contain the branch information & srcrev is correct
SRC_URI = "git://github.com/epyeoh/bbexample.git;protocol=https;branch=dev2"
# Modify these as desired
PV = "0.1+git${SRCPV}"
SRCREV = "a1e995ea27eb2e800cee1fc7b37672116aee2305"
d) Verify bitbake bbexample can build successfully
pokyuser@6b6751c55719:/workdir/devtool_poky/poky/build$ bitbake bbexample
Loading cache: 100% |########################################################################################################| Time: 0:00:00
Loaded 1301 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################| Time: 0:00:00
Parsing of 832 .bb files complete (831 cached, 1 parsed). 1301 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "i586-poky-linux"
MACHINE = "qemux86"
DISTRO = "poky"
DISTRO_VERSION = "2.3.2"
TUNE_FEATURES = "m32 i586"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "pyro:717303e6fbcbbe181ad9645d762eb5a85d934523"
Initialising tasks: 100% |###################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 481 tasks of which 480 didn't need to be rerun and all succeeded.
Verified that the fixes had resolved the issue. Please refer to above verification log. |