-
Notifications
You must be signed in to change notification settings - Fork 164
Update Go actions to use go.mod for versioning and adjust depth #6930
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
Conversation
runtime/connections.go
Outdated
| r.instanceMu.RLock() | ||
| defer r.instanceMu.RUnlock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't safe – there are actions in this scope that may run a long time, so it can lead to hanging that doesn't respond to a cancelled ctx. What is the exact race condition you are trying to mitigate here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: DATA RACE
Write at 0x00c0004b4398 by goroutine 279:
github.com/rilldata/rill/runtime.(*Runtime).UpdateInstanceConnector()
/Users/grahamplata/dev/rilldata/rill/runtime/runtime.go:201 +0x5b0
github.com/rilldata/rill/runtime/reconcilers.(*ConnectorReconciler).Reconcile()
/Users/grahamplata/dev/rilldata/rill/runtime/reconcilers/connector.go:90 +0x39c
github.com/rilldata/rill/runtime.(*Controller).invoke.func1()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1330 +0x8ec
Previous read at 0x00c0004b4398 by goroutine 278:
github.com/rilldata/rill/runtime.(*Runtime).ConnectorConfig()
/Users/grahamplata/dev/rilldata/rill/runtime/connections.go:220 +0x388
github.com/rilldata/rill/runtime.(*Runtime).AcquireHandle()
/Users/grahamplata/dev/rilldata/rill/runtime/connections.go:40 +0x60
github.com/rilldata/rill/runtime.(*Runtime).Repo()
/Users/grahamplata/dev/rilldata/rill/runtime/connections.go:65 +0x98
github.com/rilldata/rill/runtime/reconcilers.(*ModelReconciler).newModelEnv()
/Users/grahamplata/dev/rilldata/rill/runtime/reconcilers/model.go:1383 +0x1f4
github.com/rilldata/rill/runtime/reconcilers.(*ModelReconciler).Reconcile()
/Users/grahamplata/dev/rilldata/rill/runtime/reconcilers/model.go:127 +0x3e8
github.com/rilldata/rill/runtime.(*Controller).invoke.func1()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1330 +0x8ec
Goroutine 279 (running) created at:
github.com/rilldata/rill/runtime.(*Controller).invoke()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1294 +0x97c
github.com/rilldata/rill/runtime.(*Controller).trySchedule()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1253 +0x458
github.com/rilldata/rill/runtime.(*Controller).processQueue()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1065 +0x1e0
github.com/rilldata/rill/runtime.(*Controller).Run()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:208 +0x61c
github.com/rilldata/rill/runtime.(*registryCache).restartController.func1()
/Users/grahamplata/dev/rilldata/rill/runtime/registry.go:446 +0x8a0
Goroutine 278 (running) created at:
github.com/rilldata/rill/runtime.(*Controller).invoke()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1294 +0x97c
github.com/rilldata/rill/runtime.(*Controller).trySchedule()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1253 +0x458
github.com/rilldata/rill/runtime.(*Controller).processQueue()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:1065 +0x1e0
github.com/rilldata/rill/runtime.(*Controller).Run()
/Users/grahamplata/dev/rilldata/rill/runtime/controller.go:208 +0x61c
github.com/rilldata/rill/runtime.(*registryCache).restartController.func1()
/Users/grahamplata/dev/rilldata/rill/runtime/registry.go:446 +0x8a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I think this should fix it: #7014
Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com>
* chore: update Go actions to use go.mod for versioning and adjust checkout fetch depth * fix: update go-version-file path to include leading dot in workflow files * fix: update Go setup to specify version directly in workflow files * nit: enable caching in Go setup comparison * fix: reorder * fix: simplify workflow files and reorder * fix: handle error in TestRBAC for CreateProjectWhitelistedDomain * fix: remove unnecessary error check in newTestServer function * fix: improve graceful shutdown handling for gRPC and HTTP servers * fix: use errors.Is * fix: adjust parallel execution in metrics view comparison test * fix: simplify graceful shutdown handling * nit * fix: graceful shutdown handling for HTTP server with timeout * fix: improve graceful shutdown handling in HTTP server * nit * fix: add mutex for thread-safe access to instance configuration * revert: changes to runtime * Update runtime/runtime.go Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com> * sync --------- Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com>
* chore: update Go actions to use go.mod for versioning and adjust checkout fetch depth * fix: update go-version-file path to include leading dot in workflow files * fix: update Go setup to specify version directly in workflow files * nit: enable caching in Go setup comparison * fix: reorder * fix: simplify workflow files and reorder * fix: handle error in TestRBAC for CreateProjectWhitelistedDomain * fix: remove unnecessary error check in newTestServer function * fix: improve graceful shutdown handling for gRPC and HTTP servers * fix: use errors.Is * fix: adjust parallel execution in metrics view comparison test * fix: simplify graceful shutdown handling * nit * fix: graceful shutdown handling for HTTP server with timeout * fix: improve graceful shutdown handling in HTTP server * nit * fix: add mutex for thread-safe access to instance configuration * revert: changes to runtime * Update runtime/runtime.go Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com> * sync --------- Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com>
Investigate CI issues for Go resolves: https://github.com/rilldata/rill-private-issues/issues/1389
Checklist: