getappmap / getappmap/appmap-python
appmap sometimes doesn't get enabled with uwsgi
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 104
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
Appmap didn't enable the remote recording routes when I tried to start uwsgi manually on the commandline with our test/data/django app. But it enabled the routes with chipy in its docker container running uwsgi. Why did it work in docker but not on my machine?
Also, the same command that fails to enable the routes on the command-line does work when called from the testsuite.
For more details see https://github.com/getappmap/board/issues/197#issuecomment-1289349059
Enables routes
APPMAP=true uwsgi --wsgi-file=app/wsgi.py --http-socket 0.0.0.0:8000 --threads=8 --env=DJANGO_SETTINGS_MODULE=app.settings
Doesn't enable routes
DEBUG=True uwsgi --wsgi-file=app/wsgi.py --http-socket 0.0.0.0:8000 --threads=8 --env=DJANGO_SETTINGS_MODULE=app.settings
When started from the command-line it doesn't enable routes (it demonstrates the bug) but when started from the testsuite it does enable routes (the test passes when it shouldn't.)
Saw this in this branch that added debugging statements.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 issue 中的两个 uwsgi 命令,通过 test/data/django 重现该差异,然后将这一行为与 testsuite 的调用进行比较。检查所链接 branch 中的调试语句以及所引用的 board 评论。当命令行和 testsuite 两种情况在启用远程记录路由方面的行为一致,并且为这一差异添加了回归测试时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100