-
Notifications
You must be signed in to change notification settings - Fork 307
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugg CI for #334 #337
Debugg CI for #334 #337
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,6 +207,13 @@ func NewState( | |
//---------------------------------------- | ||
// Public interface | ||
|
||
// SetIPFSApi sets the IPFSAPI | ||
func (cs *State) SetIPFSApi(api ipfsapi.CoreAPI) { | ||
cs.mtx.Lock() | ||
defer cs.mtx.Unlock() | ||
cs.IpfsAPI = api | ||
} | ||
Comment on lines
+210
to
+215
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. race detector complains if mutex is not used |
||
|
||
// SetLogger implements Service. | ||
func (cs *State) SetLogger(l log.Logger) { | ||
cs.BaseService.Logger = l | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package racedetector | ||
|
||
var raceDetectorActive = false | ||
|
||
func IsActive() bool { | ||
return raceDetectorActive | ||
} | ||
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why moving it to it's own package makes the CI happy, idk. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤷🏻♂️ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// +build race | ||
|
||
package ipld | ||
package racedetector | ||
|
||
func init() { | ||
raceDetectorActive = true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞 resorted to increasing the timeouts to get the consensus tests to be more reliable. Perhaps this is needed when github is busy?
I just kinda eyeballed these numbers. I have no reasoning for picking the ones I did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's ok I think 👍🏻