Skip to content

[Fix] Prevent concurrent tests from reusing environment names - #3077

Merged
mrubens merged 1 commit into
developfrom
fix/environment-factory-name-collision
Sep 21, 2026
Merged

mrubens merged 1 commit into
developfrom
fix/environment-factory-name-collision

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

​Opened on behalf of @mrubens. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

Default environment factory names now retain their readable lorem stem and append a UUID. Explicitly provided names remain unchanged, and focused regression coverage verifies both behaviors.

Why this change was made

Concurrent Vitest workers can generate the same two-word lorem name, causing PostgreSQL 23505 failures on the globally unique environments.name index during unrelated test setup.

Impact

Database-backed tests no longer depend on a collision-prone random-word default. Production environment naming and caller-provided fixture names are unchanged.

@roomote-community

roomote-community Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed a811e1a

@roomote-roomote
roomote-roomote Bot marked this pull request as ready for review September 21, 2026 22:47
@mrubens
mrubens merged commit 23231b0 into develop Sep 21, 2026
17 checks passed
@mrubens
mrubens deleted the fix/environment-factory-name-collision branch September 21, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant