Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test cases in pysdk_test.py failed. #5503

Open
zhoucheng361 opened this issue Jan 3, 2025 · 0 comments
Open

test cases in pysdk_test.py failed. #5503

zhoucheng361 opened this issue Jan 3, 2025 · 0 comments
Labels
kind/bug Something isn't working

Comments

@zhoucheng361
Copy link
Contributor

What happened:

root@bench-01:~/juicefs/# git checkout test-pysdk
root@bench-01:~/juicefs/# make 
root@bench-01:~/juicefs/# make -C sdk/python libjfs.so
root@bench-01:~/juicefs/# ./juicefs format sqlite3://test.db test-volume --enable-acl --trash-days 0
root@bench-01:~/juicefs# META_URL=sqlite3://test.db  python3 .github/scripts/pysdk/pysdk_test.py
2025/01/03 19:52:15.310141 juicefs[1805511] <WARNING>: Deleting object will be disabled since max-deletes is 0 [[email protected]:61]
2025/01/03 19:52:15.310844 juicefs[1805511] <WARNING>: max-uploads should be greater than 0, set it to 1 [SelfCheck@cached_store.go:602]
2025/01/03 19:52:15.310885 juicefs[1805511] <WARNING>: verify-cache-checksum should be one of [none full shrink extend] [SelfCheck@cached_store.go:616]
2025/01/03 19:52:15.310926 juicefs[1805511] <WARNING>: No cache dir existed, use memory cache instead, cache size: 100 MiB [newCacheManager@disk_cache.go:1059]
.FFF...makedirs:  /test/dir1/dir2/dir3 --:  511 --:  18
makedirs:  /test/dir1/dir2/dir3/dir4 --:  511 --:  18
makedirs:  . --:  511 --:  18
Fmakedirs:  base/some_dir --:  511 --:  18
.EFF
======================================================================
ERROR: test_summary (__main__.SummaryTests.test_summary)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 167, in setUp
    v.mkdir(TESTFN + '/dir1')
  File "/root/juicefs/sdk/python/juicefs/juicefs/juicefs.py", line 221, in mkdir
    self.lib.jfs_mkdir(_tid(), self.h, _bin(path), c_uint16(mode&0o777), c_uint16(self.umask))
  File "/root/juicefs/sdk/python/juicefs/juicefs/juicefs.py", line 38, in check_error
    raise e
OSError: call jfs_mkdir failed: [Errno 17] File exists: (b'/test/dir1', c_ushort(511), c_ushort(18))

======================================================================
FAIL: test_chown_with_root (__main__.ChownFileTests.test_chown_with_root)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 127, in test_chown_with_root
    self.assertEqual(uid, uid_1)
AssertionError: 738347740 != 0

======================================================================
FAIL: test_fds (__main__.ExtendedAttributeTests.test_fds)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 291, in test_fds
    self._check_xattrs(getxattr, setxattr, removexattr, listxattr)
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 267, in _check_xattrs
    self._check_xattrs_str(str, *args, **kwargs)
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 237, in _check_xattrs_str
    with self.assertRaises(OSError) as cm:
AssertionError: OSError not raised

======================================================================
FAIL: test_simple (__main__.ExtendedAttributeTests.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 274, in test_simple
    self._check_xattrs(v.getxattr, v.setxattr, v.removexattr,
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 267, in _check_xattrs
    self._check_xattrs_str(str, *args, **kwargs)
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 237, in _check_xattrs_str
    with self.assertRaises(OSError) as cm:
AssertionError: OSError not raised

======================================================================
FAIL: test_makedir (__main__.MakedirTests.test_makedir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 85, in test_makedir
    self.assertRaises(OSError, v.makedirs, os.curdir)
AssertionError: OSError not raised by makedirs

======================================================================
FAIL: test_utime (__main__.UtimeTests.test_utime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 67, in test_utime
    self._test_utime(set_time)
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 61, in _test_utime
    self.assertEqual(st.st_atime, atime)
AssertionError: 1000 != 1.0

======================================================================
FAIL: test_utime_by_times (__main__.UtimeTests.test_utime_by_times)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 70, in test_utime_by_times
    self.test_utime()
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 67, in test_utime
    self._test_utime(set_time)
  File "/root/juicefs/.github/scripts/pysdk/pysdk_test.py", line 61, in _test_utime
    self.assertEqual(st.st_atime, atime)
AssertionError: 1000 != 1.0

----------------------------------------------------------------------
Ran 12 tests in 0.183s

FAILED (failures=6, errors=1)

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

  • JuiceFS version (use juicefs --version) or Hadoop Java SDK version:
  • Cloud provider or hardware configuration running JuiceFS:
  • OS (e.g cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Object storage (cloud provider and region, or self maintained):
  • Metadata engine info (version, cloud provider managed or self maintained):
  • Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage):
  • Others:
@zhoucheng361 zhoucheng361 added the kind/bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant