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

Upgrade pantsbuild from 2.18 to 2.20 #6200

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Conversation

cognifloyd
Copy link
Member

The commits step through updating from 2.18 to 2.19 to 2.20.

Interesting new features in 2.19

https://www.pantsbuild.org/blog/2024/01/24/pants-2-19
https://github.com/pantsbuild/pants/blob/2.19.x/src/python/pants/notes/2.19.x.md

Pants can auto retry tests to deal with flaky tests in CI. I enabled that in pants.ci.toml so it retries a test up to 3x.

Interesting new features in 2.20

https://www.pantsbuild.org/blog/2024/03/27/pants-2-20
https://github.com/pantsbuild/pants/blob/2.20.x/src/python/pants/notes/2.20.x.md

Pants can now experimentally use GHA as a remote cache.

Pants has a pex_binary target for generating targets that run a particular entry point or script. Pants 2.20 gained a pex_binary(executable=...) field which would allow us to wrap our st2-* python scripts in a pex at some point. This feature means that pex will embed the script contents instead of attempting to import from a file that is not a valid package name (The "-" character is not valid). For now, I just left a comment in a BUILD file about this.
Note: I asked for this feature some time ago. It was first added to pex 2.1.93, and then to pants. Now its available.

pants-plugins lockfile diffs

From 2.18 to 2.19

Lockfile diff: lockfiles/pants-plugins.lock [pants-plugins]

==                    Upgraded dependencies                     ==

  pantsbuild-pants               2.18.3       -->   2.19.3rc1
  pantsbuild-pants-testutil      2.18.3       -->   2.19.3rc1
  pex                            2.1.137      -->   2.2.1
  pluggy                         1.4.0        -->   1.5.0
  psutil                         5.9.0        -->   5.9.8
  ujson                          5.9.0        -->   5.10.0

From 2.19 to 2.20

Lockfile diff: lockfiles/pants-plugins.lock [pants-plugins]

==                    Upgraded dependencies                     ==

  pantsbuild-pants               2.19.3rc1    -->   2.20.1
  pantsbuild-pants-testutil      2.19.3rc1    -->   2.20.1

@cognifloyd cognifloyd added this to the pants milestone May 18, 2024
@cognifloyd cognifloyd requested a review from a team May 18, 2024 00:45
@cognifloyd cognifloyd self-assigned this May 18, 2024
@pull-request-size pull-request-size bot added the size/XL PR that changes 500-999 lines. Consider splitting work into several ones that easier to review. label May 18, 2024
Lockfile diff: lockfiles/pants-plugins.lock [pants-plugins]

==                    Upgraded dependencies                     ==

  pantsbuild-pants               2.18.3       -->   2.19.3rc1
  pantsbuild-pants-testutil      2.18.3       -->   2.19.3rc1
  pex                            2.1.137      -->   2.2.1
  pluggy                         1.4.0        -->   1.5.0
  psutil                         5.9.0        -->   5.9.8
  ujson                          5.9.0        -->   5.10.0
This is a new feature in pants 2.19
Lockfile diff: lockfiles/pants-plugins.lock [pants-plugins]

==                    Upgraded dependencies                     ==

  pantsbuild-pants               2.19.3rc1    -->   2.20.1
  pantsbuild-pants-testutil      2.19.3rc1    -->   2.20.1
This is a new feature in pants 2.20
@pull-request-size pull-request-size bot added size/L PR that changes 100-499 lines. Requires some effort to review. and removed size/XL PR that changes 500-999 lines. Consider splitting work into several ones that easier to review. labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure: ci/cd pantsbuild size/L PR that changes 100-499 lines. Requires some effort to review. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant