-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Add release notes for 2.21.x #20894
Add release notes for 2.21.x #20894
Conversation
48c1e1e
to
f463812
Compare
docs/notes/2.21.x.md
Outdated
### Highlights | ||
|
||
- Automatic retries of tests for all built-in backends. | ||
- Significant speed-ups when manipulating Python dependencies, especially huge ones like PyTorch. | ||
- When a `pants test ...` run in CI fails, the summary now includes suggested invocation to copy-paste and re-run locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please suggest more highlights!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm personally very excited for the buildx/cacheing work and the defaults fix, but I'm not sure they quiet qualify as global highlights.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the __defaults__
handling of target generators probably does, good call-out!
docs/notes/2.21.x.md
Outdated
### Highlights | ||
|
||
- Automatic retries of tests for all built-in backends. | ||
- Significant speed-ups when manipulating Python dependencies, especially huge ones like PyTorch. | ||
- When a `pants test ...` run in CI fails, the summary now includes suggested invocation to copy-paste and re-run locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm personally very excited for the buildx/cacheing work and the defaults fix, but I'm not sure they quiet qualify as global highlights.
Co-authored-by: SJ <[email protected]>
- All built-in backends now support the `[test].attempts_default` option to automatically retry tests. | ||
- Significant speed-ups when manipulating Python dependencies, especially huge ones like PyTorch. | ||
- When a `pants test ...` run in CI fails, the summary now includes suggested invocation to copy-paste and re-run locally. | ||
- The `__defaults__` symbol now applies to targets generated by a target generator, in addition to targets written literally in BUILD files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just tried 2.21.0a0
and it slightly broke our expectations. We had
__defaults__(
extend=True,
all=dict(
# This will set PYTHON_IMAGE build arg in all docker images by default.
extra_build_args=["PYTHON_IMAGE=python:3.11"],
# This will tell pants that all python sources need to use python 3.11 by default.
interpreter_constraints=["==3.11.*"],
),
)
and the error message was kinda weird:
stderr:
<string> line 1:
PYTHON_IMAGE=python:3.11
Problem parsing 'PYTHON_IMAGE=python:3.11' as a requirement: Expected end or semicolon (after name and no valid version specifier)
PYTHON_IMAGE=python:3.11
^
now we have to do
__defaults__(
{
(docker_image,): dict(
# This will set PYTHON_IMAGE build arg in all docker images by default.
extra_build_args=["PYTHON_IMAGE=python:3.11"],
)
},
all=dict(
# This will tell pants that all python sources need to use python 3.11 by default.
interpreter_constraints=["==3.11.*"],
),
extend=True,
)
This happened because pex_binary.extra_build_args
was added, and it has the same name as docker_image.extra_build_args
. Maybe it's good to add a note about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just tried 2.21.0a0 and it slightly broke our expectations
Thanks for trying! Did you find some other issues or was it otherwise okay?
This happened because pex_binary.extra_build_args was added, and it has the same name as docker_image.extra_build_args. Maybe it's good to add a note about it
I think that'll be an issue with the addition of extra_build_args
to pex_binary
that you've identified, rather than with this __defaults__
change. I guess it's unlucky they have the same name but different meanings... but this is somewhat fundamental to __defaults__(all=...)
. I've filed #20925.
I'll add a note to the release notes too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding this @grihabor!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you find some other issues or was it otherwise okay?
No, it's the only thing
I'll add a note to the release notes too.
👍
I'm going to merge this, further feedback still accepted! E.g. a comment here or even a PR directly against the notes. Thanks all for the reviews! |
I tried to automatically cherry-pick this change back to each relevant milestone, so that it is available in those older releases of Pants. ❌ 2.21.xI was unable to cherry-pick this PR to 2.21.x, likely due to merge-conflicts. Steps to Cherry-Pick locallyTo resolve:
Please note that I cannot re-run CI if a job fails. Please work with your PR approver(s) to re-run CI if necessary. When you're done manually cherry-picking, please remove the Thanks again for your contributions! |
This writes out release notes for the 2.21.x branch, up to and including 54a36ea --------- Co-authored-by: SJ <[email protected]>
This writes out release notes for the 2.21.x branch, up to and including 54a36ea #20846 Co-authored-by: SJ <[email protected]>
This writes out release notes for the 2.21.x branch, up to and including 54a36ea
#20846