[PR #202] [MERGED] Fix unstable parallel tests #2606

Closed
opened 2025-11-20 07:11:52 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/202
Author: @mlsmaycon
Created: 1/24/2022
Status: Merged
Merged: 1/25/2022
Merged by: @mlsmaycon

Base: mainHead: review-parallel-tests


📝 Commits (10+)

📊 Changes

13 files changed (+87 additions, -51 deletions)

View changed files

📝 .github/workflows/golang-test-build.yml (+1 -1)
📝 .github/workflows/golang-test-darwin.yml (+1 -1)
📝 .github/workflows/golang-test-linux.yml (+1 -1)
📝 .github/workflows/golang-test-windows.yml (+2 -2)
📝 .github/workflows/golangci-lint.yml (+1 -1)
📝 client/internal/engine.go (+7 -1)
📝 client/internal/engine_test.go (+1 -1)
📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 iface/configuration.go (+16 -5)
📝 iface/iface_linux.go (+0 -4)
📝 iface/iface_test.go (+53 -33)
📝 management/server/management_proto_test.go (+1 -1)

📄 Description

  • use the dynamically assigned port for iface tests
    • as we test iface functionality, this should be ok but is not a usual scenario, also, multiple interfaces are not the usual scenario either
  • close Management client grpc connections when closing the engine
  • with closing client grpc, we can use graceful-stop for management when testing, this should avoid async writes when no client is connected
  • re-enabled ci/cd runs on PRs as when a PR comes from a Fork repo, we lose visibility on tests.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/202 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 1/24/2022 **Status:** ✅ Merged **Merged:** 1/25/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `review-parallel-tests` --- ### 📝 Commits (10+) - [`ede3dab`](https://github.com/netbirdio/netbird/commit/ede3dab05bf7ae6b6d5546abfb90e108fabf48ed) update interface tests and configuration messages - [`2e0ed70`](https://github.com/netbirdio/netbird/commit/2e0ed7042f5da57e12cd96d6ed2a939ac14556b4) Merge branch 'main' into review-parallel-tests - [`edcf14e`](https://github.com/netbirdio/netbird/commit/edcf14e89aa8f3cfe6c5f4fe44b82bd88ffd1c3e) little debug - [`7dcf41b`](https://github.com/netbirdio/netbird/commit/7dcf41bddcd54f0e3c66a171a70a2323b0a943cd) little debug on both errors - [`7c3fb95`](https://github.com/netbirdio/netbird/commit/7c3fb95bd032605376350526c752c4f7bf6bd2b7) print all devs - [`024b6ea`](https://github.com/netbirdio/netbird/commit/024b6ea78ae8a2a0dfc2eb87baf9486bc4ca8c0e) list of devices - [`b374429`](https://github.com/netbirdio/netbird/commit/b3744296789c30a7bd826c15f6a2bc58ea006cef) debug func - [`3e58144`](https://github.com/netbirdio/netbird/commit/3e58144787e3826af391337699fd0cf8490c3841) handle interface close - [`1fb23bd`](https://github.com/netbirdio/netbird/commit/1fb23bda11cc57ad61b2cf075a4a6002baf5bdc1) debug socks - [`f4636d1`](https://github.com/netbirdio/netbird/commit/f4636d1bee885bfa9d894ab42c8e0ff2550a2a22) debug socks ### 📊 Changes **13 files changed** (+87 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golang-test-build.yml` (+1 -1) 📝 `.github/workflows/golang-test-darwin.yml` (+1 -1) 📝 `.github/workflows/golang-test-linux.yml` (+1 -1) 📝 `.github/workflows/golang-test-windows.yml` (+2 -2) 📝 `.github/workflows/golangci-lint.yml` (+1 -1) 📝 `client/internal/engine.go` (+7 -1) 📝 `client/internal/engine_test.go` (+1 -1) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `iface/configuration.go` (+16 -5) 📝 `iface/iface_linux.go` (+0 -4) 📝 `iface/iface_test.go` (+53 -33) 📝 `management/server/management_proto_test.go` (+1 -1) </details> ### 📄 Description * use the dynamically assigned port for iface tests * as we test iface functionality, this should be ok but is not a usual scenario, also, multiple interfaces are not the usual scenario either * close Management client grpc connections when closing the engine * with closing client grpc, we can use graceful-stop for management when testing, this should avoid async writes when no client is connected * re-enabled ci/cd runs on PRs as when a PR comes from a Fork repo, we lose visibility on tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 07:11:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2606