Proxy doesn't work, while executing jail_code there is no output displayed
まだ誰も着手していません。
評価
調査の方向性
まず、設定済みの CODEJAIL_TEST_USER/ENV および CODEJAIL_PROXY 設定で提供された Python スニペットを再現し、次に jail_code.jail_code(...) と proxy による stdout の処理を追跡します。進行中の出力が期待されているのか、それとも res.stdout のみがサポートされているのかを判断します。動作が明確になり、バグである場合は適切な回帰テストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello,
I would like to execute this python code (containing a print statement and a sleep call for 1 second for each iteration of the range(5)).
The idea was to test and see if PROXY is working as desired. I was excepting to see while executing jail_code.jail_code(...) in the stdout of my terminal progressively displayed the numbers second by second:
1
2
3
4
full-output
- 0
- 1
- 2
- 3
- 4
but didn't happened..
First one should be the output printed by the proxy, and the second one is when I iterate on the result object stdout.
from codejail import jail_code
jail_code.set_limit("REALTIME", 20)
jail_code.set_limit("CPU", 100)
jail_code.set_limit("FSIZE", 10000)
jail_code.set_limit("PROXY", 1)
code = """
import time
for i in range(5):
print(i)
time.sleep(1)
"""
res = jail_code.jail_code(
"python",
code
)
print("full-output")
for line in res.stdout.decode('utf-8').split('\n'):
print("-", line)
The issue here is that during this execution of jail_code.jail_code(...) the PROXY didn't seems to print anything in the output is that normal, I'm missing something ?
Thanks in advance.
PS: I have CODEJAIL_TEST_USER/ENV and CODEJAIL_PROXY configured in my ENV.
- 主要言語
- Python
- スター
- 477
- フォーク
- 83
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openedx/codejail のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
-
Stop using global state to store configuration options再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンcode health
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
openedx/codejail の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
btclib-org/btclib-wallet#1045 ·
メンテナーはふだん 1 日以内に返信
-
area-templates triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire#22356 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
[Train] An elastic ScalingConfig(num_workers=(0, 0)) is accepted and the run waits forever対応中かも @wguo7 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ray-project/ray#68217 ·
メンテナーはふだん 2 日以内に返信