Skip to content

TestSetTimeoutContextCancel and TestSetTimeoutOrder are flaky #4711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
inancgumus opened this issue Apr 18, 2025 · 0 comments
Open

TestSetTimeoutContextCancel and TestSetTimeoutOrder are flaky #4711

inancgumus opened this issue Apr 18, 2025 · 0 comments

Comments

@inancgumus
Copy link
Member

TestSetTimeoutContextCancel and TestSetTimeoutOrder are flaky:

  github.com/grafana/sobek.(*Runtime).runWrapped()
      /home/runner/work/k6/k6/vendor/github.com/grafana/sobek/runtime.go:2525 +0xe4
  github.com/grafana/sobek.AssertFunction.func1()
      /home/runner/work/k6/k6/vendor/github.com/grafana/sobek/runtime.go:2480 +0x13a
  go.k6.io/k6/internal/js/tc55/timers.(*timers).call()
      /home/runner/work/k6/k6/internal/js/tc55/timers/timers.go:77 +0x98
  go.k6.io/k6/internal/js/tc55/timers.(*timers).timerInitialization.func1()
      /home/runner/work/k6/k6/internal/js/tc55/timers/timers.go:139 +0xeb
  go.k6.io/k6/internal/js/tc55/timers.(*timers).runFirstTask()
      /home/runner/work/k6/k6/internal/js/tc55/timers/timers.go:184 +0x216
  go.k6.io/k6/internal/js/tc55/timers.(*timers).runFirstTask-fm()
      <autogenerated>:1 +0x33
  github.com/mstoykov/k6-taskqueue-lib/taskqueue.(*TaskQueue).innerQueueATask()
      /home/runner/work/k6/k6/vendor/github.com/mstoykov/k6-taskqueue-lib/taskqueue/queuer.go:92 +0x10e
  github.com/mstoykov/k6-taskqueue-lib/taskqueue.(*TaskQueue).Queue.func1()
      /home/runner/work/k6/k6/vendor/github.com/mstoykov/k6-taskqueue-lib/taskqueue/queuer.go:73 +0x38
  go.k6.io/k6/internal/js/eventloop.(*EventLoop).Start()
      /home/runner/work/k6/k6/internal/js/eventloop/eventloop.go:177 +0x277
  go.k6.io/k6/js/modulestest.(*Runtime).RunOnEventLoop()
      /home/runner/work/k6/k6/js/modulestest/runtime.go:111 +0x23d
  go.k6.io/k6/internal/js/tc55/timers_test.TestSetTimeoutContextCancel()
      /home/runner/work/k6/k6/internal/js/tc55/timers/timers_test.go:168 +0x47a
  testing.tRunner()
      /home/runner/sdk/gotip/src/testing/testing.go:1799 +0x21c
  testing.(*T).Run.gowrap1()
      /home/runner/sdk/gotip/src/testing/testing.go:1858 +0x44

Previous read at 0x00c0002be790 by goroutine 41:
  go.k6.io/k6/internal/js/tc55/timers_test.TestSetTimeoutContextCancel.func3()
      /home/runner/work/k6/k6/internal/js/tc55/timers/timers_test.go:165 +0x54

Goroutine 13 (running) created at:
  testing.(*T).Run()
      /home/runner/sdk/gotip/src/testing/testing.go:1858 +0x8dd
  testing.runTests.func1()
      /home/runner/sdk/gotip/src/testing/testing.go:2289 +0x85
  testing.tRunner()
      /home/runner/sdk/gotip/src/testing/testing.go:1799 +0x21c
  testing.runTests()
      /home/runner/sdk/gotip/src/testing/testing.go:2287 +0x96c
  testing.(*M).Run()
      /home/runner/sdk/gotip/src/testing/testing.go:2152 +0xed4
  main.main()
      _testmain.go:57 +0x164

Goroutine 41 (finished) created at:
  go.k6.io/k6/internal/js/tc55/timers_test.TestSetTimeoutContextCancel()
      /home/runner/work/k6/k6/internal/js/tc55/timers/timers_test.go:162 +0x464
  testing.tRunner()
      /home/runner/sdk/gotip/src/testing/testing.go:1799 +0x21c
  testing.(*T).Run.gowrap1()
      /home/runner/sdk/gotip/src/testing/testing.go:1858 +0x44
==================
--- FAIL: TestSetTimeoutContextCancel (0.87s)
    testing.go:1492: race detected during execution of test
--- FAIL: TestSetTimeoutOrder (2.12s)
    testing.go:1492: race detected during execution of test
FAIL
FAIL	go.k6.io/k6/internal/js/tc55/timers	2.164s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant