Skip to content

chore(assertions): remove rosetta:extract from build command#17076

Merged
otaviomacedo merged 1 commit intoaws:releasefrom
otaviomacedo:no-rosetta
Oct 20, 2021
Merged

chore(assertions): remove rosetta:extract from build command#17076
otaviomacedo merged 1 commit intoaws:releasefrom
otaviomacedo:no-rosetta

Conversation

@otaviomacedo
Copy link
Copy Markdown
Contributor

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)


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

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)
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Oct 20, 2021

@otaviomacedo otaviomacedo requested a review from rix0rrr October 20, 2021 14:53
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 20, 2021
@otaviomacedo otaviomacedo changed the base branch from master to release October 20, 2021 14:55
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

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

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

@otaviomacedo otaviomacedo merged commit 6a3dabe into aws:release Oct 20, 2021
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