[PR #269] [MERGED] Run tests in serial and update multi-peer test #12405

Closed
opened 2026-08-05 02:05:49 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/269
Author: @mlsmaycon
Created: 3/14/2022
Status: Merged
Merged: 3/16/2022
Merged by: @mlsmaycon

Base: mainHead: engine-tests-review


📝 Commits (10+)

📊 Changes

5 files changed (+51 additions, -37 deletions)

View changed files

📝 .github/workflows/golang-test-darwin.yml (+1 -1)
📝 .github/workflows/golang-test-linux.yml (+13 -13)
📝 .github/workflows/golang-test-windows.yml (+9 -3)
📝 client/internal/engine_test.go (+28 -15)
📝 iface/iface_windows.go (+0 -5)

📄 Description

Few points on this PR:

  • Updates test workflows with serial execution to avoid collision of ports and resource names.

  • Also, used -exec sudo flag for UNIX tests and removed not-needed limits configuration on Linux and added a 5 minutes timeout.

  • Updated the multi-peer tests in the client/internal/engine_test.go to provide proper validation when creating or starting a peer engine instance fails.

  • As some operations of the tests running on windows are slow, we will experiment with disabling the Defender before restoring cache and checkout a repository, then we reenable it to run the tests.

  • disabled extra logs for windows interface


🔄 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/269 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 3/14/2022 **Status:** ✅ Merged **Merged:** 3/16/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `engine-tests-review` --- ### 📝 Commits (10+) - [`29f8058`](https://github.com/netbirdio/netbird/commit/29f80586fe2b18c58e1fc41dd700cf4b486b9a51) Debugging stop loop - [`5ffb253`](https://github.com/netbirdio/netbird/commit/5ffb25382a7b59129e4c3d08fae7fb7bf7b2b7ed) Use time ticker for test checks with loop tag - [`a66ba39`](https://github.com/netbirdio/netbird/commit/a66ba3959fae2df32a68776731aeabb45e91f86d) Break loop when timeout - [`5ebb2ae`](https://github.com/netbirdio/netbird/commit/5ebb2aef1fda1600cc2f696e719f1d38070ebf9f) run many times - [`b3782b1`](https://github.com/netbirdio/netbird/commit/b3782b16afd4399a24917cd35fdf2fed7696b99d) handling engine start error - [`fd9fcf0`](https://github.com/netbirdio/netbird/commit/fd9fcf048e3a60ee8813872bfa2d44a2644ae081) Set timeout for action - [`e8e2f31`](https://github.com/netbirdio/netbird/commit/e8e2f31819a5caedfa1042ed52ebfa7f25044ad0) Check length of started peers - [`9199848`](https://github.com/netbirdio/netbird/commit/9199848c7279f5f303293fd0ed127c1c3046b41a) Log Create engine - [`cabc53c`](https://github.com/netbirdio/netbird/commit/cabc53c0794098173b5e3bc9cba4327b429e5a73) Run 15x - [`7b868a6`](https://github.com/netbirdio/netbird/commit/7b868a6703302c89ae2f24dca2e19728cce6cf34) Run once with timeout and preserve GOPATH ### 📊 Changes **5 files changed** (+51 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golang-test-darwin.yml` (+1 -1) 📝 `.github/workflows/golang-test-linux.yml` (+13 -13) 📝 `.github/workflows/golang-test-windows.yml` (+9 -3) 📝 `client/internal/engine_test.go` (+28 -15) 📝 `iface/iface_windows.go` (+0 -5) </details> ### 📄 Description Few points on this PR: - Updates test workflows with serial execution to avoid collision of ports and resource names. - Also, used -exec sudo flag for UNIX tests and removed not-needed limits configuration on Linux and added a 5 minutes timeout. - Updated the multi-peer tests in the [client/internal/engine_test.go](client/internal/engine_test.go) to provide proper validation when creating or starting a peer engine instance fails. - As some operations of the tests running on windows are slow, we will experiment with disabling the Defender before restoring cache and checkout a repository, then we reenable it to run the tests. - disabled extra logs for windows interface --- <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 2026-08-05 02:05:49 -04:00
saavagebueno changed title from [PR #269] [MERGED] Run tests in serial and update multi-peer test to [PR #269] Run tests in serial and update multi-peer test 2026-08-05 02:08:14 -04:00
saavagebueno changed title from [PR #269] Run tests in serial and update multi-peer test to [PR #269] [MERGED] Run tests in serial and update multi-peer test 2026-08-05 03:05:56 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12405