-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[ci] Use 'go install' in Github Action setup #32735
[ci] Use 'go install' in Github Action setup #32735
Conversation
As of Go 1.18, "go get no longer builds or installs packages in module-aware mode."
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
This fixed the Go issue. But now exposes an issue with opentelemetry. The tests fail with:
@kuisathaverat Could you please take a look at this failure. Any advice on how to fix this? |
@andrewkroh , Ivan is on PTO. https://github.com/elastic/beats/pull/29424/files was the original PR to enable the I'm trying to debug what's causing that particular failure. So far I can see python has been changed from 3.9 to 3.10 This action worked fine -> https://github.com/elastic/beats/runs/7614599682?check_suite_focus=true#step:7:59
versus, this other one that failed
I wonder whether we could pin the version somehow to |
elastic/apm-pipeline-library#1687 contains further details, so I'll add the dependency as stated in open-telemetry/opentelemetry-python#2288 (comment) |
I wonder if the maybe @andrewkroh , do you know who can assist on this? |
Yeah, it is used by beats/dev-tools/mage/pytest.go Lines 43 to 54 in 54b6f15
I'm curious if the tests pass if we comment out the |
workaround the issue with open-telemetry/opentelemetry-python#2288
Thanks for the analysis, I managed to reproduce the error locally after upgrading python to I've just proposed 7dfa706 to force the python version to be 3.9. I guess, that approach could be good enough, as it does avoid upstream breaking changes by forcing what version to be used. So far I see it works, given the action then the output matches with the python 3.9.13 version
If it works, do you think we can keep the |
Yeah, if pinning to python 3.9 fixes it until we can fix the upstream otel packages, that sounds good. |
This pull request is now in conflicts. Could you fix it? 🙏
|
This PR is working as expected. The remaining failure for "filebeat / macos" does not appear to be related to this change. I propose we merge this as is and continue monitoring these jobs for failures. |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
* Use 'go install' in Github Action setup As of Go 1.18, "go get no longer builds or installs packages in module-aware mode." * opentelemetry: pin dependencies for the otel as stated in open-telemetry/opentelemetry-python#2288 * action: force python version 3.9 workaround the issue with open-telemetry/opentelemetry-python#2288 Co-authored-by: Victor Martinez <VictorMartinezRubio@gmail.com> (cherry picked from commit 6413e46) # Conflicts: # libbeat/tests/system/requirements_aix.txt
* Use 'go install' in Github Action setup As of Go 1.18, "go get no longer builds or installs packages in module-aware mode." * opentelemetry: pin dependencies for the otel as stated in open-telemetry/opentelemetry-python#2288 * action: force python version 3.9 workaround the issue with open-telemetry/opentelemetry-python#2288 Co-authored-by: Victor Martinez <VictorMartinezRubio@gmail.com> (cherry picked from commit 6413e46) # Conflicts: # libbeat/tests/system/requirements_aix.txt Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
* Use 'go install' in Github Action setup As of Go 1.18, "go get no longer builds or installs packages in module-aware mode." * opentelemetry: pin dependencies for the otel as stated in open-telemetry/opentelemetry-python#2288 * action: force python version 3.9 workaround the issue with open-telemetry/opentelemetry-python#2288 Co-authored-by: Victor Martinez <VictorMartinezRubio@gmail.com>
What does this PR do?
As of Go 1.18, "go get no longer builds or installs packages in module-aware mode."
Why is it important?
All of the Github action build are failing.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.