<classResult _class='hudson.tasks.junit.ClassResult'><child><age>1</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>68.871</duration><errorDetails>UnboundLocalError: cannot access local variable 'pix_id' where it is not associated with a value</errorDetails><errorStackTrace>self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a86d0&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove__pre_fs_pyramids0')
capsys = &lt;_pytest.capture.CaptureFixture object at 0x7fe957a43e10&gt;

    def test_remove__pre_fs_pyramids(self, tmpdir, capsys):
        """Test removepyramids for pre-fs data"""
&gt;       self.import_pyramid_pre_fs(tmpdir)

test/integration/clitest/test_pyramids.py:232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a86d0&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove__pre_fs_pyramids0')

    def import_pyramid_pre_fs(self, tmpdir):
        name = "test&amp;sizeX=4000&amp;sizeY=4000.fake"
        fakefile = tmpdir.join(name)
        fakefile.write('')
        pixels = self.import_image(filename=str(fakefile), skip="checksum")[0]
        id = int(float(pixels))
        # wait for the pyramid to be generated
        self.wait_for_pyramid(id)
        query_service = self.client.sf.getQueryService()
        pixels_service = self.client.sf.getPixelsService()
        orig_pix = query_service.findByQuery(
            "select p from Pixels p where p.id = :id",
            ParametersI().addId(id))
        orig_fs = query_service.findByQuery(
            "select f from Image i join i.fileset f where i.id = :id",
            ParametersI().addId(orig_pix.image.id.val))
    
        try:
            new_img = pixels_service.copyAndResizeImage(
                orig_pix.image.id.val, rint(4000), rint(4000), rint(1),
                rint(1), [0], None, True).val
            pix_id = unwrap(query_service.projection(
                "select p.id from Image i join i.pixels p where i.id = :id",
                ParametersI().addId(new_img)))[0][0]
            # This won't work but it but we then have a pyramid without fileset
            self.copyPixels(orig_pix, PixelsI(pix_id, False))
        except omero.InternalException:
            print("Cannot copy pixels for image %s" % orig_pix.image.id.val)
        finally:
            self.delete([orig_fs])
&gt;       return pix_id
               ^^^^^^
E       UnboundLocalError: cannot access local variable 'pix_id' where it is not associated with a value

test/integration/clitest/test_pyramids.py:127: UnboundLocalError</errorStackTrace><failedSince>29</failedSince><name>test_remove__pre_fs_pyramids</name><properties></properties><skipped>false</skipped><status>FAILED</status></child><child><age>1</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>188.357</duration><errorDetails>Failed: Timed out waiting for pyramid file 317_pyramid</errorDetails><errorStackTrace>self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a8c90&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove_pyramids0')
capsys = &lt;_pytest.capture.CaptureFixture object at 0x7fe957b3a350&gt;

    def test_remove_pyramids(self, tmpdir, capsys):
        """Test removepyramids with litlle endian true"""
        name = "big&amp;sizeX=3500&amp;sizeY=3500&amp;little=false.fake"
        big_id = self.import_pyramid(tmpdir, name=name, skip=None)
        query_service = self.client.sf.getQueryService()
    
        rows = unwrap(query_service.projection(
            "select p.id from Image i join i.pixels p where i.id = :id",
            ParametersI().addId(big_id)
        ))
        pixels_id = rows[0][0]
    
&gt;       self.wait_for_pyramid_file(pixels_id)

test/integration/clitest/test_pyramids.py:275: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a8c90&gt;
pixels_id = 317, timeout = 120

    def wait_for_pyramid_file(self, pixels_id, timeout=120):
        pixels_dir = (
            "/home/omero/workspace/"
            "OMERO-test-integration/data/Pixels"
        )
        expected = f"{pixels_id}_pyramid"
    
        deadline = time.time() + timeout
        while time.time() &lt; deadline:
            for root, _, files in os.walk(pixels_dir):
                if expected in files:
                    return
            time.sleep(1)
    
&gt;       pytest.fail(
            f"Timed out waiting for pyramid file {expected}"
        )
E       Failed: Timed out waiting for pyramid file 317_pyramid

test/integration/clitest/test_pyramids.py:156: Failed</errorStackTrace><failedSince>29</failedSince><name>test_remove_pyramids</name><properties></properties><skipped>false</skipped><status>FAILED</status></child><child><age>1</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>188.629</duration><errorDetails>Failed: Timed out waiting for pyramid file 316_pyramid</errorDetails><errorStackTrace>self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621ab690&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove_pyramids_big_endia0')
capsys = &lt;_pytest.capture.CaptureFixture object at 0x7fe957b9d550&gt;

    def test_remove_pyramids_big_endian(self, tmpdir, capsys):
        """Test removepyramids with big endian true"""
    
        name = "big&amp;sizeX=3500&amp;sizeY=3500&amp;little=false.fake"
        img_id = self.import_pyramid(tmpdir, name=name, skip=None)
    
        query_service = self.client.sf.getQueryService()
        image = query_service.findByQuery(
            "select i from Image i join fetch i.pixels p where i.id = :id",
            ParametersI().addId(img_id)
        )
    
        pixels_id = next(iter(image.copyPixels())).id.val
        # Wait for pyramid to actually be on disk
&gt;       self.wait_for_pyramid_file(pixels_id)

test/integration/clitest/test_pyramids.py:254: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621ab690&gt;
pixels_id = 316, timeout = 120

    def wait_for_pyramid_file(self, pixels_id, timeout=120):
        pixels_dir = (
            "/home/omero/workspace/"
            "OMERO-test-integration/data/Pixels"
        )
        expected = f"{pixels_id}_pyramid"
    
        deadline = time.time() + timeout
        while time.time() &lt; deadline:
            for root, _, files in os.walk(pixels_dir):
                if expected in files:
                    return
            time.sleep(1)
    
