Skip to content

Commit

Permalink
Mark test as flaky for all backends
Browse files Browse the repository at this point in the history
We only annotated the test for CQL as flaky, but
it's also flaky for other backends. contributor
@kptfh already commented on the issue that it's
also flaky for the Aerospike backend:
#1498 (comment)

and Natalia recently commented on Discord that the test is flaky for
in-memory.

So, we should just move the annotation to the test itself to be not
specific for any backend.
Since the test is copied to `JanusGraphCustomIdTest`, we also need the
annotation there (and this is also the place where Natalia hit the flaky
test).

Issue: #1498 (not fixed by this)

Signed-off-by: Florian Hockmann <[email protected]>
  • Loading branch information
FlorianHockmann committed Mar 12, 2024
1 parent d59d533 commit e955783
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package org.janusgraph.graphdb;

import com.google.common.base.Preconditions;
import io.github.artsok.RepeatedIfExceptionsTest;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.T;
Expand Down Expand Up @@ -300,7 +301,8 @@ public void testBasicIndexLookUp() {
* @throws ExecutionException
* @throws InterruptedException
*/
@Test
// flaky test: https://github.com/JanusGraph/janusgraph/issues/1498
@RepeatedIfExceptionsTest(repeats = 3)
public void testIndexUpdatesWithReindexAndRemove() throws ExecutionException, InterruptedException {
ModifiableConfiguration config = getModifiableConfiguration();
config.set(ALLOW_SETTING_VERTEX_ID, true, new String[0]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.common.collect.Iterators;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import io.github.artsok.RepeatedIfExceptionsTest;
import org.apache.commons.configuration2.MapConfiguration;
import org.apache.commons.lang.NotImplementedException;
import org.apache.tinkerpop.gremlin.process.traversal.P;
Expand Down Expand Up @@ -1939,7 +1940,8 @@ public void testVertexCentricIndexOrderingOnMetaPropertyWithCardinalityList() {
finishSchema();
}

@Test
// flaky test: https://github.com/JanusGraph/janusgraph/issues/1498
@RepeatedIfExceptionsTest(repeats = 3)
public void testIndexUpdatesWithReindexAndRemove() throws InterruptedException, ExecutionException {
clopen(option(LOG_SEND_DELAY, MANAGEMENT_LOG), Duration.ofMillis(0),
option(KCVSLog.LOG_READ_LAG_TIME, MANAGEMENT_LOG), Duration.ofMillis(50),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ public WriteConfiguration getConfiguration() {
return StorageSetup.addPermanentCache(cqlContainer.getConfiguration(getClass().getSimpleName()));
}

// flaky test: https://github.com/JanusGraph/janusgraph/issues/1498
@RepeatedIfExceptionsTest(repeats = 3)
@Override
public void testIndexUpdatesWithReindexAndRemove() throws InterruptedException, ExecutionException {
super.testIndexUpdatesWithReindexAndRemove();
}

// flaky test: https://github.com/JanusGraph/janusgraph/issues/1457
@ParameterizedRepeatedIfExceptionsTest(repeats = 3)
@ValueSource(booleans = {true, false})
Expand Down

1 comment on commit e955783

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: e955783 Previous: 1530f0a Ratio
org.janusgraph.JanusGraphSpeedBenchmark.basicAddAndDelete 13043.002308226021 ms/op 12385.880105942719 ms/op 1.05
org.janusgraph.GraphCentricQueryBenchmark.getVertices 913.3789156239355 ms/op 897.5208673932261 ms/op 1.02
org.janusgraph.MgmtOlapJobBenchmark.runClearIndex 216.8786450576087 ms/op 216.14179947499997 ms/op 1.00
org.janusgraph.MgmtOlapJobBenchmark.runReindex 340.7918861795238 ms/op 332.1309897483333 ms/op 1.03
org.janusgraph.JanusGraphSpeedBenchmark.basicCount 270.17377447281945 ms/op 215.02071580531708 ms/op 1.26
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 5107.405222360373 ms/op 4664.188207695399 ms/op 1.10
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingEmitRepeatSteps 17154.984298599047 ms/op 16352.527830474333 ms/op 1.05
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithSmallBatch 20536.482370799597 ms/op 19824.599960445456 ms/op 1.04
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.vertexCentricPropertiesFetching 55991.135050966666 ms/op 56201.26617166666 ms/op 1.00
org.janusgraph.CQLMultiQueryBenchmark.getAllElementsTraversedFromOuterVertex 8534.478078971051 ms/op 7906.645219600678 ms/op 1.08
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithDoubleUnion 369.76452596250914 ms/op 379.8377001964137 ms/op 0.97
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithUnlimitedBatch 4158.113598517781 ms/op 3886.8713759808343 ms/op 1.07
org.janusgraph.CQLMultiQueryBenchmark.getNames 8246.876067398402 ms/op 8135.59305787296 ms/op 1.01
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesThreePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 6155.950409453363 ms/op 5503.356218245031 ms/op 1.12
org.janusgraph.CQLMultiQueryBenchmark.getLabels 7385.602611796391 ms/op 7024.7527374147185 ms/op 1.05
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFilteredByAndStep 438.57769163593184 ms/op 427.17314494545025 ms/op 1.03
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFromMultiNestedRepeatStepStartingFromSingleVertex 12952.699506595294 ms/op 11926.323378581046 ms/op 1.09
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithCoalesceUsage 360.97912746081647 ms/op 361.90201198876565 ms/op 1.00
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 15467.010404725952 ms/op 13280.235397442804 ms/op 1.16
org.janusgraph.CQLMultiQueryBenchmark.getIdToOutVerticesProjection 242.3183861367277 ms/op 245.53304211034066 ms/op 0.99
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithUnlimitedBatch 14305.322654007716 ms/op 13693.67385197527 ms/op 1.04
org.janusgraph.CQLMultiQueryBenchmark.getNeighborNames 8430.95662272943 ms/op 8163.851328829417 ms/op 1.03
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingRepeatUntilSteps 9125.603335657694 ms/op 8777.982757626436 ms/op 1.04
org.janusgraph.CQLMultiQueryBenchmark.getAdjacentVerticesLocalCounts 8891.663027516115 ms/op 8487.195678565702 ms/op 1.05

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.