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): rosetta reader expects default tablet file to be uncompressed #3723

Merged
merged 5 commits into from
Aug 26, 2022

Conversation

kaizencc
Copy link
Contributor

Due to a bug in rosetta-reader.ts, we always expect to find the implicit tablet at .jsii.tabl.json. This means that any compressed implicit tablets will be unable to be used as a cache, and causes the following failure:

The following snippet was not found in any of the loaded tablets: ...

This PR also slightly changes the default behavior of compressTablet; previously it was false by default. Now it respects the original compression status of the implicit tablet, i.e. if it was previously compressed, then extract will update it as compressed.


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

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 25, 2022
@@ -148,7 +147,7 @@ export class RosettaTabletReader {
* pacmak sends our way later on is not going to be enough to do that.
*/
public async addAssembly(assembly: spec.Assembly, assemblyDir: string) {
const defaultTablet = path.join(assemblyDir, DEFAULT_TABLET_NAME);
const defaultTablet = guessTabletLocation(assemblyDir);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

argh. This is the bug that I've been searching for.

@kaizencc kaizencc changed the title fix(rosetta): rosetta reader expects default tablet file tonot be compressed fix(rosetta): rosetta reader expects default tablet file to not be compressed Aug 25, 2022
@kaizencc kaizencc changed the title fix(rosetta): rosetta reader expects default tablet file to not be compressed fix(rosetta): rosetta reader expects default tablet file to be uncompressed Aug 25, 2022
@mergify
Copy link
Contributor

mergify bot commented Aug 26, 2022

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 Aug 26, 2022
@mergify
Copy link
Contributor

mergify bot commented Aug 26, 2022

Merging (with squash)...

@mergify mergify bot merged commit 9768e2a into main Aug 26, 2022
@mergify mergify bot deleted the conroy/finalfix branch August 26, 2022 18:36
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Aug 26, 2022
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.

None yet

3 participants