Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

potentially move production `cot_restricted_scopes` etc to the scriptworker-scripts repo

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
ci-cd, devops, testing

調査の方向性

まず scriptworker.cot.config.DEFAULT_CONFIG と既存の production CoT テストを読み、次に scriptworker-scripts がどのように設定を Docker イメージにパッケージ化しているかを比較します。各 production config をどこに配置するか、また scriptworker テストがそれをどのように取得するかを定義します。scriptworker-scripts で config が管理され、適切なイメージで利用でき、関連する変更が入った際に両方のリポジトリで production テストがそれらに対して実行されれば完了です。

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

説明

This may include:

  • zeroing out, or minimizing, the production CoT configs in scriptworker.cot.config.DEFAULT_CONFIG
    • e.g. cot_restricted_scopes, trusted_vcs_rules. valid_tasks_for, cot_restricted_trees, etc.
  • adding a single config file in scriptworker-scripts with the production CoT configs (or a config file per cot_product).
    • this file should be baked into the appropriate docker images.
  • download and use the production scriptworker-scripts production CoT config file during scriptworker production tests
    • we should also run these tests in scriptworker-scripts, on CoT config file change.

Details:

tom.prince:matrix: 10:36
@aki I was wondering if it would make sense to move cot_restricted_scopes to the -scripts repo, now that there is a single script repo (possibly also some of the other default config as well).

aki 10:37
@tom.prince moving it makes some sense overall. however, we do use those for testing production cot in the scriptworker repo.
10:37
we may want to move those tests if the production config is elsewhere
10:38
and then it's harder to see if you broke something when you refactor cot

aki 10:51
we solved for that in puppet by allowing for it to be set in both places, with eventual consistency (landing a puppet change for emergency changes, updating scriptworker with less urgency) and removing the puppet copy once they were in sync
10:52
could also download a config file from scriptworker-scripts during scriptworker tests

tom.prince:matrix: 12:26
Yeah, the later seems like a better solution.

主要言語
Python
スター
5
フォーク
41
平均マージ
2日 4時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

mozilla-releng/scriptworker のほかの issue

mozilla-releng/scriptworker の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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