Skip to content

[heartbeat][6.8][windows] System testing is broken #21967

@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:19:42 >> go test: Unit Testing
11:19:51 SUMMARY:
11:19:51   Fail:     0
11:19:51   Skip:     0
11:19:51   Pass:     132
11:19:51   Packages: 8
11:19:51   Duration: 8.8740234s
11:19:51   Coverage Report: C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\heartbeat\label\windows\src\github.com\elastic\beats\heartbeat\build\TEST-go-unit.html
11:19:51   JUnit Report:    C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\heartbeat\label\windows\src\github.com\elastic\beats\heartbeat\build\TEST-go-unit.xml
11:19:51   Output File:     C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\heartbeat\label\windows\src\github.com\elastic\beats\heartbeat\build\TEST-go-unit.out
11:19:51 >> go test: Unit Test Passed
11:19:51 System testing heartbeat
11:19:52 warning: no packages being tested depend on matches for pattern github.com/elastic/beats/heartbeat/hbtest
11:20:18 EEEEE
11:20:18 ======================================================================
11:20:18 ERROR: Failure: ModuleNotFoundError (No module named 'BaseHTTPServer')
11:20:18 ----------------------------------------------------------------------
11:20:18 Traceback (most recent call last):
11:20:18   File "c:\python38\lib\site-packages\nose\failure.py", line 39, in runTest
11:20:18     raise self.exc_val.with_traceback(self.tb)
11:20:18   File "c:\python38\lib\site-packages\nose\loader.py", line 417, in loadTestsFromName
11:20:18     module = self.importer.importFromPath(
11:20:18   File "c:\python38\lib\site-packages\nose\importer.py", line 47, in importFromPath
11:20:18     return self.importFromDir(dir_path, fqname)
11:20:18   File "c:\python38\lib\site-packages\nose\importer.py", line 94, in importFromDir
11:20:18     mod = load_module(part_fqname, fh, filename, desc)
11:20:18   File "c:\python38\lib\imp.py", line 234, in load_module
11:20:18     return load_source(name, filename, file)
11:20:18   File "c:\python38\lib\imp.py", line 171, in load_source
11:20:18     module = _load(spec)
11:20:18   File "<frozen importlib._bootstrap>", line 702, in _load
11:20:18   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
11:20:18   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
11:20:18   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
11:20:18   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\heartbeat\label\windows\src\github.com\elastic\beats\heartbeat\tests\system\test_autodiscovery.py", line 2, in <module>
11:20:18     from heartbeat import BaseTest
11:20:18   File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\heartbeat\label\windows\src\github.com\elastic\beats\heartbeat\tests\system\heartbeat.py", line 3, in <module>
11:20:18     import BaseHTTPServer
11:20:18 ModuleNotFoundError: No module named 'BaseHTTPServer'
11:20:18 
11:20:18 ======================================================================
11:20:18 ERROR: Failure: ModuleNotFoundError (No module named 'BaseHTTPServer')
11:20:18 ----------------------------------------------------------------------

image

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

For the record the previous builds didn't fail

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    HeartbeatStalledTeam: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