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(assertions): remove rosetta:extract from build command #17072

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Oct 20, 2021

This form of executing Rosetta is not mocked by the jsii integ tests
(which try executing a CDK build using a new version of the jsii tools).

The jsii integ tests rely on passing environment variables $CDK_BUILD_JSII,
$PACMAK and $ROSETTA (instead of replacing symlinks in the Node module farm).

This leads to the generation of .jsii.tabl.json during build using the
NPM-installed version of jsii-rosetta, which subsequently interferes with
the run of $PACMAK which is the new version (since Rosetta tablets
are supposed to be short-lived, there is no backwards compatibility guarantee
between different versions).

There will be a supported mechanism to achieve what this single post-build command is trying to achieve,
so remove it.


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

This leads to the generation of `.jsii.tabl.json` during build,
which (by lack of an NPM include list and it being missing from the
NPM exclude list) gets subsequently published to NPM...

...and finally interferes with the jsii pipeline where we build
the latest version of CDK, and the presence of a file generated
with an old version of `rosetta` cannot be read by a new version
of `rosetta`.

There will be a supported mechanism to achieve what this
single post-build command is trying to achieve.
@rix0rrr rix0rrr requested a review from otaviomacedo October 20, 2021 10:04
@gitpod-io
Copy link

gitpod-io bot commented Oct 20, 2021

@github-actions github-actions bot added the @aws-cdk/aws-codepipeline Related to AWS CodePipeline label Oct 20, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 20, 2021
@rix0rrr rix0rrr assigned rix0rrr and unassigned skinny85 Oct 20, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 20, 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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit ac54842 into master Oct 20, 2021
@mergify mergify bot deleted the huijbers/no-rosetta branch October 20, 2021 11:49
@mergify
Copy link
Contributor

mergify bot commented Oct 20, 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).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…7072)

This form of executing Rosetta is not mocked by the jsii integ tests
(which try executing a CDK build using a new version of the jsii tools).

The jsii integ tests rely on passing environment variables `$CDK_BUILD_JSII`,
`$PACMAK` and `$ROSETTA` (instead of replacing symlinks in the Node module farm).

This leads to the generation of `.jsii.tabl.json` during build using the
NPM-installed version of `jsii-rosetta`, which subsequently interferes with
the run of `$PACMAK` which *is* the new version (since Rosetta tablets
are supposed to be short-lived, there is no backwards compatibility guarantee
between different versions).

There will be a supported mechanism to achieve what this single post-build command is trying to achieve,
so remove it.

----

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

(cherry picked from commit ac54842)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-codepipeline Related to AWS CodePipeline contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants