Bug 12805

Summary: [Test Case 1058] bitbake can use alternate download methods than git
Product: [Build System, Metadata & Runtime] BitBake Reporter: pankaj yadav <pankaj-y>
Component: bitbakeAssignee: Apoorv <apoorv.sangal>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: manish.das, poky.bs.watcher, poky.watcher, ross.burton
Version: 2.6   
Target Milestone: 2.6 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description pankaj yadav 2018-06-20 13:23:35 UTC
Test Case ID : https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1058

Please find the error logs as follows :

raj@refkit:~/2.6M1RC1/poky/NEWBUILD$ sudo chmod -x /usr/local/bin/oe-git-proxy
raj@refkit:~/2.6M1RC1/poky/NEWBUILD$   bitbake -c fetchall core-image-sato

Parsing recipes: 100% |#################################################################################################################################| Time: 0:03:21
Parsing of 798 .bb files complete (0 cached, 798 parsed). 1254 targets, 46 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.39.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.5+snapshot-20180620"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:ddbd7b0cd6580ee26e11aa87e426fb294b372d64"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.9/x86_64-nativesdk-libc.tar.bz2;sha256sum=c26622a1f27dbf5b25de986b11584b5c5b2f322d9eb367f705a744f58a5561ec
ERROR: Task do_fetchall does not exist for target core-image-sato (/home/raj/2.6M1RC1/poky/meta/recipes-sato/images/core-image-sato.bb:do_fetchall). Close matches:0:02
  do_fetch
ERROR: Command execution failed: 1

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
raj@refkit:~/2.6M1RC1/poky/NEWBUILD$
Comment 1 pankaj yadav 2018-06-21 08:20:28 UTC
While Regression, I am unable to see this issue with below mentioned cofiguration :
Branch: master
Build name: yocto-2.5_M1.rc1
poky commit: b73e96e7f3f5d1ba3a221d99792a7a3c7ef42c21  
Architecture : x86-64
Comment 2 Richard Purdie 2018-06-21 09:23:24 UTC
The fetchall task was removed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=daf59ef368c0a0ad74cbc881ab4933cc10f06e8c and the correct command would now be "bitbake core-image-sato --runall=fetch" so the test case needs updating.
Comment 3 Ross Burton 2018-06-21 16:19:15 UTC
This test case *really* needs to be automated.  I've just sent a patch to the list to do so.
Comment 4 pankaj yadav 2018-06-22 05:49:24 UTC
Test Case is getting passed with updated command "bitbake core-image-sato --runall=fetch".

Please help to close this bug.
Comment 5 Manish Das 2018-06-22 12:02:34 UTC
Re running the test case with "bitbake core-image-sato --runall=fetch" as suggested by Richard, resolved the issue.

The test case needs to be updated with this new command.
Comment 6 Ross Burton 2018-06-22 12:04:32 UTC
The test case needs to be marked as automated as 'oeqa: add Git mirror test' is scheduled to be merged into master this week, which automated the test.

Please remove this from the manual test case execution.