threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

capnp and nacl tests fail [development_fixes103] #482

Closed Dinaamagdy closed 4 years ago

Dinaamagdy commented 4 years ago

JSX> j.data.capnp.test()

Wed 29 08:36:51 delBaseCollection.py -  73 - __init__                           : EXCEPTION: 
    AttributeError("'group_j__data' object has no attribute 'kvs'",)
--TRACEBACK------------------
<stdin> in <module>
    1    
/sandbox/lib/jumpscale/Jumpscale/data/capnp/Capnp.py in test
    270    collection = self.getModelCollection(schema, category="test", modelBaseClass=None, db=mydb)
/sandbox/lib/jumpscale/Jumpscale/data/capnp/Capnp.py in getModelCollection
    101    schema=schema, category=category, namespace=namespace, db=db, indexDb=indexDb, modelBaseClass=modelBaseClass
/sandbox/lib/jumpscale/Jumpscale/data/capnp/ModelBaseCollection.py in __init__
    73    self._db = db if db else j.data.kvs.getMemoryStore(name=self.namespace, namespace=self.namespace)
-----------------------------

'group_j__data' object has no attribute 'kvs'
JSX>  

JSX> j.data.nacl.test()

Wed 29 13:40:23 /nacl/NACLFactory.py - 260 - test                               : EXCEPTION: 
    TypeError("copyDirTree() missing 1 required positional argument: 'dst'",)
--TRACEBACK------------------
<stdin> in <module>
    1    
/sandbox/lib/jumpscale/Jumpscale/data/nacl/NACLFactory.py in test
    260    "/sandbox/cfg/keys/default", j.core.tools.text_replace("/sandbox/cfg/keys/default_backup")
-----------------------------

copyDirTree() missing 1 required positional argument: 'dst'
serboctor commented 4 years ago

Fixed by https://github.com/threefoldtech/jumpscaleX_core/commit/81fd1addb83c54cf9ee86cda5d2be6f59ba18950, https://github.com/threefoldtech/jumpscaleX_core/commit/e92935972c924fae7e45a299c3b1d9f3fa212010, and https://github.com/threefoldtech/jumpscaleX_libs/commit/4f957978474d6536ba2fddf82437e224fe7c8dd9 all on branch development_fixes103

serboctor commented 4 years ago

and https://github.com/threefoldtech/jumpscaleX_core/commit/a6527b1100f4fe3de64215d32ab09809a5491528

Dinaamagdy commented 4 years ago

verified on development_fixes103 on jumpscalex_lib and jumpscalex_core

Dinaamagdy commented 4 years ago

j.data.capnp.test() issue appear again after merge in unstable branch

serboctor commented 4 years ago

Fixed again on unstable https://github.com/threefoldtech/jumpscaleX_core/commit/44a5e668a424feaba6c3cc9b5c988cd7a3dee609

hossnys commented 4 years ago

verified on branch unstable nacl

3BOTDEVEL:3bot:jumpscaleX_core: kosmos
JSX> j.data.nacl.test()                                                        
sending incremental file list
created directory /sandbox/cfg/keys/default_backup
./
key.priv

sent 255 bytes  received 93 bytes  696.00 bytes/sec
total size is 144  speedup is 0.41
sending incremental file list
./
key.priv

sent 255 bytes  received 38 bytes  586.00 bytes/sec
total size is 144  speedup is 0.49
TEST OK

Capnp

JSX>  
JSX> j.data.capnp.test()            
TEST OK
JSX>