Remove debugging for b/128541100, since the cause is now understood and benign (nonexistence of a node is cached in a SkyFunctionEnvironment for the duration of the SkyFunction evaluation).

PiperOrigin-RevId: 243353422
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java
index ff6f7f9..77758cd 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetFunction.java
@@ -47,7 +47,6 @@
 import com.google.devtools.build.lib.analysis.configuredtargets.MergedConfiguredTarget.DuplicateException;
 import com.google.devtools.build.lib.analysis.configuredtargets.RuleConfiguredTarget;
 import com.google.devtools.build.lib.analysis.skylark.StarlarkTransition.TransitionException;
-import com.google.devtools.build.lib.bugreport.BugReport;
 import com.google.devtools.build.lib.buildeventstream.BuildEventId;
 import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.ConfigurationId;
 import com.google.devtools.build.lib.causes.AnalysisFailedCause;
@@ -215,9 +214,6 @@
       return null;
     }
     PackageValue packageValue = (PackageValue) packageAndMaybeConfigurationValues.get(packageKey);
-    if (label.equals(labelWithUndonePackageToDiagnoseBug)) {
-      logger.atInfo().log("Retrieved values %s for %s", packageAndMaybeConfigurationValues, key);
-    }
     if (configurationKeyMaybe != null) {
       configuration =
           ((BuildConfigurationValue) packageAndMaybeConfigurationValues.get(configurationKeyMaybe))
@@ -717,27 +713,12 @@
               } else {
                 pkgValue = (PackageValue) packageResult.get();
                 if (pkgValue == null) {
-                  logger.atInfo().log("Missing package: %s for (%s %s)", packageKey, dep, key);
                   // In a race, the getValuesOrThrow call above may have retrieved the package
-                  // before it was done but the configured target after it was done. However, the
-                  // configured target being done implies that the package is now done, so we can
-                  // retrieve it from the graph.
-                  pkgValue = (PackageValue) env.getValue(packageKey);
-                  if (pkgValue == null) {
-                    BugReport.sendBugReport(
-                        new IllegalStateException(
-                            "Package should have been loaded during dep resolution: "
-                                + dep
-                                + ", ("
-                                + depValue
-                                + ", "
-                                + packageResult
-                                + ", "
-                                + ctgValue
-                                + ")"));
-                    missedValues = true;
-                    continue;
-                  }
+                  // before it was done but the configured target after it was done. Since
+                  // SkyFunctionEnvironment may cache absent values, re-requesting it on this
+                  // evaluation may be useless, just treat it as missing.
+                  missedValues = true;
+                  continue;
                 }
               }
             } else {
@@ -952,7 +933,4 @@
       super(e, Transience.PERSISTENT);
     }
   }
-
-  // TODO(b/128541100): remove when bug is fixed.
-  public static Label labelWithUndonePackageToDiagnoseBug = null;
 }
diff --git a/src/main/java/com/google/devtools/build/skyframe/AbstractParallelEvaluator.java b/src/main/java/com/google/devtools/build/skyframe/AbstractParallelEvaluator.java
index cc0e038..bf5102c 100644
--- a/src/main/java/com/google/devtools/build/skyframe/AbstractParallelEvaluator.java
+++ b/src/main/java/com/google/devtools/build/skyframe/AbstractParallelEvaluator.java
@@ -305,10 +305,6 @@
           // No child has a changed value. This node can be marked done and its parents signaled
           // without any re-evaluation.
           Set<SkyKey> reverseDeps = state.markClean();
-          if (matchesMissingSkyKey(skyKey)) {
-            logger.info(
-                "Marked " + skyKey + " clean: " + state + ", " + System.identityHashCode(state));
-          }
           // Tell the receiver that the value was not actually changed this run.
           evaluatorContext
               .getProgressReceiver()
@@ -399,15 +395,6 @@
         NodeEntry state =
             Preconditions.checkNotNull(graph.get(null, Reason.EVALUATION, skyKey), skyKey);
         Preconditions.checkState(state.isReady(), "%s %s", skyKey, state);
-        if (matchesMissingSkyKey(skyKey)) {
-          logger.info(
-              "Starting to evaluate "
-                  + skyKey
-                  + " with "
-                  + state
-                  + ", "
-                  + System.identityHashCode(state));
-        }
         try {
           evaluatorContext.getProgressReceiver().stateStarting(skyKey, NodeState.CHECK_DIRTY);
           if (maybeHandleDirtyNode(state) == DirtyOutcome.ALREADY_PROCESSED) {
@@ -1035,11 +1022,4 @@
   static boolean isDoneForBuild(@Nullable NodeEntry entry) {
     return entry != null && entry.isDone();
   }
-
-  // TODO(b/128541100): Clean this up when bug is fixed.
-  public static SkyKey missingSkyKeyToDiagnoseBug = null;
-
-  static boolean matchesMissingSkyKey(SkyKey key) {
-    return (missingSkyKeyToDiagnoseBug != null && missingSkyKeyToDiagnoseBug.equals(key));
-  }
 }
diff --git a/src/main/java/com/google/devtools/build/skyframe/SkyFunctionEnvironment.java b/src/main/java/com/google/devtools/build/skyframe/SkyFunctionEnvironment.java
index 52a07af..0a55938 100644
--- a/src/main/java/com/google/devtools/build/skyframe/SkyFunctionEnvironment.java
+++ b/src/main/java/com/google/devtools/build/skyframe/SkyFunctionEnvironment.java
@@ -785,11 +785,6 @@
     // the data being written now is the same as the data already present in the entry.
     Set<SkyKey> reverseDeps =
         primaryEntry.setValue(valueWithMetadata, evaluationVersion, depFingerprintList);
-    if (AbstractParallelEvaluator.matchesMissingSkyKey(skyKey)) {
-      logger.atInfo().log(
-          "Set value for %s with %s (%s)",
-          skyKey, primaryEntry, System.identityHashCode(primaryEntry));
-    }
 
     // Note that if this update didn't actually change the entry, this version may not be
     // evaluationVersion.