Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions benchmarks/swebench/eval_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ def run_swebench_evaluation(

def main() -> None:
"""Main entry point for the script."""
# DO_NOT_MERGE_FOR_TESTING_ONLY - simulating eval_infer error
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Important: This intentionally breaks the main() function for testing. Consider these alternatives:

  1. If testing CI error handling: Use a dedicated test branch that's never merged, or
  2. If testing error paths: Add a --simulate-error CLI flag instead of hardcoding the failure
  3. Branch protection: Ensure this branch cannot be accidentally merged to main

The DO_NOT_MERGE markers are clear, but human error happens.

raise RuntimeError("DO_NOT_MERGE_FOR_TESTING_ONLY - simulated eval_infer error for testing")

parser = argparse.ArgumentParser(
description="Convert OpenHands output to SWE-Bench format and run evaluation",
formatter_class=argparse.RawDescriptionHelpFormatter,
Expand Down
Loading