Skip to content

fix: add __init__ to CIEvoStr to fix missing scen argument TypeError (#1329)#1346

Open
mango766 wants to merge 1 commit intomicrosoft:mainfrom
mango766:fix/ci-evolving-strategy-missing-scen
Open

fix: add __init__ to CIEvoStr to fix missing scen argument TypeError (#1329)#1346
mango766 wants to merge 1 commit intomicrosoft:mainfrom
mango766:fix/ci-evolving-strategy-missing-scen

Conversation

@mango766
Copy link

@mango766 mango766 commented Mar 13, 2026

Summary

Fix TypeError: EvolvingStrategy.__init__() missing 1 required positional argument: 'scen' when running rdagent/app/CI/run.py.

Root cause

CIEvoStr() on line 729 is called without arguments, but the parent class EvolvingStrategy.__init__ requires a scen: Scenario parameter. CIEvoStr never uses self.scen, so the CI script has no scenario to pass.

Fix

Override __init__ in CIEvoStr to set self.scen = None without requiring a Scenario instance.

Fixes #1329


📚 Documentation preview 📚: https://RDAgent--1346.org.readthedocs.build/en/1346/

CIEvoStr() was called without arguments but its parent class
EvolvingStrategy.__init__ requires a `scen: Scenario` parameter,
causing an immediate TypeError on startup.

CIEvoStr doesn't use self.scen anywhere, so override __init__ to
set self.scen = None without requiring a Scenario instance.

Fixes microsoft#1329
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.

rdagent/app/CI/run.py instantiates EvolvingStrategy without required Scenario argument

1 participant