Skip to content

types/project: collect service results in local map to avoid race - #869

Open
SAY-5 wants to merge 5 commits into
compose-spec:mainfrom
SAY-5:fix/services-race-852
Open

SAY-5 wants to merge 5 commits into
compose-spec:mainfrom
SAY-5:fix/services-race-852

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 2, 2026

Copy link
Copy Markdown

Closes #852. Collector goroutine wrote newProject.Services while the dispatch loop read it. Use a local map and assign after eg.Wait().

@SAY-5
SAY-5 requested a review from ndeloof as a code owner May 2, 2026 06:10
@SAY-5
SAY-5 force-pushed the fix/services-race-852 branch from 8649a1b to ba98d65 Compare May 2, 2026 06:21
@github-actions github-actions Bot added the Stale label Aug 2, 2026
@SAY-5

SAY-5 commented Aug 2, 2026

Copy link
Copy Markdown
Author

Still relevant. The race in WithServicesTransform is unchanged on main, and #852 was closed by the stale bot rather than fixed.

@github-actions github-actions Bot removed the Stale label Aug 5, 2026
SAY-5 added 3 commits August 16, 2026 02:44
Closes compose-spec#852. Concurrent collector goroutine writing newProject.Services raced with the dispatch loop reading it.

Signed-off-by: SAY-5 <say.apm35@gmail.com>
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@SAY-5
SAY-5 force-pushed the fix/services-race-852 branch from ce9241c to 70ee31b Compare August 16, 2026 09:44
@SAY-5
SAY-5 requested a review from glours as a code owner August 23, 2026 06:36
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.

Data race

1 participant