Skip to content

[Bug]: WeixinLeaseLifecycleTest.standbyKeepsTryingAndTakesOverWithoutConfigurationChange fails intermittently on CI (3s sent.await budget vs. lease-expiry backoff) #3547

Open

Description

@uhhgxg

Describe the bug

WeixinLeaseLifecycleTest.standbyKeepsTryingAndTakesOverWithoutConfigurationChange fails intermittently on CI, leaving main red on the build (ubuntu-latest) lane:

[ERROR] WeixinLeaseLifecycleTest.standbyKeepsTryingAndTakesOverWithoutConfigurationChange:148
        expected: <true> but was: <false>
[ERROR] Tests run: 71, Failures: 1, Errors: 0, Skipped: 1

The failing assertion is assertTrue(sent.await(3, TimeUnit.SECONDS)). After the test releases the pre-held lease, the standby channel must complete the whole takeover chain inside 3 seconds: acquire the lease (retry every leaseMs / 3 = 500 ms) → start the provider session → long-poll getupdates → claim and dispatch → sendmessage.

Why 3 s is not always enough on a shared runner

Expected behavior

The takeover test should tolerate multi-second stalls on CI runners.

To Reproduce

Run the agentscope-extensions-channel-weixin module repeatedly on a loaded runner; the red run above is on unmodified main.

Environment (please complete the following information):

  • AgentScope-Java Version: main (11170011)
  • Java Version: 17 (CI lane)
  • OS: ubuntu-latest (GitHub Actions runner)

Additional context

Happy to send a PR consistent with the #2751/#3505 precedent: widen sent.await(3s) to 10 s and @Timeout(20) to @Timeout(60) in this test class.

Activity

  1. added a commit that references this issue on Oct 14, 2026
    c68d839
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions