Project

General

Profile

Actions

Bug #20909

closed

PySDK tests.test_keep_client.KeepDiskCacheTestCase.test_disk_cache_cap fails on Debian 12 with a "real" $TMPDIR filesystem

Added by Brett Smith over 1 year ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Tests
Target version:
Story points:
0.5
Release relationship:
Auto

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.


Files

pip-freeze.log (1000 Bytes) pip-freeze.log Brett Smith, 02/13/2025 09:52 PM
apt-installed.log (88.1 KB) apt-installed.log Brett Smith, 02/13/2025 09:52 PM

Subtasks 1 (0 open1 closed)

Task #22584: Review 20909-keep-disk-cache-test-mtimeResolvedTom Clegg02/14/2025Actions
Actions

Also available in: Atom PDF