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

Fix config.py so it is reproducible #1636

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Fix config.py so it is reproducible #1636

wants to merge 7 commits into from

Conversation

feliam
Copy link
Contributor

@feliam feliam commented Mar 19, 2020

All config variables should exist via config.py.
Attempt to erradicate argparse.
Attempt to separate EVM, WASM, NATIVE configs
Make it save the full config at mcore.yml towards a reproducible exploration.

@bradlarsen
Copy link
Contributor

Related to this, I've noticed that if you run the existing unit test suite with pytest and the pytest-random-order plugin, several Ethereum tests sporadically fail due to global configuration not being initialized fully when test modules are run in an unexpected order.

@bradlarsen
Copy link
Contributor

Yes, trying to run the tests in random order via pytest-randomly reveals path-dependent troubles in our test suite due to config.py stuff: #1660

@MatthewARinehart MatthewARinehart added this to In progress in Manticore via automation Jun 11, 2020
@ehennenfent ehennenfent linked an issue Jun 19, 2020 that may be closed by this pull request
@ehennenfent ehennenfent removed this from In progress in Manticore Jun 19, 2020
ekilmer added a commit that referenced this pull request Mar 9, 2021
The config system is a little brittle when Manticore tries to import all platform modules since we set the config options upon import and declaring the same config option in two different platforms will cause issues.

This is a bit of a band-aid over the real problem, which might look something like moving shared config options to a separate file that each platform can import.

Looks to be some related refactoring work here #1636
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.

Reproducible Tiered Configuration Strategy
2 participants