couchbase-lite-C icon indicating copy to clipboard operation
couchbase-lite-C copied to clipboard

Tests failing on HEAD? Linux, Ubuntu 20.04, WSL

Open acarrillo opened this issue 4 years ago • 11 comments

Hello couchbase!

I am new to couchdb and couchbase lite. I am evaluating replacing my company's sqlite3 backend for a distributed application I own with couchbase lite. For fun, I followed the Linux build instructions laid out in the README; I passed compilation but cannot run tests successfully.

To make matters interesting, I am a Windows 10 WSL user (version 2), which is 'running' an Ubuntu 20.04 distribution. I wouldn't be surprised at all if my test failures are related to my build environment, but at any rate I would love to start a conversation about it.

Here's a pastebin with my test results: https://pastebin.com/2bfLJM43

HEAD commit: b83e34c4936e1c4f64e39ef22df10e7e1d4b3195

Test invocation:

./CBL_C_Tests -r list | tee test_results.log

Would appreciate any insights. Thanks!

acarrillo avatar Oct 13 '21 21:10 acarrillo

The only insight to offer is that this is a known issue in our test suite (and probably in the library itself) and that one day we hope to have it fixed. Sorry for the anticlimactic answer. The C product has yet to have its first GA release.

Also small point, we are not CouchDB, that is another project all together in the Apache Foundation :)

borrrden avatar Oct 13 '21 21:10 borrrden

I'm linking this to the existing ticket CBL-2147

borrrden avatar Oct 13 '21 21:10 borrrden

Thank you @borrrden for your rapid response! 🚨 🙏

we are not CouchDB

Aha got it! OK, stupid question, are you like, compatible with the CouchDB project? Asking for a friend...

acarrillo avatar Oct 13 '21 22:10 acarrillo

OK wow I am educating myself via https://www.educba.com/couchbase-vs-couchdb/ and yeah I have no idea where I am 😄

Feel free to tell me anything you'd like about why I would be poking in one project or the other; they do seem like totally orthogonal frameworks. Right? Does your project have its own open source server and sync gateway implementation?

acarrillo avatar Oct 13 '21 22:10 acarrillo

CouchDB and Couchbase Server are in the same business space. They are both server side NoSQL implementations but that is where the similarities end. The latter started out based on the former about a decade ago but quickly diverged. The former has no mobile solution (i.e. the product you are attempting to build at the moment), and obviously the latter has Couchbase Lite (which you filed this issue on).

borrrden avatar Oct 13 '21 22:10 borrrden

Thanks borrrden! Alright, I will continue on this evaluation path (Couchbase Server <> Couchbase Lite). Looking forward to continued discussions, and good luck with your GA release for the C product; at least in my corner of the world (aerospace and robotics) it is definitely going to be in much demand!

acarrillo avatar Oct 13 '21 22:10 acarrillo

For as long as I have a stake in the release of the couchbase lite C/C++ product, I am happy to serve as a feature or environment tester, just let me know.

acarrillo avatar Oct 13 '21 22:10 acarrillo

Since couchbase-lite-C is not GA released yet...does it distress you that I would try to use the product as-is in production? For example, I have a custom embedded busybox / buildroot platform setup, and I would be integrating couchbase lite into my cross-compiled toolchain and application. Probably pinned on some HEAD of master unless you suggest a better tag.

acarrillo avatar Oct 13 '21 22:10 acarrillo

A commercial application to be clear. I do dig the Apache licensing that I saw in the root of the repo.

acarrillo avatar Oct 13 '21 23:10 acarrillo

@acarrillo Glad to see your interest in CBL-C product. We should have a beta in the near future that you can start evaluating (will keep you posted when that available). There will be pre-packaged builds available for various flavors of Debian among others.

There are some upcoming licensing changes that you should be aware of - As far as building CBL-C from source for custom hardware, you can do that for non-commercial applications . For commercial applications, while the C API is Apache licensed, it links with our Lite Core Engine which is BSL licensed. That would prevent you from developing commercial apps using CBL from source.

These licensing changes will be clarified when we go GA with our product.

Would pre-packaged binaries be a viable option for you?

rajagp avatar Oct 14 '21 14:10 rajagp

@acarrillo Do you have a response to the above? The 3.0.0 GA is now out.

borrrden avatar Mar 22 '22 00:03 borrrden

Closed as no activity.

pasin avatar Oct 27 '22 16:10 pasin