SUSE / linux-security-sensor

Linux security sensor
Other
19 stars 9 forks source link

Fix Windows CI #3

Closed jeffmahoney closed 2 years ago

jeffmahoney commented 2 years ago

We are assuming that the Windows CI pipeline is passing on the upstream project but I'm not sure that's the case.

jeffmahoney commented 2 years ago

Windows tests now pass and the fix should be acceptable upstream. However, before I create the PR I want to look into some curious messages that arise during the test run:

In Test Golden Generic:

[DEBUG] 2022-02-08T05:28:48Z Debug: open \\?\x:\artifacts\testdata\server\clients\C.11a3013ccaXXXXX.db: The system cannot find the file specified..`
Error: [ERROR] 2022-02-08T05:29:06Z Unable to get policy {"error":{},"user":""}
Error: [ERROR] 2022-02-08T05:29:06Z Unable to get policy {"error":{},"user":""}
Error: [ERROR] 2022-02-08T05:29:06Z Unable to get policy {"error":{},"user":""}
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\artifacts\Windows.System.Pslist 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\artifacts 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\collections\F.C80VV8M45KPE2 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\collections\F.C80VV8N6CRL36 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\collections 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\monitoring\System.Flow.Completion 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c\monitoring 
[DEBUG] 2022-02-08T05:29:06Z Prunning empty directory \\?\x:\artifacts\testdata\server\clients\C.de52cd56dd32169c 

In Test Golden Windows:

[DEBUG] 2022-02-08T05:29:42Z Globber.ExpandWithContext: seek \\.\X:: The handle is invalid. while processing \\.\X:
jeffmahoney commented 2 years ago

The warnings in the previous comment look to be harmless. The "Golden Generic" warnings are in the upstream test output. The "Golden Windows" warnings are new, but I expect also harmless in relation to how to enumerate drive letters.