Skip to content

feat: implement simple instance locking mechanism to prevent multiple instances of the application#377

Merged
dz0ny merged 9 commits intomainfrom
fix/single-instance
Sep 22, 2025
Merged

feat: implement simple instance locking mechanism to prevent multiple instances of the application#377
dz0ny merged 9 commits intomainfrom
fix/single-instance

Conversation

@dz0ny
Copy link
Member

@dz0ny dz0ny commented Sep 19, 2025

@dz0ny dz0ny force-pushed the fix/single-instance branch from 823a0c5 to 7b54f25 Compare September 19, 2025 13:07
@github-actions
Copy link

github-actions bot commented Sep 19, 2025

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ParetoSecurity/agent/cmd 37.19% (+0.37%) 👍
github.com/ParetoSecurity/agent/cmd/paretosecurity-tray 0.00% (ø)
github.com/ParetoSecurity/agent/shared 58.36% (+1.93%) 👍
Total 46.80%

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ParetoSecurity/agent/cmd/paretosecurity-tray/main.go 0.00% (ø) 0 0 0
github.com/ParetoSecurity/agent/cmd/trayicon.go 22.00% (+0.85%) 50 (-2) 11 39 (-2) 👍
github.com/ParetoSecurity/agent/shared/singleinstance.go 94.74% (+94.74%) 19 (+19) 18 (+18) 1 (+1) 🌟

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/ParetoSecurity/agent/shared/device_windows_test.go
  • github.com/ParetoSecurity/agent/shared/singleinstance_test.go

@dz0ny dz0ny force-pushed the fix/single-instance branch 3 times, most recently from edb09ae to 74d866b Compare September 19, 2025 13:17
@dz0ny dz0ny force-pushed the fix/single-instance branch 2 times, most recently from d3183e2 to c83531e Compare September 19, 2025 17:50
@dz0ny dz0ny force-pushed the fix/single-instance branch from ed6c3f9 to f85f2a3 Compare September 22, 2025 07:00
@dz0ny dz0ny force-pushed the fix/single-instance branch from a7bbc04 to 9888562 Compare September 22, 2025 07:23
@dz0ny dz0ny merged commit 3222f86 into main Sep 22, 2025
44 of 45 checks passed
@dz0ny dz0ny deleted the fix/single-instance branch September 22, 2025 11:26
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.

2 participants