testcontainers / testcontainers/testcontainers-python

Question: Can HealthcheckWaitStrategy make use of the HEALTHCHECK defined on the image?

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

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

📖 documentation
主要言語
Python
スター
2.3k
フォーク
386
平均マージ
4時間 40分
マージ済み PR(30日)
1

説明

What are you trying to do?

HealthcheckWaitStrategy initializes _startup_timeout from the testcontainers configuration. It can be overridden by calling with_startup_timeout.

Is there a way to indicate "Use whatever is defined on the image we are starting"?

Where are you trying to do it?

MyContainer.waiting_for(HealthcheckWaitStrategy.with_startup_timeout(XXXX))
# XXXX should be > whatever is defined on the container image

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

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

はじめの一歩

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

調査の方向性

core/testcontainers/core/waiting_utils.py の HealthcheckWaitStrategy から始めて、起動タイムアウトとイメージのヘルスチェックが現在どのように処理されているかを確認してください。戦略がイメージの HEALTHCHECK を使用する場合に期待される動作を判断し、その後、設定されたイメージのヘルスチェックが尊重されることを示すテストカバレッジを追加して、関連するテストスイートを実行してください。

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

評価

技術スタック
docker, python
領域
devops, testing-qa
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

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

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