Feed cloudops-infra env into `tests/test_init.py`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, github, python
- 領域
- devops, infrastructure, testing
調査の方向性
まず tests/test_init.py と docker.d/init.sh のテストセットアップから始め、次に cloudops-infra リポジトリで変数がどのように定義されているか、また SOPS キーがどのように表現されているかを調べます。必要な GitHub API アクセスを特定し、手動で管理しているコンテキスト値を取得した変数と秘密鍵用に生成したダミー値に置き換え、テストが統合パスをカバーしていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
I recently added a test that runs the docker.d/init.sh script. The problem is that it relies on a ton of environment variables that are populated from cloudops-infra. To get around this, I basically just manually created a giant context dict containing dummy values for everything.
Ben had the idea of trying to fetch these directly (would need a Github API token) and using the actual variables fetched from the cloudops-infra repo. Not only would this make manual maintenance less of a burden, but it would turn test_init.sh into an integration test that covers parts of the deploy pipeline with cloudops-infra as well.
Note that the values come from SOPS, so we'd obviously still need dummy values for the keys.. But these could be autogenerated for any keys we detect.
- 主要言語
- Python
- スター
- 16
- フォーク
- 38
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 14
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla-releng/scriptworker-scripts のほかの issue
-
Dependency Dashboard オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
treescript
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
mozilla-releng/scriptworker-scripts#1055 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
mozilla-releng/scriptworker-scripts#994 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
mozilla-releng/scriptworker-scripts#980 · コメント 1 件 ·
mozilla-releng/scriptworker-scripts の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100