Skip to content

[x-pack/auditbeat][6.8][windows] System testing is broken #21964

@v1v

Description

@v1v

What

# Get a CSV list of package names.
$packages = $(go list ./... | select-string -Pattern "/vendor/" -NotMatch | select-string -Pattern "/scripts/cmd/" -NotMatch)
$packages = ($packages|group|Select -ExpandProperty Name) -join ","
exec { go test -race -c -cover -covermode=atomic -coverpkg $packages } "go test -race -cover FAILURE"

Stacktrace

11:22:37 System testing x-pack/auditbeat
11:23:21 ESSESS
11:23:21 ======================================================================
11:23:21 ERROR: host metricset collects general information about a server.
11:23:21 ----------------------------------------------------------------------
11:23:21 Traceback (most recent call last):
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\x-pack\auditbeat\tests\system\test_metricsets.py", line 24, in test_metricset_host
11:23:21     self.check_metricset("system", "host", COMMON_FIELDS + fields, warnings_allowed=True)
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\x-pack\auditbeat\tests\system\auditbeat_xpack.py", line 65, in check_metricset
11:23:21     self.assert_fields_are_documented(evt)
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\libbeat\tests\system\beat\beat.py", line 605, in assert_fields_are_documented
11:23:21     expected_fields, dict_fields = self.load_fields()
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\libbeat\tests\system\beat\beat.py", line 527, in load_fields
11:23:21     hash = hashlib.md5(content).hexdigest()
11:23:21 TypeError: Unicode-objects must be encoded before hashing
11:23:21 -------------------- >> begin captured stdout << ---------------------
11:23:21 {'@timestamp': '2020-10-14T10:23:17.929Z', 'event': {'action': 'host', 'module': 'system', 'dataset': 'host', 'kind': 'state'}, 'message': 'Windows 10 Pro host beats-ci-immutable-windows-10-1602670289897987996 (IP: 10.224.1.118) is up for 0 days, 0 hours, 7 minutes', 'system': {'audit': {'host': {'uptime': 451613687500, 'architecture': 'x86_64', 'os': {'name': 'Windows 10 Pro', 'family': 'windows', 'version': '10.0', 'kernel': '10.0.19041.508 (WinBuild.160101.0800)', 'platform': 'windows'}, 'id': '758014f3-8e21-4698-b368-cc528d1f6570', 'timezone.offset.sec': 0, 'hostname': 'beats-ci-immutable-windows-10-1602670289897987996', 'ip': ['10.224.1.118'], 'boottime': '2020-10-14T10:15:46.330Z', 'mac': ['42:01:0a:e0:01:76'], 'timezone.name': 'GMT'}}}, 'beat': {'version': '6.8.13', 'name': 'beats-ci-immutable-windows-10-1602670289897987996', 'hostname': 'beats-ci-immutable-windows-10-1602670289897987996'}, 'host': {'name': 'beats-ci-immutable-windows-10-1602670289897987996'}}
11:23:21 
11:23:21 --------------------- >> end captured stdout << ----------------------
11:23:21 
11:23:21 ======================================================================
11:23:21 ERROR: process metricset collects information about processes running on a system.
11:23:21 ----------------------------------------------------------------------
11:23:21 Traceback (most recent call last):
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\x-pack\auditbeat\tests\system\test_metricsets.py", line 71, in test_metricset_process
11:23:21     self.check_metricset("system", "process", COMMON_FIELDS + fields, warnings_allowed=True)
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\x-pack\auditbeat\tests\system\auditbeat_xpack.py", line 65, in check_metricset
11:23:21     self.assert_fields_are_documented(evt)
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\libbeat\tests\system\beat\beat.py", line 605, in assert_fields_are_documented
11:23:21     expected_fields, dict_fields = self.load_fields()
11:23:21   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\elastic\beats\libbeat\tests\system\beat\beat.py", line 527, in load_fields
11:23:21     hash = hashlib.md5(content).hexdigest()
11:23:21 TypeError: Unicode-objects must be encoded before hashing
11:23:21 -------------------- >> begin captured stdout << ---------------------
11:23:21 {'@timestamp': '2020-10-14T10:23:19.561Z', 'user': {'id': 'S-1-5-18', 'group': {'id': 'S-1-5-18'}}, 'beat': {'name': 'beats-ci-immutable-windows-10-1602670289897987996', 'hostname': 'beats-ci-immutable-windows-10-1602670289897987996', 'version': '6.8.13'}, 'host': {'name': 'beats-ci-immutable-windows-10-1602670289897987996'}, 'event': {'module': 'system', 'dataset': 'process', 'kind': 'state', 'action': 'existing_process', 'id': '858c91ad-ff30-4d85-be31-61eae747aff5'}, 'process': {'entity_id': '2fc84c02474726dadb6d1a12e6aef57acd10f63fbef2856dedd02ecb1ac45b09', 'name': 'Registry', 'args': [], 'pid': 100, 'ppid': 4, 'working_directory': '', 'executable': 'Registry', 'start': '2020-10-14T10:15:47.019Z'}, 'message': 'Process Registry (PID: 100) is RUNNING'}
11:23:21 
11:23:21 --------------------- >> end captured stdout << ----------------------
11:23:21 
11:23:21 [error] 53.74% test_metricsets.Test.test_metricset_host: 1.8133s
11:23:21 [error] 46.26% test_metricsets.Test.test_metricset_process: 1.5607s
11:23:21 ----------------------------------------------------------------------
11:23:21 Ran 6 tests in 3.631s
11:23:21 
11:23:21 FAILED (SKIP=4, errors=2)
11:23:21 System test FAILURE
11:23:21 At C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\x-pack\auditbeat\label\windows\src\github.com\ela
11:23:21 stic\beats\dev-tools\jenkins_ci.ps1:13 char:13
11:23:21 +             throw $errorMessage
11:23:21 +             ~~~~~~~~~~~~~~~~~~~
11:23:21     + CategoryInfo          : OperationStopped: (System test FAILURE:String) [], RuntimeException
11:23:21     + FullyQualifiedErrorId : System test FAILURE
11:23:21  
11:23:22 runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<

image

build if the build is gone please refers to the below gist:

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuditbeatStalledTeam:Services(Deprecated) Label for the former Integrations-Services team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions