Merge pull request #5931 from sfc-gh-mpilman/features/all-unit-tests-in-ci

Make sure unit tests are run often enough
This commit is contained in:
Markus Pilman 2021-11-10 08:41:04 -07:00 committed by GitHub
commit a246c1555d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 63 additions and 11 deletions

View File

@ -809,7 +809,7 @@ TEST_CASE("/flow/flow/chooseTwoActor") {
return Void();
}
TEST_CASE("/flow/flow/perf/actor patterns") {
TEST_CASE("#flow/flow/perf/actor patterns") {
double start;
int N = 1000000;

View File

@ -2886,7 +2886,7 @@ struct DequeAllocator : std::allocator<T> {
}
};
TEST_CASE("/fdbserver/tlogserver/VersionMessagesOverheadFactor") {
TEST_CASE("Lfdbserver/tlogserver/VersionMessagesOverheadFactor") {
typedef std::pair<Version, LengthPrefixedStringRef> TestType; // type used by versionMessages

View File

@ -3374,7 +3374,7 @@ struct DequeAllocator : std::allocator<T> {
}
};
TEST_CASE("/fdbserver/tlogserver/VersionMessagesOverheadFactor") {
TEST_CASE("Lfdbserver/tlogserver/VersionMessagesOverheadFactor") {
typedef std::pair<Version, LengthPrefixedStringRef> TestType; // type used by versionMessages

View File

@ -3308,7 +3308,7 @@ JsonBuilderObject randomDocument(const std::vector<std::string>& strings, int& l
return r;
}
TEST_CASE("/status/json/builderPerf") {
TEST_CASE("Lstatus/json/builderPerf") {
std::vector<std::string> strings;
int c = 1000000;
printf("Generating random strings\n");

View File

@ -3453,7 +3453,7 @@ struct DequeAllocator : std::allocator<T> {
}
};
TEST_CASE("/fdbserver/tlogserver/VersionMessagesOverheadFactor") {
TEST_CASE("Lfdbserver/tlogserver/VersionMessagesOverheadFactor") {
typedef std::pair<Version, LengthPrefixedStringRef> TestType; // type used by versionMessages

View File

@ -8065,7 +8065,7 @@ TEST_CASE("/redwood/correctness/unit/RedwoodRecordRef") {
return Void();
}
TEST_CASE("/redwood/correctness/unit/deltaTree/RedwoodRecordRef") {
TEST_CASE("Lredwood/correctness/unit/deltaTree/RedwoodRecordRef") {
// Sanity check on delta tree node format
ASSERT(DeltaTree2<RedwoodRecordRef>::Node::headerSize(false) == 4);
ASSERT(DeltaTree2<RedwoodRecordRef>::Node::headerSize(true) == 8);
@ -8241,7 +8241,7 @@ TEST_CASE("/redwood/correctness/unit/deltaTree/RedwoodRecordRef") {
return Void();
}
TEST_CASE("/redwood/correctness/unit/deltaTree/RedwoodRecordRef2") {
TEST_CASE("Lredwood/correctness/unit/deltaTree/RedwoodRecordRef2") {
// Sanity check on delta tree node format
ASSERT(DeltaTree2<RedwoodRecordRef>::Node::headerSize(false) == 4);
ASSERT(DeltaTree2<RedwoodRecordRef>::Node::headerSize(true) == 8);
@ -8420,7 +8420,7 @@ TEST_CASE("/redwood/correctness/unit/deltaTree/RedwoodRecordRef2") {
return Void();
}
TEST_CASE("/redwood/correctness/unit/deltaTree/IntIntPair") {
TEST_CASE("Lredwood/correctness/unit/deltaTree/IntIntPair") {
const int N = 200;
IntIntPair lowerBound = { 0, 0 };
IntIntPair upperBound = { 1000, 1000 };
@ -9017,7 +9017,7 @@ TEST_CASE(":/redwood/pager/ArenaPage") {
return Void();
}
TEST_CASE("/redwood/correctness/btree") {
TEST_CASE("Lredwood/correctness/btree") {
g_redwoodMetricsActor = Void(); // Prevent trace event metrics from starting
g_redwoodMetrics.clear();

9
tests/PerfUnitTests.toml Normal file
View File

@ -0,0 +1,9 @@
[[test]]
testTitle = 'PerfUnitTests'
useDB = false
startDelay = 0
[[test.workload]]
testName = 'UnitTests'
#maxTestCases = 1
testsMatching = '#'

View File

@ -0,0 +1,9 @@
[[test]]
testTitle = 'UnitTests'
useDB = false
startDelay = 0
[[test.workload]]
testName = 'UnitTests'
#maxTestCases = 1
testsMatching = '/'

View File

@ -5,5 +5,5 @@ startDelay = 0
[[test.workload]]
testName = 'UnitTests'
maxTestCases = 0
testsMatching = '/redwood/correctness/btree'
maxTestCases = 1
testsMatching = 'Lredwood/correctness/btree'

View File

@ -0,0 +1,17 @@
[[test]]
testTitle = 'RedwoodDeltaTree'
useDB = false
startDelay = 0
[[test.workload]]
testName = 'UnitTests'
maxTestCases = 1
testsMatching = 'Lredwood/correctness/unit/deltaTree/IntIntPair'
[[test]]
testTitle = "RedwoodRecordRef"
[[test.workload]]
testName = 'UnitTests'
maxTestCases = 2 # there are two of those
testsMatching = 'Lredwood/correctness/unit/deltaTree/RedwoodRecordRef'

View File

@ -0,0 +1,9 @@
[[test]]
testTitle = 'StatusBuilderPerf'
useDB = false
startDelay = 0
[[test.workload]]
testName = 'UnitTests'
maxTestCases = 1
testsMatching = 'Lstatus/json/builderPerf'

View File

@ -0,0 +1,8 @@
[[test]]
testTitle = 'TLogVersionMessagesOverheadFactor'
useDB = false
startDelay = 0
[[test.workload]]
testName = 'UnitTests'
testsMatching = 'Lfdbserver/tlogserver/VersionMessagesOverheadFactor'