Skip to content

[winlogbeat][6.8][windows] System testing is broken #21966

@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

>> build: Building winlogbeat
Unit testing winlogbeat
>> go test: Unit Testing
SUMMARY:
  Fail:     0
  Skip:     1
  Pass:     37
  Packages: 7
  Duration: 33.6865234s
  Coverage Report: C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.html
  JUnit Report:    C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.xml
  Output File:     C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.out
>> go test: Unit Test Passed
System testing winlogbeat
....EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: eventlogging - Add custom fields (not under root)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\tests\system\winlogbeat.py", line 46, in setUp
    self.testSuffix = "_" + hashlib.sha256(self.api + self._testMethodName).hexdigest()[:5]
TypeError: Unicode-objects must be encoded before hashing

======================================================================
ERROR: eventlogging - Add tags and custom fields under root
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\tests\system\winlogbeat.py", line 46, in setUp
    self.testSuffix = "_" + hashlib.sha256(self.api + self._testMethodName).hexdigest()[:5]
TypeError: Unicode-objects must be encoded before hashing


image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalledTeam:Services(Deprecated) Label for the former Integrations-Services teamWinlogbeat

    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