Skip to content

bug: add test to confirm no race exists anymore#312

Merged
meling merged 1 commit intomasterfrom
meling/204/bug-test-concurrent-newconfig
Mar 25, 2026
Merged

bug: add test to confirm no race exists anymore#312
meling merged 1 commit intomasterfrom
meling/204/bug-test-concurrent-newconfig

Conversation

@meling
Copy link
Member

@meling meling commented Mar 25, 2026

Fixes #204

$ go test -run TestConfigurationExtendConcurrent -race -count=1000
PASS
ok      github.com/relab/gorums 4.503s

@deepsource-io
Copy link
Contributor

deepsource-io bot commented Mar 25, 2026

DeepSource Code Review

We reviewed changes in aef562f...10d9914 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Go Mar 25, 2026 9:51p.m. Review ↗
Shell Mar 25, 2026 9:51p.m. Review ↗

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new regression test intended to ensure concurrent configuration creation/reconfiguration no longer triggers the data race described in #204.

Changes:

  • Add a concurrent test (TestNewConfigConcurrent) in config_test.go.
  • Add sync import to support the concurrency test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@meling meling force-pushed the meling/204/bug-test-concurrent-newconfig branch from 811da43 to 50c7729 Compare March 25, 2026 21:43
@meling meling requested a review from Copilot March 25, 2026 21:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

$ go test -run TestConfigurationExtendConcurrent -race -count=1000
PASS
ok      github.com/relab/gorums 4.503s
@meling meling force-pushed the meling/204/bug-test-concurrent-newconfig branch from 50c7729 to 10d9914 Compare March 25, 2026 21:51
@meling meling merged commit 9b33a2c into master Mar 25, 2026
5 checks passed
@meling meling deleted the meling/204/bug-test-concurrent-newconfig branch March 25, 2026 21:55
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.

bug: concurrent reconfiguration causes data race

2 participants