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

[workshop-sync] workshop/23-ab-experiments.md: invalid \{\\{\#endif}} templating syntax and incorrect tie-break description

Abierto Apto para principiantes
#4,531 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
85/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github, markdown

Línea de trabajo

Abre workshop/23-ab-experiments.md e inspecciona los dos bloques condicionales y la explicación sobre la selección de variantes y el checkpoint mencionados en el issue. Compara la redacción con las referencias sobre plantillas y experimentos A/B enlazadas en el informe. El trabajo estará terminado cuando ambas etiquetas de cierre usen la sintaxis documentada y el texto describa correctamente cómo se resuelven los empates de forma aleatoria.

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

Descripción

documentation

Workshop file reviewed

workshop/23-ab-experiments.md

Problem 1 — invalid templating syntax

The file uses {{#endif}} to close conditional template blocks, for example:

{{#if experiments.output_style }}
Write according to the output_style: ${{ experiments.output_style }}.
...
{{#endif}}

This appears twice. {{#endif}} is not valid gh-aw templating syntax and will not close the conditional block.

Problem 2 — incorrect tie-break description

The file states:

On each run, gh-aw picks the variant with the lowest invocation count so far (ties are broken by first-in-array order), then saves the updated counts and uploads them as the experiment artifact.

and the related checkpoint item:

You can predict and verify third-variant assignment order from lowest-count selection with first-in-array tie breaks

Current correct syntax

Per the live gh-aw templating reference (https://github.github.com/gh-aw/reference/templating/), conditional blocks are closed with {{/if}}, not {{#endif}} — confirmed example: {{#if expression}} ... {{/if}}.

Per the live A/B experiments reference (https://github.github.com/gh-aw/experimental/experiments/, "Statistical balancing" section):

If multiple variants are tied, including on the first run, one of them is chosen at random.

Tie-breaking is random, not deterministic first-in-array order, so the exact third/fourth/fifth-run assignment cannot be reliably predicted when counts are tied.

Suggested fix

  1. Replace both occurrences of {{#endif}} with {{/if}}.
  2. Update the explanation to: "gh-aw picks the variant with the lowest invocation count so far (ties, including on the first run, are broken at random)".
  3. Reword the related checkpoint item to reflect that tie-break order is random, so exact assignment order can only be predicted when counts are not tied.

Generated by 🔍 Workshop Sync Check · copilot · auto · 184.9 AIC · ⌖ 4.6 AIC · ⊞ 9.2K · ◷

  • expires on Oct 14, 2026, 5:02 AM UTC
Lenguaje dominante
JavaScript
Estrellas
52
Forks
26
Merge medio
12 h 58 min
PR fusionados (30 d)
15

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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 githubnext/gh-aw-workshop

Todos los issues de githubnext/gh-aw-workshop

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.