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

Aberta Para iniciantes
#3,779 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
78/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
go, javascript

Direção de pesquisa

Leia scripts/test/assets/qinshiTombOverlay.test.mjs, especialmente fixtureServerRoot e o teste de impressão digital que está falhando; em seguida, rastreie buildKnobLines e a lista de switches que ele lê. Atualize o fixture para derivar suas linhas de registro dessa lista, usando o valor padrão real de cada switch. O trabalho estará concluído quando o teste do asset passar e adicionar um switch de bake sem alterar o teste não fizer com que ele falhe.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Go
Estrelas
97
Forks
61
Merge médio
4h 25min
PRs com merge (30d)
953

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de opensro-dev/opensro

Todas as issues de opensro-dev/opensro

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.