Clear Skyframe compute state when a node is restarted due to a lost dep and add a regression test about incremental shared actions for
@@ -535,6 +535,7 @@ abstract class AbstractParallelEvaluator {
skyKey, state.getTemporaryDirectDeps(), oldDeps, evaluatorContext);
} catch (UndonePreviouslyRequestedDeps undonePreviouslyRequestedDeps) {
// If a previously requested dep is no longer done, restart this node from scratch.
+ stateCache.invalidate(skyKey);
restart(skyKey, state);
evaluatorContext.getVisitor().enqueueEvaluation(skyKey, determineRestartPriority());
return;
