Skip to content

fix: ensure repeating benches return to initial run-dir#1617

Merged
laanak08 merged 2 commits intomainfrom
marcelle/refactor-register-eval
Mar 11, 2025
Merged

fix: ensure repeating benches return to initial run-dir#1617
laanak08 merged 2 commits intomainfrom
marcelle/refactor-register-eval

Conversation

@laanak08
Copy link
Copy Markdown
Contributor

No description provided.

@laanak08 laanak08 requested a review from ahau-square March 11, 2025 15:13
Copy link
Copy Markdown
Contributor

@alicehau alicehau left a comment

Choose a reason for hiding this comment

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

thanks for fixing!

Comment on lines +185 to +189
impl Drop for BenchmarkWorkDir {
fn drop(&mut self) {
std::env::set_current_dir(&self.run_dir).unwrap();
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

where is this drop fn used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

its called automatically by rust here

@laanak08 laanak08 merged commit c23be1e into main Mar 11, 2025
6 checks passed
@laanak08 laanak08 deleted the marcelle/refactor-register-eval branch March 11, 2025 15:45
michaelneale added a commit that referenced this pull request Mar 11, 2025
* origin:
  docs: Persistent Command History (#1627)
  change to make build work on windows, macos, linux (#1618)
  chore(release): release version 1.0.13 (#1623)
  fix: handle mac screenshots with the image tool (#1622)
  feat: write eval results to eval dir (#1620)
  [fix] fix model config logging to remove api key (#1619)
  fix: ensure repeating benches return to initial run-dir (#1617)
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants