Skip to content

test(flake): Windows CI bot-messages.test.js:1032 asserts calls.length === 1 (got 2) under 11s runner load #3253

Backlog

Description

@Fei2411

Observed on PR #3250 (windows-latest · Node 24 (shard 3/4), job https://github.com/Fei-Craft/DS-Bot/actions/runs/47545657006/job/145753839235):

test at test\bot-messages.test.js:1026:1
✖ Bots keep delegating and posting with no count of messages or rounds (11467.7107ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
  2 !== 1
      at TestContext.<anonymous> (ds-bot/test/bot-messages.test.js:1032:10)

Root cause

The test runs 60 sequential delegate_work admissions + 5 post_to_group calls and assumes only 1 active claim has started on Writer (agents.get('b').calls.length === 1) and 59 remain in ready. On a loaded Windows CI runner, the 65 sequential admissions took ~11.47s, allowing a background reconciler/delivery sweep to dispatch a second call to Writer before line 1032 ran.

All 2,165 other tests in shard 3/4 and all Linux/Node 22/macOS/Desktop/Mobile/Cloud-Auth/Docker checks passed.

Activity

  1. added
    bug
    on Dec 5, 2026
  2. Fei2411 commented on Dec 5, 2026

    @Fei2411
    CollaboratorAuthor

    Also observed on PR #3250 (windows-latest · Node 24 (shard 1/4), job https://github.com/Fei-Craft/DS-Bot/actions/runs/47545657006/job/145753839228):

    test at test\delegation-settlement-2903-2921.test.js:978:3
    ✖ #2921 real-runtime contract: child completes while parent is busy in a tool call, and post-tool 429 needs_verification unblocks sibling results (9243.0743ms)
      Error: waitUntil timed out after 5000ms
          at waitUntil (ds-bot/test/delegation-settlement-2903-2921.test.js:65:9)
          at ds-bot/test/delegation-settlement-2903-2921.test.js:1028:5
    

    2,172/2,173 passed in shard 1/4; re-running failed jobs on PR #3250.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions