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

fix_(tests): extract subscriber logic from RPC HealthManager #6147

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

friofry
Copy link
Contributor

@friofry friofry commented Nov 29, 2024

  • Subscription common logic is extracted to a separate type.
  • Fix race where go routing extracts value from sync.map and then another go routine calls unsubscribe and closes the channel before the first go routing tries to write to the channel.
  • moved TestInterleavedChainStatusChanges TestDelayedChainUpdate to the correct file
  • Renamed test suites with duplicate names

closes #6139

Copy link

github-actions bot commented Nov 29, 2024

We require commits to follow the Conventional Commits, but with _ for non-breaking changes.
Please fix these commit messages:

address PR feedback
Update healthmanager/subscription_manager_test.go
Update healthmanager/subscription_manager_test.go
Update healthmanager/subscription_manager_test.go
fix_(tests): extract subscriber logic from RPC Health Manager

@friofry friofry force-pushed the ab/issue-6139-fix-tests branch 2 times, most recently from a5e57ec to 60964ab Compare November 29, 2024 14:59
@status-im-auto
Copy link
Member

status-im-auto commented Nov 29, 2024

Jenkins Builds

Click to see older builds (24)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a1d478e #1 2024-11-29 15:00:15 ~4 min macos 📦zip
✔️ a1d478e #1 2024-11-29 15:00:16 ~4 min linux 📦zip
✖️ a1d478e #1 2024-11-29 15:00:43 ~5 min tests-rpc 📄log
✔️ a1d478e #1 2024-11-29 15:00:48 ~5 min ios 📦zip
✔️ a1d478e #1 2024-11-29 15:00:51 ~5 min android 📦aar
✔️ a1d478e #1 2024-11-29 15:01:12 ~5 min macos 📦zip
✔️ a1d478e #1 2024-11-29 15:01:26 ~5 min windows 📦zip
✔️ a1d478e #1 2024-11-29 15:25:55 ~30 min tests 📄log
✔️ 60964ab #2 2024-11-29 15:04:52 ~4 min macos 📦zip
✔️ 60964ab #2 2024-11-29 15:05:29 ~5 min linux 📦zip
✔️ 60964ab #2 2024-11-29 15:05:45 ~4 min windows 📦zip
✔️ 60964ab #2 2024-11-29 15:05:57 ~5 min tests-rpc 📄log
✔️ 60964ab #2 2024-11-29 15:06:17 ~5 min android 📦aar
✔️ 60964ab #2 2024-11-29 15:06:23 ~5 min ios 📦zip
✔️ 60964ab #2 2024-11-29 15:06:48 ~5 min macos 📦zip
✖️ 60964ab #2 2024-11-29 15:56:27 ~30 min tests 📄log
✔️ a2ccc88 #3 2024-12-02 06:41:58 ~3 min macos 📦zip
✖️ a2ccc88 #3 2024-12-02 06:42:07 ~3 min tests 📄log
✔️ a2ccc88 #3 2024-12-02 06:42:27 ~4 min windows 📦zip
✔️ a2ccc88 #3 2024-12-02 06:42:42 ~4 min linux 📦zip
✔️ a2ccc88 #3 2024-12-02 06:43:13 ~5 min ios 📦zip
✔️ a2ccc88 #3 2024-12-02 06:43:28 ~5 min macos 📦zip
✔️ a2ccc88 #3 2024-12-02 06:43:47 ~5 min tests-rpc 📄log
✔️ a2ccc88 #3 2024-12-02 06:45:09 ~7 min android 📦aar
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 4a91a95 #4 2024-12-02 06:44:57 ~2 min tests 📄log
✔️ 4a91a95 #4 2024-12-02 06:46:17 ~4 min macos 📦zip
✔️ 4a91a95 #4 2024-12-02 06:46:39 ~4 min windows 📦zip
✔️ 4a91a95 #4 2024-12-02 06:47:25 ~4 min linux 📦zip
✔️ 4a91a95 #4 2024-12-02 06:48:37 ~4 min tests-rpc 📄log
✔️ 4a91a95 #4 2024-12-02 06:48:43 ~5 min ios 📦zip
✔️ 4a91a95 #4 2024-12-02 06:48:46 ~5 min macos 📦zip
✖️ ad48a7b #5 2024-12-02 06:49:06 ~3 min tests 📄log
✔️ ad48a7b #5 2024-12-02 06:50:38 ~3 min windows 📦zip
✔️ ad48a7b #4 2024-12-02 06:50:46 ~5 min android 📦aar
✔️ ad48a7b #5 2024-12-02 06:52:03 ~4 min linux 📦zip
✔️ ad48a7b #5 2024-12-02 06:53:14 ~6 min macos 📦zip
✔️ ad48a7b #5 2024-12-02 06:53:17 ~4 min tests-rpc 📄log
✔️ ad48a7b #5 2024-12-02 06:54:04 ~5 min macos 📦zip
✔️ ad48a7b #5 2024-12-02 06:54:36 ~5 min ios 📦zip

Copy link
Collaborator

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@@ -14,3 +14,4 @@ shell.nix @status-im/devops
# Feel free to add yourself for any new packages you implement.
/cmd/status-backend @igor-sirotin
/internal/sentry @igor-sirotin
/healthmanager @friofry
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔥

healthmanager/subscription_manager_test.go Outdated Show resolved Hide resolved
healthmanager/subscription_manager_test.go Outdated Show resolved Hide resolved
healthmanager/subscription_manager_test.go Outdated Show resolved Hide resolved
healthmanager/subscription_manager_test.go Outdated Show resolved Hide resolved
friofry and others added 4 commits December 2, 2024 10:40
* Subscription common logic is extracted to a separate type.
* Fix race where go routing extracts value from sync.map and then another go routine calls unsubscribe and closes the channel before the first go routing tries to write to the channel.
* moved TestInterleavedChainStatusChanges TestDelayedChainUpdate to the correct file
* Renamed test suites with duplicate names

updates CODEOWNERS
closes #6139
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.

Flaky test: TestDelayedChainUpdate
4 participants