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

chore: fix up v2 from inaccurate merge commits #13751

Closed
wants to merge 24 commits into from

Conversation

njlynch
Copy link
Contributor

@njlynch njlynch commented Mar 23, 2021

The forward merge #13414 was erroneously squash-merged, resulting in some
defects in the future forward merges. In particular, #13426 was dropped,
un-reverting the commit and causing issues. There were also some test changes
from #13462 that appeared to be dropped.

This PR fixes the issue by just directly applying a patch to v2-main that solves
the difference between the current v2-main and what we'd have if we un-squashed
the squashed merge-commit and replayed all commits after that.

This is an effective duplicate of #13742, except that this is a clean patch that
can be applied, whereas the other is a rebased branch that will need to be
force-pushed to be applied.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

aws-cdk-automation and others added 24 commits March 5, 2021 13:45
The current Python namespace in v2 for the monopackage is `aws_cdk_lib`, which
means people need to update a lot of imports their source code.

`aws_cdk` is the namespace used by the v1 packages, which means people who have
already written code against v1 have less updating to do.

Unfortunately there will still be SOME updating, as some classes *used* to be in
`aws_cdk.core` but are now in `aws_cdk` directly.

Tested that the `aws_cdk_lib` package that vends `aws_cdk/__init__.py` can
still be installed without problems alongside `aws_cdk.cx_api` which vends
`aws_cdk/cx_api/__init__.py`, and others.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…0210309

# Conflicts:
#	packages/@aws-cdk/aws-cloudwatch-actions/lib/ec2.ts
#	packages/@aws-cdk/aws-dynamodb/lib/replica-provider.ts
#	packages/@aws-cdk/aws-dynamodb/test/dynamodb.test.ts
#	packages/@aws-cdk/aws-ecs/lib/ec2/ec2-service.ts
#	packages/@aws-cdk/aws-events-targets/lib/ecs-task.ts
#	packages/@aws-cdk/aws-events-targets/lib/util.ts
#	packages/@aws-cdk/aws-neptune/README.md
#	packages/@aws-cdk/aws-neptune/lib/cluster.ts
#	packages/@aws-cdk/aws-neptune/test/cluster.test.ts
#	packages/@aws-cdk/aws-s3-assets/lib/asset.ts
#	packages/aws-cdk/lib/init-templates/v2/app/java/pom.template.xml
#	packages/aws-cdk/lib/init-templates/v2/sample-app/java/pom.template.xml
Automated action from aws/cdk-ops
Automated action from aws/cdk-ops
The forward merge #13414 was erroneously squash-merged, resulting in some
defects in the future forward merges. In particular, #13426 was dropped,
un-reverting the commit and causing issues. There were also some test changes
from #13462 that appeared to be dropped.

This PR fixes the issue by just directly applying a patch to v2-main that solves
the difference between the current v2-main and what we'd have if we un-squashed
the squashed merge-commit and replayed all commits after that.

This is an effective duplicate of #13742, except that this is a clean patch that
can be applied, whereas the other is a rebased branch that will need to be
force-pushed to be applied.
@njlynch njlynch added the pr/do-not-merge This PR should not be merged at this time. label Mar 23, 2021
@njlynch njlynch requested a review from a team March 23, 2021 10:50
@njlynch njlynch self-assigned this Mar 23, 2021
@gitpod-io
Copy link

gitpod-io bot commented Mar 23, 2021

@github-actions github-actions bot added the aws-cdk-lib Related to the aws-cdk-lib package label Mar 23, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 23, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 0def2cf
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@njlynch
Copy link
Contributor Author

njlynch commented Mar 23, 2021

Resolved in favor of #13742

@njlynch njlynch closed this Mar 23, 2021
@njlynch njlynch deleted the njlynch/v2-main-fix-patch branch October 19, 2021 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-cdk-lib Related to the aws-cdk-lib package contribution/core This is a PR that came from AWS. pr/do-not-merge This PR should not be merged at this time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants