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