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

Abierto Apto para principiantes
#3,779 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go, javascript

Línea de trabajo

Lee scripts/test/assets/qinshiTombOverlay.test.mjs, especialmente fixtureServerRoot y la prueba de huella digital que falla; después, sigue buildKnobLines y la lista de switches que lee. Actualiza el fixture para que derive sus filas de registro de esa lista, usando el valor predeterminado real de cada switch. El trabajo estará listo cuando pase la prueba del asset y añadir un switch de bake sin cambiar la prueba no la rompa.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
97
Forks
61
Merge medio
4 h 25 min
PR fusionados (30 d)
953

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de opensro-dev/opensro

Todos los issues de opensro-dev/opensro

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.