Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simulator: implement --load flag #720

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alpaylan
Copy link
Contributor

The current status of the PR is halfway. The new framing of simulation runner where setup_simulation is separated from run_simulation allows for injecting custom plans easily. The PR is currently missing the functionality to update the SimulatorEnv ad hoc from the plan, as the environment tables were typically created during the planning phase.

The next steps will be to implement a function fn mk_env(InteractionPlan, SimulatorEnv) -> SimulatorEnv, add --load flag to the CLI for loading a serialized plan file, making a corresponding environment and running the simulation.

We can optionally combine this with a --save option, in which we keep a seed-vault as part of limbo simulator, corresponding each seed with its generated plan and save the time to regenerate existing seeds by just loading them into memory. I am curious to hear thoughts on this? Would the maintainers be open to adding such a seed-vault? Do you think the saved time would be worth the complexity of the approach?

- makes interaction plans serializable
- fixes the shadowing bug where non-created tables were assumed to be created in the shadow tables map
- makes small changes to make clippy happy
- reorganizes simulation running flow to remove unnecessary plan regenerations while shrinking and double checking
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.

1 participant