Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
v1v opened this issue Oct 19, 2020 · 3 comments
Closed

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

v1v opened this issue Oct 19, 2020 · 3 comments
Labels
Stalled Team:Services (Deprecated) Label for the former Integrations-Services team Winlogbeat

Comments

@v1v
Copy link
Member

v1v commented Oct 19, 2020

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:

@v1v v1v added the Winlogbeat label Oct 19, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 19, 2020
@v1v v1v changed the title [winglogbeat][6.8][windows] System testing is broken [winlogbeat][6.8][windows] System testing is broken Oct 19, 2020
@andresrc andresrc added the Team:Services (Deprecated) Label for the former Integrations-Services team label Oct 20, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 20, 2020
@botelastic
Copy link

botelastic bot commented Jan 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Jan 27, 2022
@jlind23
Copy link
Collaborator

jlind23 commented Mar 31, 2022

Backlog grooming: Closing for now.

@jlind23 jlind23 closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stalled Team:Services (Deprecated) Label for the former Integrations-Services team Winlogbeat
Projects
None yet
Development

No branches or pull requests

4 participants