purge dependency is weird

Bug #1467393 reported by Taihsiang Ho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
Low
Taihsiang Ho

Bug Description

Ubuntu 12.04.5
Linux 201302-12728 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================================-================================-================================================================================
ii checkbox 0.17.10+bzr2832+pkg77+legacy1~ub System testing application
ii checkbox-autostart-desktop 0.2+bzr3849+pkg3~ubuntu12.04.1 Automatic system testing for desktop systems
un checkbox-autostart-server <none> (no description available)
ii checkbox-ci-mailer 0.2+bzr3849+pkg3~ubuntu12.04.1 Automatic system testing CI loop
un checkbox-cli <none> (no description available)
ii checkbox-gui 0.34+bzr3843+pkg18~ubuntu12.04.1 QML based interface for system testing based on PlainBox.
ii checkbox-ng 0.20+bzr3843+pkg27~ubuntu12.04.1 PlainBox based test runner
ii checkbox-ng-service 0.20+bzr3843+pkg27~ubuntu12.04.1 CheckBox D-Bus service
ii checkbox-qt 0.13.10 QT4 interface for checkbox
ii plainbox-provider-checkbox 0.21+bzr3843+pkg25~ubuntu12.04.1 CheckBox provider for PlainBox
ii python3-checkbox 0.17.10+bzr2832+pkg77+legacy1~ub CheckBox python3 library
ii python3-checkbox-ng 0.20+bzr3843+pkg27~ubuntu12.04.1 PlainBox based test runner (Python 3 library)
ii python3-checkbox-support 0.20+bzr3843+pkg21~ubuntu12.04.1 collection of Python modules used by PlainBox providers

Steps to reproduce this bug:
case 1: sudo apt-get purge checkbox-autostart-desktop
case 2: sudo apt-get purge checkbox-autostart-desktop checkbox-autostart-server -y --force-yes

Expected result:
for case 1 -
only checkbox-autostart-desktop is going to be removed and purged.

for case 2 -
only checkbox-autostart-desktop and checkbox-autostart-server is going to be removed and purged.

Actual result:
for case 1 -
checkbox-autostart-server is going to be installed

for case 2 -
checkbox-ci-mailer is going to be removed as well.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For the emergency workaround [1], this patch only affects the desktop version.

For server, we will need to modify the file for upstart and systemd, as it does not have the X desktop (no autostart package)
But fortunately, this feature does not needed on servers, as we only run SRU on desktop systems here.

[1] https://code.launchpad.net/~taihsiangho/checkbox/checkbox-150622-rollback-autostart/+merge/262559

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Did you find a solution to this bug? If yes could you detail it in the bug report please?

Changed in checkbox:
status: New → Incomplete
assignee: nobody → Taihsiang Ho (taihsiangho)
affects: checkbox → checkbox-ng
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

AFAIK we don't have a real solution for this bug yet.

After some research, I noticed that this issue only happen when the checkbox-ci-mailer was installed.
If it's not, then everything works as expected.

Changed in checkbox-ng:
status: Incomplete → Confirmed
Po-Hsu Lin (cypressyew)
Changed in checkbox-ng:
importance: Undecided → Low
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Tested with both case 1 and 2, on a system with checkbox-ci-mailer and checkbox-autostart-desktop installed.

Case 1: sudo apt-get purge checkbox-autostart-desktop
It will try to retain the dependency, so the checkbox-autostart-server will be installed.

Case 2: sudo apt-get purge checkbox-autostart-desktop checkbox-autostart-server
This time it will try to remove the checkbox-autostart-desktop and the checkbox-ci-mailer package.

So from case 2, I think this issue does not exist anymore.

To this issue, we can simply ask it to purge these 2 autostart packages to get them removed. Although I think this is not what we want for CI, as we still need it for sending out notifications. Otherwise the following command in checkbox-ci-mailer.conf might fail: "exec /usr/bin/checkbox-ci-script.sh mailer"[1]. Maybe we can close this bug as Invalid or something else?

The dependency tree:
ubuntu@ubuntu:~$ apt-cache depends checkbox-ci-mailer
checkbox-ci-mailer
 |Depends: checkbox-autostart-server
  Depends: checkbox-autostart-desktop
  Depends: curl
  Depends: upstart

[1] http://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/view/head:/checkbox-ng/contrib/checkbox-ci-mailer.conf

Revision history for this message
Taihsiang Ho (tai271828) wrote :

For case 2 it is reasonable to me not to reserve checkbox-ci-mailer.
But for case1 I think we could simply remove the dependence.
I will update the deb file later to fix case 1.

Po-Hsu Lin (cypressyew)
Changed in checkbox-ng:
status: Confirmed → In Progress
Taihsiang Ho (tai271828)
Changed in checkbox-ng:
status: In Progress → Fix Released
Pierre Equoy (pieq)
Changed in checkbox-ng:
milestone: none → 0.26
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.