Skip to content

fix: correct stale import path for ExperimentGitManager - #96

Closed
sylearn wants to merge 1 commit into
aiming-lab:mainfrom
sylearn:fix/experiment-runner-import-error
Closed

sylearn wants to merge 1 commit into
aiming-lab:mainfrom
sylearn:fix/experiment-runner-import-error

Conversation

@sylearn

@sylearn sylearn commented Mar 19, 2026 •

Copy link
Copy Markdown

Summary

  • ExperimentRunner.__init__() imports from arc.experiment_git, which is a pre-rename module path that no longer exists
  • The actual class lives in researchclaw.experiment.git_manager
  • Any call passing git_repo_dir raises ModuleNotFoundError

One-line fix: Update import to researchclaw.experiment.git_manager.

Test plan

  • Verified researchclaw.experiment.git_manager.ExperimentGitManager exists
  • No other references to old arc.experiment_git path

The import `from arc.experiment_git import ExperimentGitManager` references
the pre-rename module path. The actual class lives in
`researchclaw.experiment.git_manager`. Any call passing `git_repo_dir`
to ExperimentRunner raises ModuleNotFoundError.

Made-with: Cursor
Copilot AI review requested due to automatic review settings March 19, 2026 04:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a broken/stale import in ExperimentRunner.__init__() so Git integration works again when git_repo_dir is provided (avoiding a ModuleNotFoundError due to a renamed module path).

Changes:

  • Update the import of ExperimentGitManager from a non-existent legacy module path to researchclaw.experiment.git_manager.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ImKeTT

ImKeTT commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the fixes @sylearn, all three look correct and useful! One request: since these are all small, related fixes (stale import + resource management), could you consolidate PRs #96, #97, and #98 into a single PR? Something like "fix: stale import path and resource leak cleanups" would work.

It reduces review overhead and keeps the git history cleaner. Appreciate the contributions!

@sylearn

sylearn commented Mar 19, 2026

Copy link
Copy Markdown
Author

Consolidated into #102 as requested.

@sylearn sylearn closed this Mar 19, 2026
@sylearn
sylearn deleted the fix/experiment-runner-import-error branch March 19, 2026 06:40
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.

3 participants