Variant build: variant_gates.py refuses SRO_LEVEL_CAP=100

オープン 初心者向け
#4,943 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go

調査の方向性

まず scripts/variant_gates.py、特に gate_level_cap を確認し、受け付ける値とゲート条件を progression.Degree10LevelCap および apps/server/config/shard-settings.json の shard 設定と比較してください。scripts/build_alexandria_variant.py を SRO_LEVEL_CAP=100 で実行し、失敗を再現してください。ビルドが 100 を受け付け、Arabia、Sky Temple、Roc のインポートが対応する cap 条件を使用すれば完了です。

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

説明

scripts/variant_gates.py refuses the level cap the shard now ships, so the Alexandria variant build stops when it reads its flags from apps/server/config/shard-settings.json.

Steps: export the shard settings into the environment (SRO_LEVEL_CAP=100 since #4924) and run scripts/build_alexandria_variant.py.

Result: stage 2 stops in the gates step:

File "scripts/variant_gates.py", line 345, in gate_level_cap
ValueError: SRO_LEVEL_CAP must be off, 90 or 110, not '100'

Cause: gate_level_cap knows only the native values ("", 0, off, false, 90 -> 90) and 110. The server has accepted 100 since #4924 (progression.Degree10LevelCap), and the shard ships it, so the build and the server disagree on which caps exist.

Fix: accept 100 and clamp the gate conditions to it, as the server does. The Arabia, Sky Temple and Roc imports take their cap from the same function.

主要言語
Go
スター
97
フォーク
61
平均マージ
4時間 2分
マージ済み PR(30日)
969

環境構築

はじめの一歩

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

opensro-dev/opensro のほかの issue

opensro-dev/opensro の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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