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

Extend deprecation period for python_awslambda alias #20101

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Oct 26, 2023

This PR extends the deprecation of the old python_awslambda alias for the python_aws_lambda_function target, to make it easier/smoother for people to upgrade to 2.18 and particularly 2.19.

We renamed the python_awslambda target to python_aws_lambda_function in #19216 (in 2.18), and deprecated the old name. This was originally scheduled to be removed in 2.19, and happened in #19759, but I've reconsidered that slightly: 2.17 - 2.19 is a time of much upheaval for Pants' FaaS support, so it seems sensible to try to smooth that over if we can, especially for something like this, that's just two lines of configuration (not even "real" code).

@huonw huonw merged commit 7b8ad14 into main Oct 31, 2023
@huonw huonw deleted the huonw/extend-awslambda-deprecation branch October 31, 2023 00:09
@WorkerPants
Copy link
Member

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.18.x

I was unable to cherry-pick this PR to 2.18.x, likely due to merge-conflicts.

Steps to Cherry-Pick locally

To resolve:

  1. (Ensure your git working directory is clean)
  2. Run the following script to reproduce the merge-conflicts:
    git fetch https://github.com/pantsbuild/pants main \
      && git fetch https://github.com/pantsbuild/pants 2.18.x \
      && git checkout -b cherry-pick-20101-to-2.18.x FETCH_HEAD \
      && git cherry-pick 7b8ad1433e04a45591a6d37509d569b1adfbe8bd
  3. Fix the merge conflicts and commit the changes
  4. Run build-support/cherry_pick/make_pr.sh "20101" "2.18.x"

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 needs-cherrypick label on this PR.

Thanks again for your contributions!

🤖 Beep Boop here's my run link

@WorkerPants WorkerPants added the auto-cherry-picking-failed Auto Cherry-Picking Failed label Oct 31, 2023
huonw added a commit that referenced this pull request Oct 31, 2023
This PR extends the deprecation of the old `python_awslambda` alias for
the `python_aws_lambda_function` target, to make it easier/smoother for
people to upgrade to 2.18 and particularly 2.19.

We renamed the `python_awslambda` target to `python_aws_lambda_function`
in #19216 (in 2.18), and deprecated the old name. This was originally
scheduled to be removed in 2.19, and happened in #19759, but I've
reconsidered that slightly: 2.17 - 2.19 is a time of much upheaval for
Pants' FaaS support, so it seems sensible to try to smooth that over if
we can, especially for something like this, that's just two lines of
configuration (not even "real" code).
huonw added a commit that referenced this pull request Oct 31, 2023
…#20101) (#20125)

This PR extends the deprecation of the old `python_awslambda` alias for
the `python_aws_lambda_function` target, to make it easier/smoother for
people to upgrade to 2.18 and particularly 2.19.

We renamed the `python_awslambda` target to `python_aws_lambda_function`
in #19216 (in 2.18), and deprecated the old name. This was originally
scheduled to be removed in 2.19, and happened in #19759, but I've
reconsidered that slightly: 2.17 - 2.19 is a time of much upheaval for
Pants' FaaS support, so it seems sensible to try to smooth that over if
we can, especially for something like this, that's just two lines of
configuration (not even "real" code).
huonw added a commit that referenced this pull request Feb 27, 2024
The `python_awslambda` target was replaced by
`python_aws_lambda_function` in #19216, first released in 2.18.0.dev1
(the deprecation was extended in #20101). We're now up to 2.21 (#20609),
and thus the deprecation has expired and this can be removed.

This has been deprecated for 3 versions, and is easy for users to adapt
to, so doesn't seem worth extending.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-cherry-picking-failed Auto Cherry-Picking Failed category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants