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: rosetta failures causes fallback to typescript #373

Merged
merged 3 commits into from
Jul 22, 2021

Conversation

iliapolo
Copy link
Contributor

@iliapolo iliapolo commented Jul 22, 2021

This PR reverts a previous misguided decision to ignore rosetta failures and fallback to typescript assemblies.

We decided we never want to show typescript code in the documentation of other languages, a better experience is actually to fail and either introduce more heuristics in rosetta to bypass such failures, or make the necessary adjustments to the published package.

In addition, we used to transliterate the entire type-system (i.e all dependent assemblies) and not just the top level assembly.
The rational being that code snippets might come from those assemblies when expanding arguments for python docs.

Problem is that this means that a transliteration failure in a deeply nested dependency, that most likely doesn't have any affect on the documentation, prevents package transliteration. This can act as a sort of poison pill because many packages depend on the same core libraries.

Also, we aren't currently even rendering those code snippets in the docs, so there is no good reason to do it.

@iliapolo iliapolo marked this pull request as draft July 22, 2021 12:39
@@ -10,7 +10,7 @@ const LIBRARIES = `${__dirname}/../../__fixtures__/libraries`;

// this is a little concerning...we should be mindful
// if need to keep increasing this.
jest.setTimeout(3 * 60 * 1000);
jest.setTimeout(60 * 1000);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bonus!

@iliapolo iliapolo requested a review from a team July 22, 2021 12:44
@iliapolo iliapolo marked this pull request as ready for review July 22, 2021 12:44
@mergify mergify bot merged commit 5b9c990 into master Jul 22, 2021
@mergify mergify bot deleted the epolon/no-ts-fallback branch July 22, 2021 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants