Bug 7442

Summary: The 'run again' button does not pick up tasks when specified
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Ed Bartosh <eduard.bartosh>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Low CC: alexandru.costinx.roman, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, eduard.bartosh, elliot.smith, jessica.zhang
Version: unspecified   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2015-03-10 16:17:29 UTC
The 'run again' buttons in the all builds page and the project page always run do_build. 

If you have a build where you have specified a different task (for example, core-image-minimal:clean), when you click the 'run again' button the build executes do_build instead of do_clean.
Comment 1 Ed Bartosh 2015-05-05 13:56:43 UTC
Should be fixed by this https://lists.yoctoproject.org/pipermail/toaster/2015-May/002071.html
Comment 2 Ed Bartosh 2015-05-20 09:30:57 UTC
Fix for the projects page has been accepted:
http://cgit.openembedded.org/bitbake/commit/?id=420b197227394b341bcc1075bc298ecf2aabec46

Fixing the same issue in /builds: https://lists.yoctoproject.org/pipermail/toaster/2015-May/002171.html

Please, review and test.
Comment 3 Ed Bartosh 2015-06-01 08:05:35 UTC
Fix for the /build has been merged into master: http://cgit.openembedded.org/bitbake/commit/?id=ae6349a13f11b6fa90fe5603b000bef14ee0f2f0&h=master
Comment 4 Alexandru Roman 2015-08-31 13:02:39 UTC
I've tested on commit: 22afc047dd1b8f83e56c4a9862710776c509e3c5, OS: Fedora 22 and the 'run again' button in the all builds page always run do_build task so i reopened the bug.
Comment 5 Ed Bartosh 2015-09-17 10:40:24 UTC
From the first look my fix was replaced by June code refactoring: http://cgit.openembedded.org/bitbake/commit/?id=44f37394ed3e4ca02f940be172fe4395b0ee0f7d

I'll try to revert my changes back.
Comment 6 Ed Bartosh 2015-09-22 08:15:22 UTC
Fix has been sent for review: https://lists.yoctoproject.org/pipermail/toaster/2015-September/002765.html
Comment 7 Elliot Smith 2015-09-22 09:36:20 UTC
Submitted upstream to bitbake-devel.
Comment 9 Alexandru Roman 2015-09-24 08:16:21 UTC
Verified on master: 9f66aa1a11b5b45280aa41bf4517ec56ee5f2ab2