Data dir was acciedently point to /usr/share/checkbox/jobs/data

Bug #1202942 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Critical
Sylvain Pineau

Bug Description

For the SRU tests here in Taipei, it seems that the data directory was assigned to"/usr/share/checkbox/jobs/data", instead of "/usr/share/checkbox/data".

Therefore it cause many "No such file of directory" errors, for example, the output from bluetooth_test:

bluetooth_test: error: argument file: can't open '/usr/share/checkbox/jobs/data/images/JPEG_Color_Image_Ubuntu.jpg': [Errno 2] No such file or directory: '/usr/share/checkbox/jobs/data/images/JPEG_Color_Image_Ubuntu.jpg'

Tags: plainbox

Related branches

Changed in checkbox:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Sylvain Pineau (sylvain-pineau)
tags: added: plainbox
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

the new checkbox providers are the guilty ones:

    @property
    def CHECKBOX_SHARE(self):
        """
        Return the required value of CHECKBOX_SHARE environment variable.

        .. note::
            This variable is only required by one script.
            It would be nice to remove this later on.
        """
        return self.jobs_dir

it should be self._base_dir instead

Changed in checkbox:
importance: High → Critical
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Set to Critical as all jobs commands relying on CHECKBOX_SHARE are failing such as all local jobs:

E.g:

local.txt.in: cat $CHECKBOX_SHARE/jobs/optical.txt?(.in)

Daniel Manrique (roadmr)
Changed in checkbox:
status: In Progress → Fix Committed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

wow, thanks for the lighting fast quick fix!

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Can we get some unit tests to protect against this happening again?

Changed in checkbox:
status: Fix Committed → Fix Released
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.