Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#4,531 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
85/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, markdown
Lĩnh vực
documentation

Hướng nghiên cứu

Mở workshop/23-ab-experiments.md và kiểm tra hai khối điều kiện cùng phần giải thích về việc chọn biến thể và checkpoint được nêu trong issue. So sánh cách diễn đạt với các tài liệu tham khảo về templating và thử nghiệm A/B được liên kết trong báo cáo. Công việc hoàn tất khi cả hai thẻ đóng đều dùng cú pháp được tài liệu hóa và văn bản mô tả chính xác việc phân xử ngẫu nhiên khi hòa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
53
Fork
35
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của githubnext/gh-aw-workshop

Tất cả issue của githubnext/gh-aw-workshop

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.