Skip to content

Building functionbeat providers with specific GOOS and GOARCH#15586

Merged
ycombinator merged 3 commits intoelastic:masterfrom
rvillablanca:fix/functionbeat-build-providers-2
Jan 22, 2020
Merged

Building functionbeat providers with specific GOOS and GOARCH#15586
ycombinator merged 3 commits intoelastic:masterfrom
rvillablanca:fix/functionbeat-build-providers-2

Conversation

@rvillablanca
Copy link
Copy Markdown
Contributor

This is a replace for the PR #15399 to solve the issue #15132.

I have added the fields GOOS and GOARCH to ProviderDetails so we can now build the providers with for specific platforms. This fields are optional so the old behaviour is kept.

@elasticmachine
Copy link
Copy Markdown
Contributor

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?

@kvch
Copy link
Copy Markdown
Contributor

kvch commented Jan 16, 2020

jenkins test this

@kvch
Copy link
Copy Markdown
Contributor

kvch commented Jan 17, 2020

jenkins test this

@kvch
Copy link
Copy Markdown
Contributor

kvch commented Jan 17, 2020

@rvillablanca The failing functionbeat tests are seem related to your change. Could you please take a look at those? Let me know if you need help with making the tests pass.

@rvillablanca
Copy link
Copy Markdown
Contributor Author

Sure I will investigate @kvch

@rvillablanca
Copy link
Copy Markdown
Contributor Author

The problem is Travis is running under darwin os and cross-compiling is having some issues so there is no way (at the moment I think) to build for linux under darwin. A workaround would be to create a specific task to build in test with darwin os, what do you think @kvch ?

@ycombinator
Copy link
Copy Markdown
Contributor

Hey @rvillablanca @kvch WDYT about incorporating 483a1f2 into this PR? It seems to fix the issue on Travis CI for the Functionbeat job.

@rvillablanca
Copy link
Copy Markdown
Contributor Author

rvillablanca commented Jan 22, 2020

LGTM @kvch

@rvillablanca
Copy link
Copy Markdown
Contributor Author

I want to cherry-pick it but not sure where I can find that commit 😆

@ycombinator
Copy link
Copy Markdown
Contributor

I want to cherry-pick it but not sure where I can find that commit 😆

I wanted to see what you thought of that change, first. Since you're okay with it, I put up a PR with that change to your PR here: rvillablanca#1. If you merge it, the commit will show up over here in this PR.

@ycombinator
Copy link
Copy Markdown
Contributor

jenkins, test this

@rvillablanca rvillablanca force-pushed the fix/functionbeat-build-providers-2 branch from 55d3cb3 to 4265a12 Compare January 22, 2020 16:55
@ycombinator
Copy link
Copy Markdown
Contributor

jenkins, test this

Copy link
Copy Markdown
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

LGTM. Will merge once CI looks good.

@ycombinator
Copy link
Copy Markdown
Contributor

CI failures are unrelated to this PR. Merging.

Thanks for the contribution, @rvillablanca ❤️!

@ycombinator ycombinator removed the needs_backport PR is waiting to be backported to other branches. label Jan 22, 2020
@rvillablanca
Copy link
Copy Markdown
Contributor Author

Happy to help

@rvillablanca rvillablanca deleted the fix/functionbeat-build-providers-2 branch January 22, 2020 18:50
ycombinator added a commit that referenced this pull request Jan 28, 2020
#15753)

* Building functionbeat providers with specific GOOS and GOARCH

* Fix: os changed to linux for aws functionbeat provider

* Disabling CGO in functionbeat because it is not used

Co-authored-by: Rodrigo Villablanca Vásquez <villa061004@gmail.com>
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.

4 participants