Update #equals and #hashCode of BuildDriverKey to include all attributes.

These became stale as we added more attributes to BuildDriverKey.

PiperOrigin-RevId: 449451973
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java b/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java
index 32574dd..d2193c8 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/BuildDriverKey.java
@@ -104,14 +104,22 @@
     if (other instanceof BuildDriverKey) {
       BuildDriverKey otherBuildDriverKey = (BuildDriverKey) other;
       return actionLookupKey.equals(otherBuildDriverKey.actionLookupKey)
-          && topLevelArtifactContext.equals(otherBuildDriverKey.topLevelArtifactContext);
+          && topLevelArtifactContext.equals(otherBuildDriverKey.topLevelArtifactContext)
+          && testType.equals(otherBuildDriverKey.testType)
+          && strictActionConflictCheck == otherBuildDriverKey.strictActionConflictCheck
+          && explicitlyRequested == otherBuildDriverKey.explicitlyRequested;
     }
     return false;
   }
 
   @Override
   public int hashCode() {
-    return Objects.hash(actionLookupKey, topLevelArtifactContext);
+    return Objects.hash(
+        actionLookupKey,
+        topLevelArtifactContext,
+        testType,
+        strictActionConflictCheck,
+        explicitlyRequested);
   }
 
   @Override