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

Fix Python environment activation #29252

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Conversation

andresrc
Copy link
Contributor

@andresrc andresrc commented Dec 2, 2021

What does this PR do?

Fixes python environment activation. The fix is being tested as part of #29245 , where the issue was detected. This PR is to isolate the fix in an independent change.

Why is it important?

In #29245 builds have started failing. It seems that some change in the workers have make this issue surface.

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
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

To be tested with a CI build.

Related issues

Use cases

Screenshots

Logs

@andresrc andresrc added bug backport-v8.0.0 Automated backport with mergify backport-v7.16.0 Automated backport with mergify labels Dec 2, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 2, 2021
@andresrc andresrc added the Team:Automation Label for the Observability productivity team label Dec 2, 2021
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Dec 2, 2021
@elasticmachine
Copy link
Collaborator

💚 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 preview

Expand to view the summary

Build stats

  • Start Time: 2021-12-02T19:38:37.348+0000

  • Duration: 15 min 35 sec

  • Commit: 4f9df96

Test stats 🧪

Test Results
Failed 0
Passed 3
Skipped 0
Total 3

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@andresrc andresrc merged commit 8896fd3 into elastic:master Dec 2, 2021
@andresrc andresrc deleted the fix-activation branch December 2, 2021 20:09
mergify bot pushed a commit that referenced this pull request Dec 2, 2021
mergify bot pushed a commit that referenced this pull request Dec 2, 2021
andresrc added a commit that referenced this pull request Dec 2, 2021
(cherry picked from commit 8896fd3)

Co-authored-by: Andres Rodriguez <[email protected]>
andresrc added a commit that referenced this pull request Dec 2, 2021
(cherry picked from commit 8896fd3)

Co-authored-by: Andres Rodriguez <[email protected]>
@@ -128,8 +128,9 @@ check-no-changes:
## check-python : Python Linting.
.PHONY: check-python
check-python: python-env
@$(FIND) -name *.py -name *.py -not -path "*/build/*" -exec $(PYTHON_ENV)/bin/autopep8 -d --max-line-length 120 {} \; | (! grep . -q) || (echo "Code differs from autopep8's style" && false)
@$(FIND) -name *.py -not -path "*/build/*" | xargs $(PYTHON_ENV)/bin/pylint --py3k -E || (echo "Code is not compatible with Python 3" && false)
@. $(PYTHON_ENV)/bin/activate; \
Copy link
Member

Choose a reason for hiding this comment

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

Interesting that this is needed here, commands are executed with the full path under the venv.

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it would be worth to "reasses" these lines as it seems there wer some challenges around it recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v7.16.0 Automated backport with mergify backport-v8.0.0 Automated backport with mergify bug Team:Automation Label for the Observability productivity team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants