Skip to content

RELAY-3 intermittently sends the original ticket and fails PR CI #330

Done

Description

@manhpham90vn

PR #326 failed at the first assertion in RELAY-3. The mocked push returned HTTP 200 where the test expected 401. The same relay suite passed locally (12/12, Node v24.22.3).

The fixture replaces the first character of a valid ticket with a fixed character. When the ticket already starts with that character the fixture sends the original ticket. The assertion then expects rejection of a valid request. The timestamp used to issue the ticket varies between runs.

CI failure · Test at the PR head

  • Make the altered test ticket differ for every possible initial character.
  • Verify that both initial-character cases exercise rejection, keep the 401 and zero-delivery assertions, and run the relay suite and PR CI.

Definition of done

  1. The fixture always alters the ticket and the relay suite passes.
  2. The PR build passes the push relay step. Production ticket verification requires no change for this fixture defect.

Tiếng Việt

Bản dịch phần tiếng Anh ở trên. Các ô đánh dấu chỉ nằm ở phần tiếng Anh.

PR #326 thất bại ở phép kiểm tra đầu tiên của RELAY-3. Relay trả HTTP 200 trong khi test chờ 401. Cả 12 test relay đạt khi chạy cục bộ với Node v24.22.3.

Test thay ký tự đầu của ticket hợp lệ bằng một ký tự cố định. Nếu hai ký tự vốn giống nhau, test gửi nguyên ticket hợp lệ và vẫn đòi relay từ chối. Thời điểm cấp ticket thay đổi giữa các lượt chạy.

Định nghĩa hoàn thành

  1. Dữ liệu kiểm thử luôn tạo ra một ticket khác ở cả hai trường hợp ký tự đầu. Giữ các phép kiểm tra HTTP 401 và số lần gửi bằng 0. Cả bộ test relay đạt.
  2. Bước kiểm thử push relay của PR đạt trên CI. Lỗi nằm ở dữ liệu kiểm thử.

Activity

  1. added this to the 0.15.1 milestone on Nov 25, 2026
  2. added
    bug
    on Nov 25, 2026
  3. manhpham90vn commented on Nov 25, 2026

    @manhpham90vn
    CollaboratorAuthor

    Done in full, checked by a separate review against the definition of done:

    Item Verdict Evidence
    1. The fixture always alters the ticket and the relay suite passes Done relay/test/worker.test.js:103 alters the first character to y when it is x, else x; :104 asserts the ticket differs; the 401 and zero-delivery assertions are kept. cd relay && npm test (Node v24.22.3): 12 pass, 0 fail.
    2. The PR build passes the push relay step; production unchanged Done CI run 45536270075 for PR #331 at 4dfe99e: "Test the push relay" success, 12/12. git diff c59ef6b 4dfe99e --stat -- relay touches only the test.

    Commit: 4dfe99e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions