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

[build][functionbeat][packetbeat][darwin][7.9] mage build unitTest failed #22045

Closed
v1v opened this issue Oct 21, 2020 · 6 comments
Closed

[build][functionbeat][packetbeat][darwin][7.9] mage build unitTest failed #22045

v1v opened this issue Oct 21, 2020 · 6 comments
Labels
Team:Services (Deprecated) Label for the former Integrations-Services team

Comments

@v1v
Copy link
Member

v1v commented Oct 21, 2020

Command

$ cd functionbeat
$ mage build unitTest

Stacktrace

Expand to view

[2020-10-21T11:00:48.522Z] + mage build unitTest
[2020-10-21T11:00:57.215Z] >> build: Building functionbeat
[2020-10-21T11:01:40.697Z] >> build: Building functionbeat-aws
[2020-10-21T11:02:16.656Z] >> go test: Unit Testing
[2020-10-21T11:03:43.026Z] SUMMARY:
[2020-10-21T11:03:43.026Z]   Fail:     0
[2020-10-21T11:03:43.026Z]   Skip:     1
[2020-10-21T11:03:43.026Z]   Pass:     142
[2020-10-21T11:03:43.026Z]   Packages: 13
[2020-10-21T11:03:43.026Z]   Duration: 1m13.156194714s
[2020-10-21T11:03:43.026Z]   Coverage Report: /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/x-pack/functionbeat/build/TEST-go-unit.html
[2020-10-21T11:03:43.026Z]   JUnit Report:    /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/x-pack/functionbeat/build/TEST-go-unit.xml
[2020-10-21T11:03:43.026Z]   Output File:     /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/x-pack/functionbeat/build/TEST-go-unit.out
[2020-10-21T11:03:43.026Z] >> go test: Unit Test Passed
[2020-10-21T11:04:00.966Z] >> python test: Unit Testing
[2020-10-21T11:04:13.553Z]     ERROR: Command errored out with exit status 1:
[2020-10-21T11:04:13.553Z]      command: /private/var/lib/jenkins/workspace/Beats_beats_7.9/python-env/build/ve/darwin/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-qmtq0wh1/markupsafe/setup.py'"'"'; __file__='"'"'/private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-qmtq0wh1/markupsafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-pip-egg-info-aujphqj1
[2020-10-21T11:04:13.553Z]          cwd: /private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-qmtq0wh1/markupsafe/
[2020-10-21T11:04:13.553Z]     Complete output (5 lines):
[2020-10-21T11:04:13.553Z]     Traceback (most recent call last):
[2020-10-21T11:04:13.553Z]       File "<string>", line 1, in <module>
[2020-10-21T11:04:13.553Z]       File "/private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-qmtq0wh1/markupsafe/setup.py", line 6, in <module>
[2020-10-21T11:04:13.553Z]         from setuptools import setup, Extension, Feature
[2020-10-21T11:04:13.553Z]     ImportError: cannot import name 'Feature' from 'setuptools' (/private/var/lib/jenkins/workspace/Beats_beats_7.9/python-env/build/ve/darwin/lib/python3.8/site-packages/setuptools/__init__.py)
[2020-10-21T11:04:13.553Z]     ----------------------------------------
[2020-10-21T11:04:13.553Z] ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[2020-10-21T11:04:13.553Z] Error: running "/var/lib/jenkins/workspace/Beats_beats_7.9/python-env/build/ve/darwin/bin/pip install --quiet -Ur /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/libbeat/tests/system/requirements.txt" failed with exit code 1
script returned exit code 1
[2020-10-21T10:56:22.660Z] + mage build unitTest
[2020-10-21T10:56:29.905Z] >> build: Building packetbeat
[2020-10-21T10:57:00.421Z] >> go test: Unit Testing
[2020-10-21T10:58:01.506Z] SUMMARY:
[2020-10-21T10:58:01.506Z]   Fail:     0
[2020-10-21T10:58:01.506Z]   Skip:     0
[2020-10-21T10:58:01.507Z]   Pass:     348
[2020-10-21T10:58:01.507Z]   Packages: 23
[2020-10-21T10:58:01.507Z]   Duration: 1m2.13963747s
[2020-10-21T10:58:01.507Z]   Coverage Report: /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/packetbeat/build/TEST-go-unit.html
[2020-10-21T10:58:01.507Z]   JUnit Report:    /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/packetbeat/build/TEST-go-unit.xml
[2020-10-21T10:58:01.507Z]   Output File:     /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/packetbeat/build/TEST-go-unit.out
[2020-10-21T10:58:01.507Z] >> go test: Unit Test Passed
[2020-10-21T10:58:01.993Z] Generated fields.yml for packetbeat to /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/packetbeat/fields.yml
[2020-10-21T10:58:27.548Z] >> python test: Unit Testing
[2020-10-21T10:58:40.531Z]     ERROR: Command errored out with exit status 1:
[2020-10-21T10:58:40.531Z]      command: /private/var/lib/jenkins/workspace/Beats_beats_7.9/python-env/build/ve/darwin/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-5pgixwsi/markupsafe/setup.py'"'"'; __file__='"'"'/private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-5pgixwsi/markupsafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-pip-egg-info-62tt63tl
[2020-10-21T10:58:40.531Z]          cwd: /private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-5pgixwsi/markupsafe/
[2020-10-21T10:58:40.531Z]     Complete output (5 lines):
[2020-10-21T10:58:40.531Z]     Traceback (most recent call last):
[2020-10-21T10:58:40.531Z]       File "<string>", line 1, in <module>
[2020-10-21T10:58:40.531Z]       File "/private/var/folders/30/v8fqcvss33z_vy3cqhxrz8c80000md/T/pip-install-5pgixwsi/markupsafe/setup.py", line 6, in <module>
[2020-10-21T10:58:40.531Z]         from setuptools import setup, Extension, Feature
[2020-10-21T10:58:40.531Z]     ImportError: cannot import name 'Feature' from 'setuptools' (/private/var/lib/jenkins/workspace/Beats_beats_7.9/python-env/build/ve/darwin/lib/python3.8/site-packages/setuptools/__init__.py)
[2020-10-21T10:58:40.531Z]     ----------------------------------------
[2020-10-21T10:58:40.531Z] ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[2020-10-21T10:58:40.531Z] Error: running "/var/lib/jenkins/workspace/Beats_beats_7.9/python-env/build/ve/darwin/bin/pip install --quiet -Ur /private/var/lib/jenkins/workspace/Beats_beats_7.9/src/github.com/elastic/beats/libbeat/tests/system/requirements.txt" failed with exit code 1
script returned exit code 1

Worker -> worker-c07mq1u7dy3h

image

Question

  • Is there any specific mage goal/task to prepare the ve context before running them? If so, we could add a retry step for the ve prepare context to avoid this kind of issue as much as possible, since so far if it happens then the builds get broken
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 21, 2020
@andresrc andresrc added the Team:Services (Deprecated) Label for the former Integrations-Services team label Oct 22, 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 22, 2020
@v1v
Copy link
Member Author

v1v commented Nov 2, 2020

This issue seems to be happening in different workers quite often only for the 7.9 branch

@fearful-symmetry
Copy link
Contributor

It looks like this is related to this: pypa/setuptools#2017

We either need to pin an older version of setup tools or update our script. I've never touched these, so not sure what the best route is here.

@urso
Copy link

urso commented Jan 5, 2021

Is this still an issue with 7.11?

@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
Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

No branches or pull requests

7 participants