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

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

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

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

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

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

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

@v1v v1v added the Heartbeat label Oct 19, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label 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
Heartbeat Stalled Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

No branches or pull requests

4 participants