-
Notifications
You must be signed in to change notification settings - Fork 64
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
Investigate controller tests hanging with golang 1.21.0 and unpin golang version #2768
Comments
List of hopefully related findings
|
Golang 1.21 causes some of our tests to hang: cloudfoundry/korifi#2768 Co-authored-by: Danail Branekov <danailster@gmail.com> Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Reproducible with golang 1.21.1 as well |
Golang 1.21 causes some of our tests to hang: cloudfoundry/korifi#2768 Co-authored-by: Danail Branekov <danailster@gmail.com>
There is some evidence on the internet that race detection might cause test times regression with 1.21: golang/go#61852 It might be completely unrelated, but we could try turning race detection off and see whether tests are still getting stuck. |
I can run the tests with Golang v1.21.4 locally. Are we able to use that version in our GitHub actions? |
It looks to me like if we just revert the change to pin the version, we will get 1.21.5, since that's what golang:latest points to currently. |
...but i was able to reproduce the hanging issue with Golang 1.21.4, even on a mac. I am trying it again without the --race argument to see if it behaves better. |
It does appear that
from the controllers/controllers/workloads directory a couple times After adding I am retesting it now with --race turned on, but single-threaded. |
Running the test that @julian-hj ran with golang 1.21.5 on Ubuntu. So far, so good, but will let it continue for a bit. |
Tests are no longer hanging and we have bumped golang quite some time ago. Closing therefore. |
After bumping golang to
1.21.0
we started observing hangs in the controllers tests that went away when we pinned go to1.20.7
. The same hang would also manifest itself in concourse. This would block the pipeline so that no PR could get through.We need to investigate this further since this blocks us from running on the lates go version. Once a proper solution is found we should rever the following commits
The text was updated successfully, but these errors were encountered: