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

flake: TestPromoteChatQueuedMessage

Đang mở
#1,615 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

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

Đánh giá

Issue này chưa được đánh giá.

Mô tả

flake

CI Failure Details

CI Run Link: https://github.com/coder/coder/actions/runs/28843531069
Failed Job: https://github.com/coder/coder/actions/runs/28843531069/job/85542337730 (test-go-pg (macos-latest))

Commit Info:

Failure Output

=== FAIL: coderd TestPromoteChatQueuedMessage/WhileRunning (2.48s)
exp_chats_test.go:9738:
    Error:       "[]" should have 1 item(s), but has 0
    Test:        TestPromoteChatQueuedMessage/WhileRunning

Error Analysis

TestPromoteChatQueuedMessage/WhileRunning promotes a queued message while the chat is running and then expects GetChatQueuedMessages to return exactly one queued item (the promoted message) immediately after. In this run, the queued list was empty, indicating the queued message was drained before the assertion. This looks timing-sensitive: the background worker can auto-promote/dequeue the message before the test checks the intermediate queue state.

Root Cause Assessment

Classification: Flaky test (timing-sensitive async queue state)

Data race / crash checks

Scanned the failing job logs around the failure for WARNING: DATA RACE, panic:, and OOM indicators; none found.

Assignment Analysis

Intended blame:

  • git blame -L 9715,9745 coderd/exp_chats_test.go

Tooling limitation: line-level blame isn’t available here, so I used recent file history as a proxy.

Recent file history:

  • git log --oneline -10 --follow coderd/exp_chats_test.go
    • Most recent substantive change: 1eb5d579 ("fix: unblock manual chat title generation for unowned chats") by Michael Suchacz

Assigning to @ibetitsmike as the most recent meaningful modifier of the test file. Please reassign if another owner is more appropriate.

Related Issues

No direct duplicates found after searching for:

  • "TestPromoteChatQueuedMessage"
  • "TestPromoteChatQueuedMessage/WhileRunning"
  • "exp_chats_test.go"
  • "should have 1 item(s), but has 0"
  • "promote" + "queue" + "chat" in coder/internal

Related but different tests: coder/internal#1529 (chatd promote queued message order), coder/internal#1523 (promote queued while requires action) — different package/tests.

Reproduction (best effort)

go test ./coderd -run TestPromoteChatQueuedMessage -count=1
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
3
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 coder/internal

Tất cả issue của coder/internal

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.