getappmap / getappmap/appmap-python

appmap sometimes doesn't get enabled with uwsgi

オープン
#187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

issue にある 2 つの uwsgi コマンドを使って test/data/django で不一致を再現し、その後、その動作を testsuite の呼び出しと比較します。リンクされた branch のデバッグ用ステートメントと、参照されている board のコメントを確認します。コマンドラインの場合と testsuite の場合で、リモート記録ルートの有効化について動作が一致し、その違いに対する回帰テストがあれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。