&gt;       pytest.fail(
            f"Timed out waiting for pyramid file {expected}"
        )
E       Failed: Timed out waiting for pyramid file 316_pyramid

test/integration/clitest/test_pyramids.py:156: Failed</errorStackTrace><failedSince>29</failedSince><name>test_remove_pyramids_big_endian</name><properties></properties><skipped>false</skipped><status>FAILED</status></child><child><age>1</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>69.115</duration><errorDetails>AssertionError: assert '5eb87159f8ecb29ae94909082c3288d338985bb2' != '5eb87159f8ecb29ae94909082c3288d338985bb2'</errorDetails><errorStackTrace>self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9621a8410&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove_pyramids_check_thu0')
capsys = &lt;_pytest.capture.CaptureFixture object at 0x7fe9577cff50&gt;

    def test_remove_pyramids_check_thumbnails(self, tmpdir, capsys):
        """Test check that the thumbnail is correctly created"""
        name = "big&amp;sizeX=3500&amp;sizeY=3500&amp;little=false.fake"
        img_id = self.import_pyramid(tmpdir, name=name, skip=None)
        query_service = self.client.sf.getQueryService()
        pix = query_service.findByQuery(
            "select p from Pixels p where p.image.id = :id",
            ParametersI().addId(img_id))
        tb = self.client.sf.createThumbnailStore()
        id = pix.id.val
        thumb_hash = None
        try:
            thumbs = tb.getThumbnailByLongestSideSet(rint(64), [id],
                                                     {'omero.group': '-1'})
            assert len(thumbs) == 1
            thumb_hash = self.calculate_sha1(thumbs[id])
            # remove the pyramid and the thumbnail
            self.args += ["--endian=big"]
            self.cli.invoke(self.args, strict=True)
            out, err = capsys.readouterr()
            thumbs = tb.getThumbnailByLongestSideSet(rint(64), [id],
                                                     {'omero.group': '-1'})
            assert len(thumbs) == 1
            # The clock should be returned during the pyramid generation
            digest = self.calculate_sha1(thumbs[id])
&gt;           assert digest != thumb_hash
E           AssertionError: assert '5eb87159f8ecb29ae94909082c3288d338985bb2' != '5eb87159f8ecb29ae94909082c3288d338985bb2'

test/integration/clitest/test_pyramids.py:319: AssertionError</errorStackTrace><failedSince>29</failedSince><name>test_remove_pyramids_check_thumbnails</name><properties></properties><skipped>false</skipped><status>FAILED</status></child><child><age>0</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>67.644</duration><failedSince>0</failedSince><name>test_remove_pyramids_imported_after_future</name><properties></properties><skipped>false</skipped><status>PASSED</status></child><child><age>0</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>68.305</duration><failedSince>0</failedSince><name>test_remove_pyramids_limit</name><properties></properties><skipped>false</skipped><status>PASSED</status></child><child><age>1</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>187.507</duration><errorDetails>Failed: Timed out waiting for pyramid file 311_pyramid</errorDetails><errorStackTrace>self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9620e0710&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove_pyramids_little_en0')
capsys = &lt;_pytest.capture.CaptureFixture object at 0x7fe9577adb10&gt;

    def test_remove_pyramids_little_endian(self, tmpdir, capsys):
        """Test removepyramids with little endian true"""
        img_id = self.import_pyramid(tmpdir)
    
        # Find the Pixels ID corresponding to the imported image
        query_service = self.client.sf.getQueryService()
        rows = unwrap(query_service.projection(
            "select p.id from Image i join i.pixels p where i.id = :id",
            ParametersI().addId(img_id)
        ))
        pixels_id = rows[0][0]
    
        # Wait until the pyramid actuall exists on disk
&gt;       self.wait_for_pyramid_file(pixels_id)

test/integration/clitest/test_pyramids.py:173: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = &lt;test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9620e0710&gt;
pixels_id = 311, timeout = 120

    def wait_for_pyramid_file(self, pixels_id, timeout=120):
        pixels_dir = (
            "/home/omero/workspace/"
            "OMERO-test-integration/data/Pixels"
        )
        expected = f"{pixels_id}_pyramid"
    
        deadline = time.time() + timeout
        while time.time() &lt; deadline:
            for root, _, files in os.walk(pixels_dir):
                if expected in files:
                    return
            time.sleep(1)
    
&gt;       pytest.fail(
            f"Timed out waiting for pyramid file {expected}"
        )
E       Failed: Timed out waiting for pyramid file 311_pyramid

test/integration/clitest/test_pyramids.py:156: Failed</errorStackTrace><failedSince>29</failedSince><name>test_remove_pyramids_little_endian</name><properties></properties><skipped>false</skipped><status>FAILED</status></child><child><age>30</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>0.0</duration><failedSince>0</failedSince><name>test_remove_pyramids_manual</name><properties></properties><skipped>true</skipped><skippedMessage>Run locally only</skippedMessage><status>SKIPPED</status></child><child><age>0</age><className>OmeroPy.test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin</className><duration>68.254</duration><failedSince>0</failedSince><name>test_remove_pyramids_not_valid_limit</name><properties></properties><skipped>false</skipped><status>PASSED</status></child><failCount>5</failCount><name>TestRemovePyramidsFullAdmin</name><passCount>3</passCount><skipCount>1</skipCount></classResult>