StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.1k stars 746 forks source link

Pants upgrade from 2.20.3 to 2.22.0 #6237

Closed cognifloyd closed 2 months ago

cognifloyd commented 2 months ago

The commits step through updating from 2.20 to 2.21 to 2.22.

Interesting new features in 2.21

A new [export].py_hermetic_scripts feature allows us to use nosetest in the exported venv. This was added in:

Note: The hermetic scripts option will be renamed to [export].py_non_hermetic_scripts_in_resolve in 2.23:

This release also allows us to simplify our __defaults__ BUILD file config. Instead of specifying (python_test, python_tests), we can just use python_test because now applies to generated targets (python_tests generates python_test targets), not just the targets in BUILD files.

Interesting new features in 2.22

A new [export].py_generated_sources_in_resolve option. I don't think we really need this now, but it makes sense to make any generated sources available in the venv (for use by an IDE like VSCode).

The options system is moving to the rust-based pants engine instead of in python to speed up cli args parsing. This release only runs the new system in parallel with the old options parser in 2.22. In v2.24 (or so), pants will switch to the new options parser.

pants-plugins lockfile diffs

From 2.20 to 2.21

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

==                    Upgraded dependencies                     ==

  ijson                          3.1.4        -->   3.2.3
  pantsbuild-pants               2.20.4       -->   2.21.1
  pantsbuild-pants-testutil      2.20.4       -->   2.21.1
  pex                            2.2.1        -->   2.3.1

From 2.21 to 2.22

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

==                    Upgraded dependencies                     ==

  pantsbuild-pants               2.21.1       -->   2.22.0
  pantsbuild-pants-testutil      2.21.1       -->   2.22.0