Skip to content

Commit 3449738

Browse files
justinhorvitzpull[bot]
authored andcommitted
Don't call removeReverseDep on a non-incremental node entry in tests.
It's illegal. There must be some race in propagating the failure from the async thread since the test is only flakily failing since bazelbuild@20c541c (albeit at a very high rate). PiperOrigin-RevId: 556074380 Change-Id: I6c177d0346cb9849b5aa81c104ad9295548f5a84
1 parent 931019d commit 3449738

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/com/google/devtools/build/skyframe/GraphTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ public void testAddRemoveRdeps() throws Exception {
260260
waitForAddedRdep.countDown();
261261
waitForSetValue.await(TestUtils.WAIT_TIMEOUT_SECONDS, SECONDS);
262262
for (int k = chunkSize; k <= numIterations; k++) {
263-
entry.removeReverseDep(key("rdep" + j));
263+
if (shouldTestIncrementality()) {
264+
entry.removeReverseDep(key("rdep" + j));
265+
}
264266
entry.addReverseDepAndCheckIfDone(key("rdep" + j));
265267
if (shouldTestIncrementality()) {
266268
entry.getReverseDepsForDoneEntry();

0 commit comments

Comments
 (0)