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

test(agent/agentcontainers): fix test data race due to list manipulation#18250

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

Conversation

mafredri
Copy link
Member

@@ -378,6 +378,8 @@ func (api *API) updateContainers(ctx context.Context) error {

return xerrors.Errorf("list containers failed: %w", err)
}
// Clone to avoid test flakes due to data manipulation.
updated.Containers = slices.Clone(updated.Containers)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Review: Perhaps not ideal, but I rather fix it here than in all the tests.

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

rust rewrite wen 🙃

mafredri reacted with laugh emoji
@mafredri
Copy link
MemberAuthor

rust rewrite wen 🙃

Yes. But also no need, this can be refactored incoder/internal#666 where we no longer need to manipulate the data.

@mafredrimafredrienabled auto-merge (squash)June 5, 2025 14:47
@mafredrimafredri merged commit2f8b056 intomainJun 5, 2025
36 checks passed
@mafredrimafredri deleted the mafredri/test-fix-agent-agentcontainers-list-race-flake branchJune 5, 2025 14:53
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 5, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@hugodutkahugodutkaAwaiting requested review from hugodutka

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

data race in agent/agentcontainers: processUpdatedContainersLocked
2 participants
@mafredri@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp