Skip to content
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

refactor: v2 simplify tracing #924

Merged
merged 59 commits into from
Sep 19, 2023
Merged

refactor: v2 simplify tracing #924

merged 59 commits into from
Sep 19, 2023

Conversation

dennis-tra
Copy link
Contributor

The leftovers from #878.

Changes:

  • simplifies event tracing
  • validates BucketSize and BootstrapPeers DHT config options
  • extracts amino backend initialization

iand and others added 10 commits September 18, 2023 16:23
Moved ticker initialization outside the garbage collection goroutine. There was a race condition between advancing the mocked time in TestProvidersBackend_GarbageCollection and the initialization of the ticker that triggers the garbage collection runs. It happened that we were advancing the time without the ticker being initialized. Hence, advancing the time hasn't had any effect.

In this PR, I moved the ticker initialization outside the garbage collection goroutine. This means the ticker will be registered with the MockClock object after StartGarbageCollection returns. Calls to mockClock.Add will therefore trigger the ticker.
* Increase test iterations to trigger flake

* Add failfast

* Replace routing notification channel with a RoutingNotifier type

* Remove unused code

* Remove test count
@dennis-tra dennis-tra requested review from iand, guillaumemichel and a team as code owners September 19, 2023 12:44
v2/tele/tele.go Show resolved Hide resolved
v2/tele/tele.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 All issues related to the v2 rewrite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants