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

MINOR: [CI] Fix ubuntu-lint to not install into system Python #43710

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Aug 15, 2024

Rationale for this change

Currently, the ubuntu-lint Docker build would install its Python dependencies directly into the system Python, which can fail depending on existing system Python packages.

See example here:
https://github.com/apache/arrow/actions/runs/10400929007/job/28802420047?pr=43539 where pip's dependency resolution fails with the following error message:

packaging.version.InvalidVersion: Invalid version: '2013-02-16'

What changes are included in this PR?

This PR switches to use a virtual environment, guaranteeing that we're not interfering with the system Python and that we're not bound by already installed Python packages.

Are these changes tested?

By CI.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the awaiting review Awaiting review label Aug 15, 2024
Currently, ubuntu-lint would install its Python dependencies directly into the system Python, which can fail depending on existing system Python packages.

See example here:
https://github.com/apache/arrow/actions/runs/10400929007/job/28802420047?pr=43539
where pip's dependency resolution fails with the following error message:
```
packaging.version.InvalidVersion: Invalid version: '2013-02-16'
```

Instead, this PR switches to use a virtual environment, guaranteeing that we're not interfering with the system Python and that we're not bound by already installed Python packages.
@pitrou
Copy link
Member Author

pitrou commented Aug 15, 2024

@kou I would like to merge this quickly so that we can get lint checks on #43539

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit a50ad42 into apache:main Aug 16, 2024
61 of 62 checks passed
@kou kou removed the awaiting review Awaiting review label Aug 16, 2024
@github-actions github-actions bot added the awaiting merge Awaiting merge label Aug 16, 2024
Copy link

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit a50ad42.

There were 2 benchmark results indicating a performance regression:

The full Conbench report has more details. It also includes information about 129 possible false positives for unstable benchmarks that are known to sometimes produce them.

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

Successfully merging this pull request may close these issues.

2 participants