run --inherit-environ option does not work
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 1k
- 派生
- 203
- 平均合并
- 1 小时 20 分钟
- 30 天内合并 PR
- 2
描述
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.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 pyperformance run 入口点开始,跟踪 --inherit-environ 的处理过程,并使用报告中的 bm_2to3/run_benchmark.py 调用作为复现路径。运行 issue 中的命令,并验证运行 benchmark 的进程接收到的是 HAHA=1,而不是空变量名。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli, performance
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100