test(assets): the Qin-Shi tomb overlay fixture's registry misses the bake switches added since (SRO_JANGAN_TOMB_TELEPORT)

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

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

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

評価

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

調査の方向性

scripts/test/assets/qinshiTombOverlay.test.mjsを読み、特にfixtureServerRootと失敗しているフィンガープリントテストを確認し、その後buildKnobLinesと、それが読み取るスイッチ一覧をたどってください。フィクスチャのレジストリ行がその一覧から導出され、各スイッチの実際のデフォルト値を使うように更新してください。アセットテストが通り、テストを変更せずにベイクスイッチを追加しても失敗しなくなれば完了です。

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

説明

area: tomb bug priority: low

On main, scripts/test/assets/qinshiTombOverlay.test.mjs "a profile or registry flip with the env unset changes the fingerprint and the lane knobs" throws: SRO_JANGAN_TOMB_TELEPORT has no Default in the test's fake registry.

Cause

fixtureServerRoot (line 91) writes a stand-in shardsettings.go with exactly two rows, SRO_QINSHI_TOMB and SRO_MUHAN, because the fingerprint reads every bake switch's posture (buildKnobLines). #3614 added a third bake switch (scripts/build/shared/janganTombTeleport.mjs, read through shardSwitchEnabled), and the fixture was not given its row. The asset tests are not in CI's lanes, so main stayed green.

Fix

The fixture should not hand-list the switches: build its registry rows from the same list buildKnobLines reads (each other switch at its real default), so the next bake switch cannot break this test again. Not a product defect; the release build reads the real registry.

Done when

The test passes on main, and adding a bake switch without touching the test keeps it passing.

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

環境構築

はじめの一歩

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

opensro-dev/opensro のほかの issue

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

似ている issue

Go の issue をもっと見る

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

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