Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd/database/dbfake): use transaction for workspace builder#20506

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 1 commit intomainfrommafredri/fix-dbfake-tx
Oct 27, 2025

Conversation

@mafredri
Copy link
Member

While investigating a flake I noticed that the dbfake workspace builder
executes all database inserts without a transaction. Since our real
wsbuilder implementation utilizes one it makes sense to do here as well.

For example, our normal workspace <-> build relationship is such that a
workspace cannot exist with at least one build. However, our
GetWorkspaces query left joins workspace builds but has types that are
non-nullable, leading to flakes likecoder/internal#1103.

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.
@mafredrimafredri marked this pull request as ready for reviewOctober 27, 2025 22:49
@mafredrimafredri requested a review fromsreyaOctober 27, 2025 22:50
Copy link
Collaborator

@sreyasreya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice, this is a good fine 👍

@mafredrimafredri merged commitc3cbd97 intomainOct 27, 2025
32 checks passed
@mafredrimafredri deleted the mafredri/fix-dbfake-tx branchOctober 27, 2025 23:06
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 27, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@sreyasreyasreya approved these changes

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mafredri@sreya

[8]ページ先頭

©2009-2025 Movatter.jp