Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Jan 16, 2024

What changes were proposed in this pull request?

1, Combine pip installations for lint and doc together
2, pip list before run tests

Why are the changes needed?

1, to avoid potential conflicts, for example:
existing sphinx==4.5.0 requires docutils<0.18,>=0.14, while unpinned sphinx requires docutils<0.21,>=0.18.1. If we install them with different commands, upgrade of sphinx might be broken.

2, to make it easier to debug, for example: #44727 (comment)

sphinxcontrib-* were installed twice with different versions, which is confusing.

Does this PR introduce any user-facing change?

no, infra-only

How was this patch tested?

ci

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the INFRA label Jan 16, 2024
@zhengruifeng zhengruifeng force-pushed the infra_combine_pip_installation branch from 453c237 to d060796 Compare January 16, 2024 12:26
Copy link
Contributor

@nchammas nchammas left a comment

Choose a reason for hiding this comment

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

+1 for cleaning up our Python development dependencies. I think there is a lot of room for improvement here to reduce the frequency of CI build breakages.

Why not move these dependencies into requirements files, e.g. requirements-linter.txt and requirements-docs.txt? If nothing else, the files will be easier to read, and they can be referenced as triggers for GitHub Actions caching.

We could also merge all these requirements into the existing dev/requirements.txt.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the subject for a separate PR, but is pydata_sphinx_theme truly a dependency for the Python linter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, let me check

@zhengruifeng zhengruifeng marked this pull request as draft January 17, 2024 00:09
@zhengruifeng zhengruifeng force-pushed the infra_combine_pip_installation branch from 2366993 to 60b00e8 Compare January 17, 2024 03:22
@zhengruifeng zhengruifeng changed the title [SPARK-46734][INFRA] Combine pip installations for lint and doc respectively [SPARK-46734][INFRA] Combine pip installations for lint and doc Jan 17, 2024
@zhengruifeng
Copy link
Contributor Author

on second thought, I think we can install them with single command now.

@zhengruifeng zhengruifeng marked this pull request as ready for review January 17, 2024 05:27
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1 if CI passes.

@dongjoon-hyun
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the infra_combine_pip_installation branch January 17, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants