Project

General

Profile

Actions

Bug #20909

open

PySDK tests.test_keep_client.KeepDiskCacheTestCase.test_disk_cache_cap fails on Debian 12

Added by Brett Smith about 1 year ago. Updated 9 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Tests
Target version:
Story points:
0.5

Description

This test fails consistently on my Debian 12 system running Python 3.11 (from the Debian package) or Python 3.8 (built from source):

======================================================================
FAIL: test_disk_cache_cap (tests.test_keep_client.KeepDiskCacheTestCase.test_disk_cache_cap)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brett/Curii/arvados/sdk/python/.eggs/mock-3.0.5-py3.11.egg/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/brett/Curii/arvados/sdk/python/tests/test_keep_client.py", line 1700, in test_disk_cache_cap
    self.assertFalse(os.path.exists(os.path.join(self.disk_cache_dir, self.locator[0:3], self.locator+".keepcacheblock")))
AssertionError: True is not false

This might be specific to my system and a non-issue but looking at the test I'm skeptical. My first guess is that something is changing the ordering of things somewhere such that KeepBlockCache removes the more recent block, not the first one.

Actions #1

Updated by Brett Smith about 1 year ago

  • Subject changed from Failing PySDK test on Debian 12/Python 3.11 to Failing PySDK test on Debian 12

This test also fails even if you build your own Python 3.8 and run the tests with it.

Actions #2

Updated by Brett Smith about 1 year ago

  • Description updated (diff)
Actions #3

Updated by Peter Amstutz 9 months ago

  • Target version changed from To be scheduled to Future
Actions #4

Updated by Brett Smith 8 months ago

  • Subject changed from Failing PySDK test on Debian 12 to PySDK tests.test_keep_client.KeepDiskCacheTestCase fails on Debian 12
Actions #5

Updated by Brett Smith 8 months ago

  • Subject changed from PySDK tests.test_keep_client.KeepDiskCacheTestCase fails on Debian 12 to PySDK tests.test_keep_client.KeepDiskCacheTestCase.test_disk_cache_cap fails on Debian 12
Actions #6

Updated by Tom Clegg 4 months ago

The entire sdk/python test suite passes for me on debian 12, stock python 3.11.2. Also tried running this test 32x, and there were no failures.

Actions #7

Updated by Tom Clegg 9 days ago

On my new dev box, my new debian 12 VM with stock python 3.11.2 fails this test on 29 of 30 attempts.

Actions

Also available in: Atom PDF