Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

The tip-manual gate passes when tips appear outside the tips table

Abierto
#1,480 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Start in internal/tui3/hometip_test.go:237 and inspect the table under ## Every hint codeaf can show in internal/manual/chat/hints-and-tips.md. Run go test ./internal/tui3 -run TestEveryTipIsOnTheManualPage -count=1, then use the two described counterexamples to verify the gate checks the table's contents and order. Done means the current table passes and both counterexamples fail, with the invalidates change entry corrected.

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

Descripción

area:tests bug hygiene sev:papercut

Seen on dev@debffabf6. Surfaced while verifying #1389; introduced by it.

What happened

TestEveryTipIsOnTheManualPage checks manual.Chat().Mentions(n.text) for each tip. That searches the whole chat corpus, so a tip can be deleted from the hints-and-tips.md table, moved out of order, or appear only in another page while the gate stays green. The change entry and manual describe a stronger, word-for-word table contract.

Replication

Deterministic (no model). In a disposable checkout, move one tip line out of the table section into another chat page, then run go test ./internal/tui3 -run TestEveryTipIsOnTheManualPage -count=1. The test still passes because the words remain somewhere in the corpus. Restore the checkout afterward. Reorder two table lines for a second passing counterexample.

Where

internal/tui3/hometip_test.go:237 at dev@debffabf6 uses corpus-wide Mentions. The table is in internal/manual/chat/hints-and-tips.md under ## Every hint codeaf can show.

The fix

Read that exact table section, parse its ordered tip lines, and compare them with the code's ordered tip list.

Acceptance

  • e2e: a documentation command or targeted test fails if a visible tip is absent from the table or its order changes without a matching code change.
  • Unit: the gate rejects the two counterexamples above and accepts the current table.
  • Correct the change entry's gate claim in invalidates.
Lenguaje dominante
Go
Estrellas
115
Forks
14
Merge medio
9 h 38 min
PR fusionados (30 d)
730

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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 Agent-Field/CodeAF

Todos los issues de Agent-Field/CodeAF

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.