- Notifications
You must be signed in to change notification settings - Fork1.1k
Commitc73b70c
committed
fix(coderd/database/dbfake): use transaction for workspace builder
While investigating a flake I noticed that the dbfake workspace builderexecutes all database inserts without a transaction. Since our realwsbuilder implementation utilizes one it makes sense to do here as well.For example, our normal workspace <-> build relationship is such that aworkspace cannot exist with at least one build. However, ourGetWorkspaces query left joins workspace builds but has types that arenon-nullable, leading to flakes likecoder/internal#1103.1 parentd8b1ca7 commitc73b70c
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
164 | 177 | | |
165 | 178 | | |
166 | 179 | | |
| |||
0 commit comments
Comments
(0)