Skip to content

test(task-status): bump waitFor budget to 10 minutes#260

Open
nijeesh-stream wants to merge 1 commit into
mainfrom
nijeeshjoshy/tests-task-status-timeout
Open

test(task-status): bump waitFor budget to 10 minutes#260
nijeesh-stream wants to merge 1 commit into
mainfrom
nijeeshjoshy/tests-task-status-timeout

Conversation

@nijeesh-stream
Copy link
Copy Markdown
Contributor

Summary

  • Doubles the waitFor budget in TaskStatusTest > Can get task status by id from 5 minutes to 10 minutes.

  • The 5-minute budget was set in #256 because the shared CI app's asynq queue is routinely backed up. That budget is now also timing out — e.g. the latest CI run on PR #259 (build 26518080390) hit the cap while polling Channel.deleteMany's task to completion:

    TaskStatusTest > Can get task status by id FAILED
        org.opentest4j.AssertionFailedError: Unexpected exception thrown: org.opentest4j.AssertionFailedError
            at io.getstream.chat.java.BasicTest.waitFor(BasicTest.java:160)
        Caused by:
        java.util.concurrent.TimeoutException
    
  • 10 minutes still surfaces a genuinely stuck queue (waitFor will fail), but gives healthy-but-slow runs enough headroom to actually finish polling.

Test plan

  • ./gradlew compileTestJava (JDK 11 toolchain)
  • ./gradlew spotlessCheck
  • CI run completes TaskStatusTest > Can get task status by id within the new budget

Made with Cursor

#256 bumped TaskStatusTest > "Can get task status by id" from the
default 5s to 5 minutes because the shared CI app's asynq queue is
routinely backed up. The 5 minute budget is now also timing out
under load — e.g. PR #259 build #26518080390 hit the cap while
polling Channel.deleteMany's task to completion. Give the test
another 5 minutes of headroom so a stuck queue still surfaces but
healthy-but-slow runs stop failing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant