Enhancement: Small Improvement for Interactively Overriding Local Testing Harness Env Vars #429
Enhancement: Small Improvement for Interactively Overriding Local Testing Harness Env Vars #429tzaffi wants to merge 12 commits into
Conversation
| return key, val, extra | ||
|
|
||
|
|
||
| def manualy_parse(env_file: str) -> Dict[str, str]: |
There was a problem hiding this comment.
"manually" as opposed with using dot_env which I couldn't figure out how to use to read from only one env file and ignore all other env variables.
| # What can ease some of the pain above is to overwrite interactively: | ||
| INTERACTIVE_TESTING_ENVIRONMENT=0 | ||
|
|
||
|
|
There was a problem hiding this comment.
- THE FOLLOWING SHOULD BE DELETED BEFORE MERGING
|
zeph how do we feel about this one? |
I think it's kind of cool, but someone else should give a spin to make sure it's worthwhile. I list some pros/cons above, the big con being the future maintenance cost. |
|
I think it is a nice improvement for local testing, and could be worthwhile having it in a long lasting fork or a branch, and reference it in the docs. I don't feel as strongly about merging this into |
I'm not inclined to pursue a strong counter-argument recognizing that much of my excitement is due to my personal investment in it. Unless I hear back from more people by the end of the week, I'll close this PR (but will keep a copy in my personal repo for future testing needs). |
|
I'm closing this PR as there was insufficient interest in pursuing it further. However, I'm keeping a copy on my personal repo for future reference. |
Should I keep these changes around and merge
harness_overwrite.py? This tinkering work grew out of an investigation of the downstream effects of this go-algorand PR: algorand/go-algorand#4951Arguments For and Against Merging the PR
up.shas similar as possible across all 4 SDK'sgo-algorand-even a little- is worthwhileQ: What does
harness_overwrite.pydo?It makes it slightly easier locally to mod environments that the test harness needs. In particular
INTERACTIVE_TESTING_ENVIRONMENT=1in.test-envmake harnessand follow the prompts.here are what the prompts look like
Then I entered the "typical choice" and proceeded with the next prompts:
Q: What are the implications for
harness_overwrite.pyin C.I.?As long as one remembers not to merge in
INTERACTIVE_TESTING_ENVIRONMENT=1in.test-env,C.I. will continue running as before. In order to run the same override environment in C.I., you
need to take the following steps:
test-harness/.env.envfile starting fromTYPE=...all the way to the end into.test-envINTERACTIVE_TESTING_ENVIRONMENT=0andOVERWRITE_TESTING_ENVIRONMENT=1C.I. should now run against the new harness env variables.