run --inherit-environ option does not work
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 203
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 2
Description
After a clean install of pyperformance, run the below command:
HAHA=1 pyperformance run -f --debug-single-value --inherit-environ HAHA -b 2to3
The output received is:
[...]
[1/1] 2to3...
INFO:root:Running `$PATH_TO_VENV$/bin/python -u /usr/local/lib/python3.8/dist-packages/pyperformance-1.0.4-py3.8.egg/pyperformance/data-files/benchmarks/bm_2to3/run_benchmark.py --debug-single-value --inherit-environ =,PYPERFORMANCE_RUNID --output /tmp/tmpiq530yv4`
As you can see, the HAHA variable is not inherited by the benchmark-running process. Instead, a '=' symbol is parsed in its place.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pyperformance run entry point and trace handling of --inherit-environ, using the reported bm_2to3/run_benchmark.py invocation as the reproduction path. Run the command from the issue and verify that the benchmark-running process receives HAHA=1 rather than an empty variable name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100