bug(sweeper): flakey base_processor_test.go #445

Closed
opened 2026-03-28 04:24:37 +00:00 by mfreeman451 · 1 comment
Owner

Imported from GitHub.

Original GitHub issue: #1357
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1357
Original created: 2025-07-26T07:12:51Z


This test seems to be failing randomly or unpredictably.

2025/07/26 02:10:32 Upgrading port capacity for host 192.168.1.99 from 5 to 2300
2025/07/26 02:10:32 Cleanup complete (100 hosts, 10000 ports)
2025/07/26 02:10:32 Cleanup complete (100 hosts, 100 ports)
2025/07/26 02:10:32 Cleanup complete (10 hosts, 10 ports)
2025/07/26 02:10:32 Cleanup complete (10 hosts, 10 ports)
--- FAIL: TestBaseProcessor_ResourceCleanup (0.00s)
    --- FAIL: TestBaseProcessor_ResourceCleanup/Pool_Reuse (0.00s)
        base_processor_test.go:455:
            	Error Trace:	/Users/mfreeman/src/serviceradar/pkg/sweeper/base_processor_test.go:455
            	Error:      	"0" is not positive%!(EXTRA int=0)
            	Test:       	TestBaseProcessor_ResourceCleanup/Pool_Reuse
            	Messages:   	Should reuse some objects from the pool
FAIL
coverage: 1.8% of statements in ./...
FAIL	github.com/carverauto/serviceradar/pkg/sweeper	0.762s
ok  	github.com/carverauto/serviceradar/pkg/sync	2.967s	coverage: 1.7% of statements in ./...
ok  	github.com/carverauto/serviceradar/pkg/sync/integrations/armis	1.524s	coverage: 1.6% of statements in ./...
FAIL
make: *** [test] Error 1
Imported from GitHub. Original GitHub issue: #1357 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/1357 Original created: 2025-07-26T07:12:51Z --- This test seems to be failing randomly or unpredictably. ```shell 2025/07/26 02:10:32 Upgrading port capacity for host 192.168.1.99 from 5 to 2300 2025/07/26 02:10:32 Cleanup complete (100 hosts, 10000 ports) 2025/07/26 02:10:32 Cleanup complete (100 hosts, 100 ports) 2025/07/26 02:10:32 Cleanup complete (10 hosts, 10 ports) 2025/07/26 02:10:32 Cleanup complete (10 hosts, 10 ports) --- FAIL: TestBaseProcessor_ResourceCleanup (0.00s) --- FAIL: TestBaseProcessor_ResourceCleanup/Pool_Reuse (0.00s) base_processor_test.go:455: Error Trace: /Users/mfreeman/src/serviceradar/pkg/sweeper/base_processor_test.go:455 Error: "0" is not positive%!(EXTRA int=0) Test: TestBaseProcessor_ResourceCleanup/Pool_Reuse Messages: Should reuse some objects from the pool FAIL coverage: 1.8% of statements in ./... FAIL github.com/carverauto/serviceradar/pkg/sweeper 0.762s ok github.com/carverauto/serviceradar/pkg/sync 2.967s coverage: 1.7% of statements in ./... ok github.com/carverauto/serviceradar/pkg/sync/integrations/armis 1.524s coverage: 1.6% of statements in ./... FAIL make: *** [test] Error 1 ```
Author
Owner

Imported GitHub comment.

Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1357#issuecomment-3813462328
Original created: 2026-01-28T19:36:05Z


closing, stale

Imported GitHub comment. Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/1357#issuecomment-3813462328 Original created: 2026-01-28T19:36:05Z --- closing, stale
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar#445
No description provided.