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

Move mage debugging to script #17174

Closed
wants to merge 2 commits into from
Closed

Conversation

cachedout
Copy link
Contributor

@cachedout cachedout commented Mar 23, 2020

What does this PR do?

Modifies the Jenkins configuration to call a script to dump mage variables, which does better error handling in the case of mage not being present.

Why is it important?

Prevents a situation wherein mage being absent causes a test run to fail.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@kuisathaverat
Copy link
Contributor

if you move the call inside the withBeatsEnv() block in these two methods it should have mage installed.

https://github.com/elastic/beats/blob/master/Jenkinsfile#L533-L566

@andrewkroh
Copy link
Member

I have a PR in progress that does what @kuisathaverat suggests. It's still a draft b/c I was testing out some things, but all of the Windows builds are green and the debug dump option works in it. I plan to clean it up today and remove the draft label. #17071

@cachedout
Copy link
Contributor Author

@andrewkroh Sounds good. I will close this in favor of #17071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Debug parameter need mage to show the variables
5 participants