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

Broken Test: Metricbeat Generator #18132

Closed
urso opened this issue Apr 30, 2020 · 3 comments
Closed

Broken Test: Metricbeat Generator #18132

urso opened this issue Apr 30, 2020 · 3 comments
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Integrations Label for the Integrations team

Comments

@urso
Copy link

urso commented Apr 30, 2020

Flaky Test

  • Test Name: Metricbeat Generator test
  • Branch: master
  • Notes: the test tries to execute a mage target that does not exist anymore.

Test is run via make -C generator/_template/metricbeat test

Stack Trace

[2020-04-29T18:54:32.807Z] =======================

[2020-04-29T18:54:32.807Z] Your custom beat is now available as /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat

[2020-04-29T18:54:32.807Z] =======================

[2020-04-29T18:54:32.807Z] cd /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat ; \

[2020-04-29T18:54:32.807Z] export PATH=${GOPATH}/bin:${PATH}; \

[2020-04-29T18:54:32.807Z] git config user.email "[email protected]" || exit 1 ; \

[2020-04-29T18:54:32.807Z] git config user.name "beats-jenkins" || exit 1 ; \

[2020-04-29T18:54:32.807Z] make check CHECK_HEADERS_DISABLED=y || exit 1 ; \

[2020-04-29T18:54:32.807Z] make || exit 1 ; \

[2020-04-29T18:54:32.807Z] make unit

[2020-04-29T18:54:32.807Z] make[1]: Entering directory '/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat'

[2020-04-29T18:54:32.807Z] mage check

[2020-04-29T18:54:35.359Z] >> fmt - goimports: Formatting Go code

[2020-04-29T18:54:36.308Z] >> check: Checking source code for common problems

[2020-04-29T18:55:32.631Z] make[1]: Leaving directory '/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat'

[2020-04-29T18:55:32.631Z] make[1]: Entering directory '/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat'

[2020-04-29T18:55:32.631Z] Use mage rather than make. Here are the available mage targets:

[2020-04-29T18:55:32.631Z] Targets:

[2020-04-29T18:55:32.631Z]   build               builds the Beat binary.

[2020-04-29T18:55:32.632Z]   buildGoDaemon       builds the go-daemon binary (use crossBuildGoDaemon).

[2020-04-29T18:55:32.632Z]   check               formats code, updates generated content, check for common errors, and checks for any modified files.

[2020-04-29T18:55:32.632Z]   clean               cleans all generated files and build artifacts.

[2020-04-29T18:55:32.632Z]   collectAll          generates the docs and the fields.

[2020-04-29T18:55:32.632Z]   config              generates both the short/reference/docker configs.

[2020-04-29T18:55:32.632Z]   createMetricset     creates a new metricset.

[2020-04-29T18:55:32.632Z]   crossBuild          cross-builds the beat for all target platforms.

[2020-04-29T18:55:32.632Z]   dashboards          collects all the dashboards and generates index patterns.

[2020-04-29T18:55:32.632Z]   fields              generates a fields.yml for the Beat.

[2020-04-29T18:55:32.632Z]   fieldsDocs          generates docs/fields.asciidoc containing all fields (including x-pack).

[2020-04-29T18:55:32.632Z]   fmt                 formats source code (.go and .py) and adds license headers.

[2020-04-29T18:55:32.632Z]   golangCrossBuild    build the Beat binary inside of the golang-builder.

[2020-04-29T18:55:32.632Z]   imports             generates an include/list.go file containing a import statement for each module and dataset.

[2020-04-29T18:55:32.632Z]   package             packages the Beat for distribution.

[2020-04-29T18:55:32.632Z]   test                runs all available tests

[2020-04-29T18:55:32.632Z]   update              is an alias for running fields, dashboards, config.

[2020-04-29T18:55:32.632Z]   vendorUpdate        updates elastic/beats/v7 in the vendor dir

[2020-04-29T18:55:32.632Z] make[1]: Leaving directory '/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat'

[2020-04-29T18:55:32.632Z] make[1]: Entering directory '/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat'

[2020-04-29T18:55:32.632Z] make[1]: *** No rule to make target 'unit'.  Stop.

[2020-04-29T18:55:32.632Z] make[1]: Leaving directory '/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-16784/src/beatpath/testmetricbeat'

[2020-04-29T18:55:32.632Z] ../../common/Makefile:13: recipe for target 'test' failed

@urso urso added the flaky-test Unstable or unreliable test cases. label Apr 30, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 30, 2020
@urso urso added the Team:Integrations Label for the Integrations team label Apr 30, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Apr 30, 2020
@blakerouse blakerouse self-assigned this Apr 30, 2020
@blakerouse
Copy link
Contributor

Yes I have been trying to fix it, working on it here.

#18086

@blakerouse
Copy link
Contributor

Fixed by #18086.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

4 participants