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) jsii-pacmak patch not applied during packing #16877

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

njlynch
Copy link
Contributor

@njlynch njlynch commented Oct 8, 2021

The pack on v2 is currently broken due to a bug in jsii-pacmak <= 1.38.0 that
packs all modules in parallel, regardless of dependencies between the
modules. That breaks on building the alpha modules, since they rely on
aws-cdk-lib, but often end up being packed first. A fix was created in jsii
(aws/jsii#3045), but to unblock the build earlier, a
patch was created to apply the fix within the CDK prior to the next jsii release
(#16871). Unfortunately, our build
"transform" step runs a lerna command that re-installs jsii-pacmak, removing
the patch. Calling yarn install here again to re-install and re-apply the
patch prior to packing.

Note: This will become obsolete once jsii-pacmak 1.39.0 is released


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

The pack on v2 is currently broken due to a bug in jsii-pacmak <= 1.38.0 that
packs all modules in parallel, regardless of dependencies between the
modules. That breaks on building the alpha modules, since they rely on
aws-cdk-lib, but often end up being packed first. A fix was created in jsii
(aws/jsii#3045), but to unblock the build earlier, a
patch was created to apply the fix within the CDK prior to the next jsii release
(#16871).  Unfortunately, our build
"transform" step runs a `lerna` command that re-installs jsii-pacmak, removing
the patch. Calling `yarn install` here again to re-install and re-apply the
patch prior to packing.
@njlynch njlynch requested a review from a team October 8, 2021 16:17
@njlynch njlynch self-assigned this Oct 8, 2021
@gitpod-io
Copy link

gitpod-io bot commented Oct 8, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 8, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: dd27c7b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to repeat this message adjacent to code which will be changed when the next jsii release occurs, but I also know package.json does not accept comments.

I'll let you decide if there's a better spot to repeat this.

@nija-at nija-at added the pr/do-not-merge This PR should not be merged at this time. label Oct 11, 2021
@njlynch
Copy link
Contributor Author

njlynch commented Oct 11, 2021

Would be nice to repeat this message adjacent to code which will be changed when the next jsii release occurs

Which will hopefully happen automatically, so anywhere we put a comment is a bit pointless. I'm watching this very closely and keeping an eye on the latest jsii release.

@njlynch njlynch removed the pr/do-not-merge This PR should not be merged at this time. label Oct 11, 2021
@mergify mergify bot merged commit c15a9d2 into v2-main Oct 11, 2021
@mergify mergify bot deleted the njlynch/more-hacks branch October 11, 2021 09:37
@mergify
Copy link
Contributor

mergify bot commented Oct 11, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants