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

[DOCS] cd into correct directory before invoking mage. #17679

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

bestpath-gb
Copy link
Contributor

@bestpath-gb bestpath-gb commented Apr 11, 2020

Relates #14409

The docs for creating a new beat are currently wrong as they tell you to cd into your github home directory before calling mage GenerateCustomBeat. This gives the error No .go files marked with the mage build tag in this directory..

This PR updates the docs so the reader will create their github home directory, then cd into the beats directory before running Mage.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@andresrc andresrc added [zube]: Inbox Team:Services (Deprecated) Label for the former Integrations-Services team labels Apr 13, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

elasticmachine commented Apr 30, 2020

❕ Build Aborted

The PR is not allowed to run in the CI yet

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Reason: The PR is not allowed to run in the CI yet

  • Start Time: 2020-05-20T20:01:31.008+0000

  • Duration: 3 min 1 sec (181142)

  • Commit: 6a7d9892738c00373735c49efcc0cefb6750b244

Steps errors

Expand to view the steps failures

  • Name: Error signal
    • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permission

    • Result: FAILURE

    • Duration: 0 min 0 sec

    • Start Time: 2020-05-20T20:04:26.128+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-20T20:04:25.805Z] [INFO] githubPrCheckApproved: Title: [DOCS] cd into correct directory before invoking mage. - User: bestpath-gb - Author Association: CONTRIBUTOR
[2020-05-20T20:04:26.131Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet
[2020-05-20T20:04:26.131Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)
[2020-05-20T20:04:26.192Z] [INFO] Let's stop build #10. The PR is not allowed to run in the CI yet
[2020-05-20T20:04:26.236Z] Sleeping for 5 sec
[2020-05-20T20:04:27.349Z] Stage "Lint" skipped due to earlier failure(s)
[2020-05-20T20:04:27.456Z] Stage "Build and Test" skipped due to earlier failure(s)
[2020-05-20T20:04:27.717Z] Stage "Elastic Agent x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.719Z] Stage "Elastic Agent x-pack Windows" skipped due to earlier failure(s)
[2020-05-20T20:04:27.720Z] Stage "Elastic Agent Mac OS X" skipped due to earlier failure(s)
[2020-05-20T20:04:27.721Z] Stage "Filebeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:27.722Z] Stage "Filebeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.723Z] Stage "Filebeat Mac OS X" skipped due to earlier failure(s)
[2020-05-20T20:04:27.724Z] Stage "Filebeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-05-20T20:04:27.725Z] Stage "Filebeat Windows" skipped due to earlier failure(s)
[2020-05-20T20:04:27.726Z] Stage "Filebeat x-pack Windows" skipped due to earlier failure(s)
[2020-05-20T20:04:27.727Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.728Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:27.729Z] Stage "Auditbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.730Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.731Z] Stage "Libbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.732Z] Stage "Metricbeat OSS Unit tests" skipped due to earlier failure(s)
[2020-05-20T20:04:27.733Z] Stage "Metricbeat OSS Integration tests" skipped due to earlier failure(s)
[2020-05-20T20:04:27.734Z] Stage "Metricbeat Python integration tests" skipped due to earlier failure(s)
[2020-05-20T20:04:27.735Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.735Z] Stage "Metricbeat crosscompile" skipped due to earlier failure(s)
[2020-05-20T20:04:27.736Z] Stage "Metricbeat Mac OS X" skipped due to earlier failure(s)
[2020-05-20T20:04:27.737Z] Stage "Metricbeat x-pack Mac OS X" skipped due to earlier failure(s)
[2020-05-20T20:04:27.739Z] Stage "Metricbeat Windows" skipped due to earlier failure(s)
[2020-05-20T20:04:27.740Z] Stage "Metricbeat x-pack Windows" skipped due to earlier failure(s)
[2020-05-20T20:04:27.741Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.741Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.742Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.743Z] Stage "Winlogbeat Windows x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.745Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.745Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.747Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:27.748Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-05-20T20:04:27.945Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.946Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:27.948Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.949Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:27.950Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.951Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.952Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.953Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.954Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:27.955Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:28.334Z] Failed in branch Elastic Agent x-pack
[2020-05-20T20:04:28.335Z] Failed in branch Elastic Agent x-pack Windows
[2020-05-20T20:04:28.336Z] Failed in branch Elastic Agent Mac OS X
[2020-05-20T20:04:28.337Z] Failed in branch Filebeat oss
[2020-05-20T20:04:28.338Z] Failed in branch Filebeat x-pack
[2020-05-20T20:04:28.338Z] Failed in branch Filebeat Mac OS X
[2020-05-20T20:04:28.339Z] Failed in branch Filebeat x-pack Mac OS X
[2020-05-20T20:04:28.340Z] Failed in branch Filebeat Windows
[2020-05-20T20:04:28.340Z] Failed in branch Filebeat x-pack Windows
[2020-05-20T20:04:28.341Z] Failed in branch Auditbeat x-pack
[2020-05-20T20:04:28.341Z] Failed in branch Libbeat x-pack
[2020-05-20T20:04:28.342Z] Failed in branch Metricbeat OSS Unit tests
[2020-05-20T20:04:28.343Z] Failed in branch Metricbeat OSS Integration tests
[2020-05-20T20:04:28.343Z] Failed in branch Metricbeat Python integration tests
[2020-05-20T20:04:28.344Z] Failed in branch Metricbeat crosscompile
[2020-05-20T20:04:28.344Z] Failed in branch Metricbeat Mac OS X
[2020-05-20T20:04:28.345Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-05-20T20:04:28.345Z] Failed in branch Metricbeat Windows
[2020-05-20T20:04:28.346Z] Failed in branch Metricbeat x-pack Windows
[2020-05-20T20:04:28.347Z] Failed in branch Winlogbeat Windows x-pack
[2020-05-20T20:04:28.348Z] Failed in branch Kubernetes
[2020-05-20T20:04:28.643Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:28.644Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:28.646Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:28.647Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-20T20:04:28.648Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:28.649Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:28.650Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:28.708Z] Failed in branch Packetbeat
[2020-05-20T20:04:28.710Z] Failed in branch dockerlogbeat
[2020-05-20T20:04:28.710Z] Failed in branch Journalbeat
[2020-05-20T20:04:29.272Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:29.274Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:29.276Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:29.277Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-20T20:04:29.278Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:29.326Z] Failed in branch Metricbeat x-pack
[2020-05-20T20:04:29.327Z] Failed in branch Winlogbeat
[2020-05-20T20:04:29.610Z] Failed in branch Heartbeat
[2020-05-20T20:04:29.612Z] Failed in branch Libbeat
[2020-05-20T20:04:29.613Z] Failed in branch Functionbeat
[2020-05-20T20:04:29.613Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-20T20:04:29.616Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-20T20:04:29.867Z] Failed in branch Auditbeat oss
[2020-05-20T20:04:29.868Z] Failed in branch Generators
[2020-05-20T20:04:30.931Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-17679
[2020-05-20T20:04:31.189Z] [INFO] getVaultSecret: Getting secrets
[2020-05-20T20:04:31.305Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-20T20:04:32.434Z] + chmod 755 generate-build-data.sh
[2020-05-20T20:04:32.435Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17679/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17679/runs/10 ABORTED 181142
[2020-05-20T20:04:32.985Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17679/runs/10/steps/?limit=10000 -o steps-info.json
[2020-05-20T20:04:33.536Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-17679/runs/10/tests/?status=FAILED -o tests-errors.json

@elasticmachine
Copy link
Collaborator

elasticmachine commented May 26, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: cavokz commented: jenkins run tests

  • Start Time: 2021-04-12T10:02:03.148+0000

  • Duration: 22 min 3 sec

  • Commit: 35ae081

Trends 🧪

Image of Build Times

❕ Flaky test report

No test was executed to be analysed.

Copy link
Contributor

@cavokz cavokz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix is needed and looks correct.

@kvch
Copy link
Contributor

kvch commented Apr 6, 2021

jenkins run tests

@fearful-symmetry
Copy link
Contributor

This will probably need to be merged against master for CI to be happy. Is @bestpath-gb still around?

@bestpath-gb
Copy link
Contributor Author

@fearful-symmetry I am! Is there anything I can do to help with this?

@fearful-symmetry
Copy link
Contributor

@bestpath-gb can you merge against the upstream master? This branch is (I assume) very out of date.

@bestpath-gb bestpath-gb force-pushed the doc/fix-generatecustombeat-command branch from 6a7d989 to 8f6a4d2 Compare April 6, 2021 17:02
@bestpath-gb
Copy link
Contributor Author

@fearful-symmetry I've rebased on latest upstream master. Let me know if there's anything else you need.

@cavokz
Copy link
Contributor

cavokz commented Apr 6, 2021

jenkins run tests

@cavokz
Copy link
Contributor

cavokz commented Apr 7, 2021

Ping @fearful-symmetry

@fearful-symmetry
Copy link
Contributor

@bestpath-gb sorry, one last thing, can you add a changelog entry to CHANGELOG.next.asciidoc

@mergify
Copy link
Contributor

mergify bot commented Apr 9, 2021

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b doc/fix-generatecustombeat-command upstream/doc/fix-generatecustombeat-command
git merge upstream/master
git push upstream doc/fix-generatecustombeat-command

@bestpath-gb bestpath-gb force-pushed the doc/fix-generatecustombeat-command branch from e8df82a to 35ae081 Compare April 9, 2021 12:22
@bestpath-gb
Copy link
Contributor Author

@fearful-symmetry Changelog entry added.

@cavokz
Copy link
Contributor

cavokz commented Apr 12, 2021

jenkins run tests

@cavokz cavokz merged commit 53d75c0 into elastic:master Apr 12, 2021
v1v added a commit to v1v/beats that referenced this pull request Apr 14, 2021
* upstream/master: (308 commits)
  [winlogbeat] Add support for sysmon v13 events 24 and 25 (elastic#24945)
  mergify: add backport label (elastic#25050)
  Add pod.ip in k8s metadata (elastic#25037)
  [elastic-agent] Use fleet.url for container cmd (elastic#25026)
  disable TestXPackEnabled flaky test in logstash metricbeat module (elastic#25034)
  Leverege leader election in agent  k8s manifests (elastic#25016)
  libbeat/publisher/pipeline: expand monitoring (elastic#24700)
  libbeat: fix decode_json_fields config validation (elastic#24862)
  Remove make docs-preview instructions (elastic#25001)
  [Filebeat] Fix IPtables pipeline (elastic#24928)
  [DOCS] cd into correct directory before invoking mage. (elastic#17679)
  Add -buildmode=pie for supported platform (elastic#24964)
  Add agent's direcotry in k8s manifest generator (elastic#24987)
  [mergify] assign the original author (elastic#25007)
  Fix AWS module flaky tests (elastic#24852)
  [filebeat] Use fail_on_template_error on google_workspace and okta pagination (elastic#24967)
  Updated config to match defaults (elastic#25004)
  [Filebeat] Fix hardcoded amazonaws.com endpoint (elastic#24861)
  Add cloud.service.name to add_cloud_metadata (elastic#24993)
  [Ingest Manager] Expose processes and their metrics (elastic#24788)
  ...
@zube zube bot removed the [zube]: Done label Jul 12, 2021
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

Successfully merging this pull request may close these issues.

6 participants