src/health_runner/nccl_runner.py [518:540]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  passed_nodes_second_pass = node_results_second_pass.get("pass", list())
  # Consider all other node without "pass" key as suspect
  suspect_nodes_second_pass: list[tuple[str, str]] = []
  for result_type, nodes in node_results_second_pass.items():
    if result_type != "pass":
      suspect_nodes_second_pass.extend(
          (node, result_type)
          for node in nodes
          if node not in passed_nodes_second_pass
      )

  # Label nodes that passed second pass
  for node in passed_nodes_second_pass:
    checker_common.label_node(
        node, label_key=NCCL_RESULT_KEY, label_value="pass"
    )
    logging.info("Node %s passed nccl test", node)
  # Since final test, we can use this result type as final result
  for node, result_type in suspect_nodes_second_pass:
    checker_common.label_node(
        node, label_key=NCCL_RESULT_KEY, label_value=result_type
    )
    logging.info("Node %s failed nccl test, result %s", node, result_type)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/health_runner/nccl_runner.py [724:746]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  passed_nodes_second_pass = node_results_second_pass.get("pass", list())
  # Consider all other node without "pass" key as suspect
  suspect_nodes_second_pass: list[tuple[str, str]] = []
  for result_type, nodes in node_results_second_pass.items():
    if result_type != "pass":
      suspect_nodes_second_pass.extend(
          (node, result_type)
          for node in nodes
          if node not in passed_nodes_second_pass
      )

  # Label nodes that passed second pass
  for node in passed_nodes_second_pass:
    checker_common.label_node(
        node, label_key=NCCL_RESULT_KEY, label_value="pass"
    )
    logging.info("Node %s passed nccl test", node)
  # Since final test, we can use this result type as final result
  for node, result_type in suspect_nodes_second_pass:
    checker_common.label_node(
        node, label_key=NCCL_RESULT_KEY, label_value=result_type
    )
    logging.info("Node %s failed nccl test, result %s", node, result_type)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



