1112 Commits

Author SHA1 Message Date
Markus Pilman
061c733a9c
Merge pull request #4405 from sfc-gh-anoyes/anoyes/cluster-for-java-test
anoyes/cluster-for-java-test
2021-03-02 10:22:21 -07:00
Andrew Noyes
e62cdbad3b Mention that tests share an fdb cluster 2021-03-02 16:31:58 +00:00
Evan Tschannen
346a4e3ecd Merge branch 'release-6.3'
# Conflicts:
#	fdbcli/fdbcli.actor.cpp
#	fdbrpc/LoadBalance.actor.h
#	fdbrpc/MultiInterface.h
#	fdbserver/ClusterController.actor.cpp
#	fdbserver/MasterProxyServer.actor.cpp
#	fdbserver/masterserver.actor.cpp
2021-03-01 18:52:06 -08:00
Andrew Noyes
18ee11e69a Use add_fdbclient_test for java integration tests
Also change add_fdbclient_test to run its subcommand with FDB_CLUSTER_FILE set
2021-03-02 01:54:17 +00:00
Scott Fines
3d1bb99d90
Merge pull request #4336 from scottfines/test_conversions
Converting existing tests to using Unit (where possible)
2021-02-24 14:21:51 -06:00
Scott Fines
0bf7f9cf63 New Unit and Integration Tests, and associated infrastructure.
First, this converts the java unit testing framework to junit 5.

Then we create some easy unit tests, move TupleTest logic into unit
tests, and move some other tests into ArrayUtilTests.

This also adds new cmake configuration to run junit and integration tests
through ctest.

There is a mechanism to write integration tests that depend on a running
fdb cluster by having those tests be skipped if they can't connect to a
database quickly. This should help to add those tests in CI, although
eventually we'll probably want to move this to throw an error instead
(once the CI build process clears out and we can guarantee a running
server during CI testing).

