Skip to content

[Agent] Windows test failling  #16852

Closed
Closed
@ph

Description

10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/application
10:39:00 Test:    TestActionStore/can_save_to_disk_known_action_type
10:39:00 action_store_test.go:75: 
10:39:00 Error Trace:	action_store_test.go:75
10:39:00             				action_store_test.go:29
10:39:00 Error:      	Received unexpected error:
10:39:00             	could not replace target file C:\Users\JENKIN~1.PAC\AppData\Local\Temp\action-store975626633\config.yml: rename C:\Users\JENKIN~1.PAC\AppData\Local\Temp\action-store975626633\config.yml.tmp C:\Users\JENKIN~1.PAC\AppData\Local\Temp\action-store975626633\config.yml: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestActionStore/can_save_to_disk_known_action_type
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/application
10:39:00 Test:    TestActionStore/when_we_ACK_we_save_to_disk
10:39:00 action_store_test.go:101: 
10:39:00 Error Trace:	action_store_test.go:101
10:39:00             				action_store_test.go:29
10:39:00 Error:      	Received unexpected error:
10:39:00             	could not replace target file C:\Users\JENKIN~1.PAC\AppData\Local\Temp\action-store239311700\config.yml: rename C:\Users\JENKIN~1.PAC\AppData\Local\Temp\action-store239311700\config.yml.tmp C:\Users\JENKIN~1.PAC\AppData\Local\Temp\action-store239311700\config.yml: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestActionStore/when_we_ACK_we_save_to_disk
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/application
10:39:00 Test:    TestEnroll
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/application
10:39:00 Test:    TestEnroll/successfully_enroll_with_TLS_and_save_access_api_key_in_the_store
10:39:00 enroll_cmd_test.go:151: 
10:39:00 Error Trace:	enroll_cmd_test.go:151
10:39:00             				enroll_cmd_test.go:366
10:39:00 Error:      	Received unexpected error:
10:39:00             	storing generated agent id: could not replace target file fleet.yml: rename fleet.yml.tmp fleet.yml: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestEnroll/successfully_enroll_with_TLS_and_save_access_api_key_in_the_store
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/application
10:39:00 Test:    TestEnroll/successfully_enroll_when_a_slash_is_defined_at_the_end_of_host
10:39:00 enroll_cmd_test.go:209: 
10:39:00 Error Trace:	enroll_cmd_test.go:209
10:39:00             				enroll_cmd_test.go:332
10:39:00 Error:      	Received unexpected error:
10:39:00             	storing generated agent id: could not replace target file fleet.yml: rename fleet.yml.tmp fleet.yml: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestEnroll/successfully_enroll_when_a_slash_is_defined_at_the_end_of_host
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/application
10:39:00 Test:    TestEnroll/successfully_enroll_without_TLS_and_save_access_api_key_in_the_store
10:39:00 enroll_cmd_test.go:269: 
10:39:00 Error Trace:	enroll_cmd_test.go:269
10:39:00             				enroll_cmd_test.go:332
10:39:00 Error:      	Received unexpected error:
10:39:00             	storing generated agent id: could not replace target file fleet.yml: rename fleet.yml.tmp fleet.yml: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestEnroll/successfully_enroll_without_TLS_and_save_access_api_key_in_the_store
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/operation
10:39:00 Test:    [build failed]
10:39:00 pkg\agent\operation\monitoring_test.go:117:7: undefined: getLogger
10:39:00 pkg\agent\operation\monitoring_test.go:119:14: undefined: DummyDownloader
10:39:00 pkg\agent\operation\monitoring_test.go:120:16: undefined: DummyInstaller
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/storage
10:39:00 Test:    TestDiskStore
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/storage
10:39:00 Test:    TestDiskStore/when_the_target_file_already_exists
10:39:00 storage_test.go:122: 
10:39:00 Error Trace:	storage_test.go:122
10:39:00 Error:      	Received unexpected error:
10:39:00             	could not replace target file C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs589249849\config-120794436: rename C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs589249849\config-120794436.tmp C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs589249849\config-120794436: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestDiskStore/when_the_target_file_already_exists
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/storage
10:39:00 Test:    TestDiskStore/when_the_target_do_no_exist
10:39:00 storage_test.go:140: 
10:39:00 Error Trace:	storage_test.go:140
10:39:00 Error:      	Received unexpected error:
10:39:00             	could not replace target file C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs982026707\hello.txt: rename C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs982026707\hello.txt.tmp C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs982026707\hello.txt: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestDiskStore/when_the_target_do_no_exist
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/storage
10:39:00 Test:    TestEncryptedDiskStore
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/storage
10:39:00 Test:    TestEncryptedDiskStore/when_the_target_file_already_exists
10:39:00 storage_test.go:173: 
10:39:00 Error Trace:	storage_test.go:173
10:39:00 Error:      	Received unexpected error:
10:39:00             	could not replace target file C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs892257976\config-749851319: rename C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs892257976\config-749851319.tmp C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs892257976\config-749851319: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestEncryptedDiskStore/when_the_target_file_already_exists
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/agent/storage
10:39:00 Test:    TestEncryptedDiskStore/when_the_target_do_no_exist
10:39:00 storage_test.go:196: 
10:39:00 Error Trace:	storage_test.go:196
10:39:00 Error:      	Received unexpected error:
10:39:00             	could not replace target file C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs554174634\hello.txt: rename C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs554174634\hello.txt.tmp C:\Users\JENKIN~1.PAC\AppData\Local\Temp\configs554174634\hello.txt: The process cannot access the file because it is being used by another process.
10:39:00 Test:       	TestEncryptedDiskStore/when_the_target_do_no_exist
10:39:00 ----
10:39:00 Package: github.com/elastic/beats/v7/x-pack/agent/pkg/core/plugin/app/monitoring/beats
10:39:00 Test:    TestMonitoringDrops
10:39:00 drop_test.go:39: Case[/var/lib/drop/abc.sock]: Expected '/var/lib/drop', got '\var\lib\drop'
10:39:00 drop_test.go:39: Case[unix:///var/lib/drop/abc.sock]: Expected '/var/lib/drop', got '\var\lib\drop'
10:39:00 drop_test.go:39: Case[http+unix:///var/lib/drop/abc.sock]: Expected '/var/lib/drop', got '\var\lib\drop'
10:39:00 drop_test.go:39: Case[file:///var/lib/drop/abc.sock]: Expected '/var/lib/drop', got '\var\lib\drop'
10:39:00 ----

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions