Repository navigation
fix(spreadsheetbench): find the output file that solution.py names - #487
Open
Lanre Shittu (Shizoqua) wants to merge 1 commit into
Open
Lanre Shittu (Shizoqua) wants to merge 1 commit into
Lanre Shittu (Shizoqua) wants to merge 1 commit into
Conversation
_auto_verify read OUTPUT_PATH from solution.py in two ways that made a correct solution report "Output file not found": - A trailing comment after the quoted path was kept as part of the path. - A relative path was checked against the process working directory, but solution.py runs with the work directory as its working directory. Read the quoted path up to its closing quote, or strip a comment from an unquoted value. Resolve a relative path against the work directory. A missing file still reports the warning.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_auto_verifyinskillopt/envs/spreadsheetbench/react_agent.pyreadOUTPUT_PATHfromsolution.pyin two ways that made a correct solution report "Output file not found":solution.pyruns with the work directory as its working directory.The model then receives a false failure and may rewrite a working script. This change fixes both cases.
Changes
skillopt/envs/spreadsheetbench/react_agent.py: for a quoted value, take the text between the quotes. For an unquoted value, strip a#comment. Join a relative path withwork_dirbefore checking it. A missing file still produces the warning.tests/test_spreadsheetbench_auto_verify.py: new tests (see below).CHANGELOG.md: entry under Fixed.Tests
ruff check: the only warning on the changed file is the import-sort note (I001) that already exists on main. The changed lines passruff format. The file already has format differences on main outside these lines, and they are left unchanged.Fixes #486