Converting to junit 5
2021-02-24 09:35:35 -06:00
Meng Xu
471a3489fb Resolve review comments and add trace fields to MasterRecoveryState 2021-02-17 14:44:14 -08:00
Scott Fines
2589c26907 Resolves 4323: make Junit tests run as separate ctest tests.
This adds the ability to run junit tests through ctest a little more
easily (no Suites required). It also adds a small amount of
documentation to explain to the average developer how to go about using
Junit effectively.
2021-02-12 15:34:04 -06:00
Meng Xu
9122be4d81 Add comments to HA code and loadBalance code 2021-02-10 13:51:36 -08:00
Chaoguang Lin
1ae883b150 Update to use C++ random generator 2021-02-09 19:06:13 -08:00
Chaoguang Lin
0f969f0f95 Initilize random seed in the snapshot c function unit test when generating UID 2021-02-09 16:05:37 -08:00
Chaoguang Lin
5b2c015747 fix indent 2021-02-09 01:45:43 -08:00
Chaoguang Lin
1d964e8c4a update unit test 2021-02-09 01:41:39 -08:00
Chaoguang Lin
90686a95a0 format code 2021-02-08 22:17:16 -08:00
Chaoguang Lin
7c1ef37bcb format code 2021-02-08 21:42:40 -08:00
Chaoguang Lin
61082e70e1 format code, add comments 2021-02-08 19:11:30 -08:00
Chaoguang Lin
e3c1530a15 format code 2021-02-08 18:56:12 -08:00
Chaoguang Lin
fd7b1f64d0 Remove IDE added header 2021-02-08 18:41:20 -08:00
Chaoguang Lin
cd54eae545 Update test and documentation 2021-02-05 15:30:43 -08:00
Chaoguang Lin
a85458dd1e Merge branch 'master' of github.com:apple/foundationdb into add-c-function-snapshot 2021-02-05 14:14:52 -08:00
Chaoguang Lin
97925de9d4 Update fdb_database_create_snapshot to take a UID as input 2021-02-05 14:14:38 -08:00
Andrew Noyes
961950f03a Add dependency to fdb_c 2021-02-05 03:37:52 +00:00
Andrew Noyes
75f8725392 Add test for using an external client 2021-02-05 01:24:45 +00:00
Vishesh Yadav
5b5dd0a0d4
Merge pull request #4204 from sfc-gh-ljoswiak/features/network-tracer
Add network option to set tracer in fdbclient
2021-01-27 20:00:49 -08:00
Chaoguang Lin
f9b38ab682 fix typo 2021-01-26 14:26:01 -08:00
Chaoguang Lin
cef53b2b40 clang-format 2021-01-26 12:06:40 -08:00
Chaoguang Lin
5f912f0deb Add snapshot c function 2021-01-26 11:53:35 -08:00
Andrew Noyes
564c70acb4
Merge branch 'master' into anoyes/modernize-use-override 2021-01-25 18:26:18 -08:00
Andrew Noyes
0ef44739ea Fix OPEN_FOR_IDE build in preparation for using clang-tidy 2021-01-26 02:04:11 +00:00
Lukas Joswiak
29c0e05ea6 Clarify naming of distributed tracing options 2021-01-22 17:30:33 -08:00
Chaoguang Lin
9b5fc3b638 Update code 2021-01-21 01:22:53 -08:00
Chaoguang Lin
116f034933 update var names 2021-01-21 01:11:40 -08:00
Chaoguang Lin
b4c91e65fe Remove unnecessary header, update var names 2021-01-21 01:03:27 -08:00
Chaoguang Lin
e075d5a036 clang-format 2021-01-21 00:59:25 -08:00
Chaoguang Lin
ef24acfc66 Add comments 2021-01-21 00:50:46 -08:00
Chaoguang Lin
9cd7c43a2c Add c function fdb_database_force_recovery_with_data_loss 2021-01-21 00:42:23 -08:00
Jingyu Zhou
b8ff724232
Merge pull request #4173 from sfc-gh-anoyes/anoyes/fdb-c89-test
Make sure that fdb_c.h is c90 compliant
2021-01-19 10:42:40 -08:00
Andrew Noyes
13afadfae4 Use c90 compatibility for clarity 2021-01-15 02:50:34 +00:00
Chaoguang Lin
8ce9bd4e8e Merge branch 'master' of github.com:apple/foundationdb into add-c-function-for-management-commands 2021-01-14 17:31:26 -08:00
Chaoguang Lin
d25b8664e7 clang-format, remove header added by IDE 2021-01-14 17:31:13 -08:00
Chaoguang Lin
a44fa7bfe6 Remove unnecessary rapidjson download 2021-01-14 17:17:12 -08:00
Chaoguang Lin
3fb056e9fe Revert "Let rapidjson as a module in cmake"
This reverts commit 5ffb280aadc4b5dcba9999a77d05642749d7df66.
2021-01-05 23:53:42 -08:00
Chaoguang Lin
5ffb280aad Let rapidjson as a module in cmake 2021-01-05 09:53:06 -08:00
Chaoguang Lin
be11ab7a3d Remove unnecessary depedency 2021-01-04 23:50:23 -08:00
Chaoguang Lin
70e4b88a04 Remove stdbool header 2021-01-03 22:54:56 -08:00
Chaoguang Lin
da7b65cd71 Change the interface back to return int64_t 2021-01-03 22:45:09 -08:00
Chaoguang Lin
d97782f6d5 Revert python bindings change 2021-01-03 17:27:25 -08:00
Chaoguang Lin
4ed5761d24 Revert java bindings change 2021-01-03 17:24:20 -08:00
Andrew Noyes
9b7c93ca86 Make sure that fdb_c.h is c89 compliant 2020-12-22 10:30:07 -08:00
Chaoguang Lin
3715cf50a2 merge conflict 2020-12-21 18:04:45 -08:00