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

fix(pacmak): don't automatically translate examples without asking #3219

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Dec 1, 2021

Given the current state of example tooling, the existing default
was a bad choice.

It forces everyone who is publishing jsii packages everywhere to
spend CPU cycles to do example parsing and translation which is
bound to fail anyway (as the fixtures and compilation directory
will probably not be set up for success, and translation
must proceed in a single-threaded fashion).

The new default is to use translations if they exist, and otherwise
don't do translations.

  • Builds that care (i.e., mostly the CDK build), will be using rosetta extract already to be efficient and correct about compilation, and
    the tablet files will be picked up as usual.
  • Builds that don't care will get more efficient.

BREAKING CHANGES: Pacmak no longer tries to translate examples
by default: this feature is now opt-in.


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

Given the current state of example tooling, the existing default
was a bad choice.

It forces everyone who is publishing jsii packages everywhere to
spend CPU cycles to do example parsing and translation which is
bound to fail anyway (as the fixtures and compilation directory
will probably not be set up for success, and translation
must proceed in a single-threaded fashion).

The new default is to use translations if they exist, and otherwise
don't do translations.

* Builds that care (i.e., mostly the CDK build), will be using `rosetta
  extract` already to be efficient and correct about compilation, and
  the tablet files will be picked up as usual.
* Builds that don't care will get more efficient.

BREAKING CHANGES: Pacmak no longer tries to translate examples
by default: this feature is now opt-in.
@rix0rrr rix0rrr requested a review from a team December 1, 2021 09:02
@rix0rrr rix0rrr self-assigned this Dec 1, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Dec 3, 2021

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Dec 3, 2021
@mergify
Copy link
Contributor

mergify bot commented Dec 3, 2021

Merging (with squash)...

@mergify mergify bot merged commit 937f8c3 into main Dec 3, 2021
@mergify mergify bot deleted the huijbers/pacmak-translate-off branch December 3, 2021 01:20
@mergify
Copy link
Contributor

mergify bot commented Dec 3, 2021

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Dec 3, 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.

2 participants