Repository navigation
Conversation
|
I don't think it's safe to remove locks around cue lookups. @samalba can chime in, he recently added more locks even though we're using a newer cue runtime. |
|
Unfortunately if I keep the lock in I think our options are:
|
I confirm all calls (including Lookup) need a lock to be thread safe. The symptom without lock on concurrent calls is usually a Cue config error. |
|
Instead of protecting |
|
I have updated the PR to protect every cue call. The only exception is calls to Unfortunately the race condition is still there. So I must have missed an operation which 1) is called by My only idea is |
|
I added protection for |
|
For reference, cue concurrency is discussed here: cuelang/cue#613 |
|
Update: it looks like lock-protecting the |
|
cueflow fix pushed. I am unable to reproduce the race condition now. Please check if you get the same result? |
There was a problem hiding this comment.
No idea why, but by convention Mutex'es are handled without pointer (e.g. l := sync.Mutex{}). There must be a reason, I just don't know it.
982f3d2 to
530b794
Compare
|
I changed the cueflow protection to be more fine-grained (previous version actually serialized execution... doh!) I am still getting race conditions. Without a better understanding of the nature of the underlying concurrency issues in the cue API, I cannot do much better than trying things at random. Help needed... |
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Ported from #17 Signed-off-by: Andrea Luzzardi <[email protected]>
|
This can be closed once #67 is merged. |
Updated the editingTemplate in Todo.js
Pick up dagger/otel-go#25. When go test's -timeout fires, the test binary prints the panic and goroutine stacks, test2json attributes that output to whichever test reported last (possibly one that already passed), and the package fails with no failure event for the tests left running. otelgotest's quiet mode only flushed buffered output on a test failure, so CI shards lost the timeout's dump unless diagnostics were enabled. The runner now routes the timeout dump to the package and flushes unfinished tests' output when their package fails. Quiet output keeps the panic, the running-tests list and the first 64 KiB of the stacks; the package span's logs keep the whole dump. This also picks up dagger/otel-go#17, which makes otel-go's OTLP conversion tolerate a missing resource and missing attribute and log values. The engine's OTLP normalization stays, since a gauge with no Gauge message still panics there; correct its comment, which said #17 was never merged. Update dagql/CI.md, which described the old runner behavior. Signed-off-by: Erik Sipsma <[email protected]>
There was a race condition which caused compute to fail randomly on environments with more than one component.
NOTE: concurrency is a work in progress. The current locking code is a placeholder pending deeper review. The (currently) intended place to implement cue runtime concurrency is in
Compiler(our polyfill for cue.Runtime).