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

Serializer test fix #1875

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Conversation

hotpocket
Copy link
Contributor

The cell outputs marshaling test checks an item.data.type property which is not valid per the proto. This test works because the Notebook.clone() method in serializer.ts/marshalNotebook() stores this data which is later accessed in the test. During normal operation the NotebookData that marshalNotebook receives has a Buffer object for item.data not a {'type':'Buffer','data':[1,2,3,...]} type. A fix is provided here to make the fixture more representative of what would be encountered in normal operation of the extension.

Side note: work I am doing to convert from timostamm-ts to protobuf_es creates a Notebook differently, which strips out this invalid structure/data, which is how this bug was caught. I believe this fix will allow the two to coexist. The other PR for the conversion is almost ready...

Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

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

✅ LGTM. Will merge pending all tests are passing the pipeline.

@sourishkrout
Copy link
Member

sourishkrout commented Dec 20, 2024

Ran the tests out-of-band and they all passed. The e2e tests suite requires stateful org secrets which is why didn't pass for this PR. Merging.

Thank you, @hotpocket.

@sourishkrout sourishkrout merged commit 79dd5b7 into stateful:main Dec 20, 2024
1 check failed
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