Merge lp://qastaging/~xavi-garcia-mena/keeper/helper-finished-state-removed-and-restore-choices-commented into lp://qastaging/keeper/devel

Proposed by Xavi Garcia
Status: Merged
Approved by: Xavi Garcia
Approved revision: 104
Merge reported by: Xavi Garcia
Merged at revision: not available
Proposed branch: lp://qastaging/~xavi-garcia-mena/keeper/helper-finished-state-removed-and-restore-choices-commented
Merge into: lp://qastaging/keeper/devel
Diff against target: 303 lines (+80/-31)
8 files modified
include/helper/backup-helper.h (+2/-0)
include/helper/helper.h (+4/-1)
src/helper/backup-helper.cpp (+20/-10)
src/helper/helper.cpp (+42/-4)
src/service/keeper-task.cpp (+0/-4)
src/service/restore-choices.cpp (+6/-1)
src/service/task-manager.cpp (+1/-1)
tests/integration/helpers/helpers-test.cc (+5/-10)
To merge this branch: bzr merge lp://qastaging/~xavi-garcia-mena/keeper/helper-finished-state-removed-and-restore-choices-commented
Reviewer Review Type Date Requested Status
Xavi Garcia (community) Approve
Charles Kerr (community) Needs Information
unity-api-1-bot continuous-integration Approve
Review via email: mp+305489@code.qastaging.launchpad.net

Commit message

This branch removes the HELPER_FINISHED state and comments out some restore-choices code as it blocks keeper-service.

Description of the change

This branch removes the HELPER_FINISHED state and comments out some restore-choices code as it blocks keeper-service.

I've removed the HELPER_FINISHED state as it was really not a helper state. It was just an event that moved the helper to several states, but in fact the helper was never in the HELPER_FINISHED state.

That was a problem because we were moving to a new state inside the set_state code, which for the final states as FAILED or COMPLETE is an issue as we move to another task and remove the current one.

What I did is to add new virtual methods in the Helper class so when the helper starts or finishes we can do whatever we need to do in the backup helper.

To post a comment you must log in.
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

I've added a couple of inline comments.

Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :

PASSED: Continuous integration, rev:104
https://jenkins.canonical.com/unity-api-1/job/lp-keeper-ci/55/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build/597
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-0-fetch/603
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=vivid+overlay/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=vivid+overlay/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=yakkety/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=yakkety/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=vivid+overlay/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=vivid+overlay/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=yakkety/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=yakkety/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=vivid+overlay/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=vivid+overlay/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/427/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=yakkety/427
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=yakkety/427/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/unity-api-1/job/lp-keeper-ci/55/rebuild

review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

LGTM. One question inline

review: Needs Information
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

Thanks for the review, Charles.

Answered inline

Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

I'm going to approve and merge this.
I need to make an extra branch to test on the phone...

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: