Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

Remove problematic content slicing in test output parsing - #6

Open
ryanhoangt wants to merge 149 commits into
All-Hands-AI:mainfrom
ryanhoangt:fix-modal-patch-eval
Open

ryanhoangt wants to merge 149 commits into
All-Hands-AI:mainfrom
ryanhoangt:fix-modal-patch-eval

Conversation

@ryanhoangt

Copy link
Copy Markdown

Reference Issues/PRs

Fix SWE-bench#377

What does this implement/fix? Explain your changes.

When running patch eval on Modal, I see that for some instances, the content of test output files being captured are out of order, which causes the test summary to fall outside the >>>>> Start Test Output and >>>>> End Test Output markers. I attached a sample log file below.

test_output_astropy__astropy-12907.txt

This PR removes the content slicing line and uses the whole file content for parsing.

Any other comments?

🧡 Thanks for contributing!

sedrick-keh-tri and others added 30 commits March 24, 2025 23:28
Some of the repo_setup.sh scripts leave the working tree in a dirty state which can make it difficult to generate a patch that applies cleanly.  This change commits any outstanding changges such that any patch generated with `git diff` will cleanly apply to a newly launched container during the evaluation step.
* Simplify installation guidelines for inference submodule

* Fixes SWE-bench#368

* Update version
* add docs

* Add leaderboard

* Remove unused import

* Update docs

* Update version

* Update:
 docs
* Support multilingual evaluation

* CI: Fix documentation building vs deploying

* Minor fixes

* Remove some redundancy

* Update dataset ref

---------

Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de>
Co-authored-by: John Yang <byjohnyang@gmail.com>
…h#358)

* fix: preserve all issue references with same keyword in PRs

* Modified extract_resolved_issues to use a set instead of list to store references
Co-authored-by: John Yang <byjohnyang@gmail.com>
…t.py SWE-bench#368 (SWE-bench#369)

* fix prompt_col from text_inputs to text

* update log

---------

Co-authored-by: changqingai <changqingai@tencent.com>
Match the documentation for installing additional dependencies with the contents of `pyproject.toml`
john-b-yang and others added 29 commits August 8, 2026 00:23
Updated the GitHub repository URL for cloning SWE-bench, old one wasn't working. Someone should check other search results for `princeton-nlp`: https://github.com/search?q=repo%3ASWE-bench%2FSWE-bench%20princeton-nlp&type=code
* Default images build --tag to latest so make_image_spec does not assert

* Run eval containers with seccomp unconfined so browser sandboxes can start

* Decode test output with errors=replace so a stray byte cannot abort an instance
parse_log_seaborn indexed line.split()[1] / parts[1] without checking
length, so a log line containing only a status word (e.g. a bare
'PASSED' or 'FAILED' from interleaved or captured test output) raised
IndexError and crashed grading for mwaskom/seaborn instances. Other
pytest parsers in this module already guard against short lines; apply
the same guard here. Add a regression test.
Jest only appends a "(N ms)" duration suffix above a small timing
threshold, and the optional duration group combined with the
non-greedy name capture can leave a trailing space in the captured
test name depending on whether that suffix is present. The same test
can then map to two different dict keys across runs, which can hide
a real fail-to-pass transition.
662 parametrized ids in SWE-bench_Verified are truncated mid-parameter
(unbalanced brackets), so exact-match grading counts them as missing ->
failed even when they passed. Resolve truncated ids (and only those) by
prefix: accept a unique match, or multiple matches that all share one
status. Exact ids keep exact semantics; ambiguous conflicts stay failed.
@john-b-yang
john-b-yang force-pushed the fix-modal-patch-eval branch from aa0f1ed to 74690d7 Compare August 12, 2026 03:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent evaluation in Modal vs without using Modal