Skip to content

Implement flexbuffers in python#5880

Merged
aardappel merged 1 commit intogoogle:masterfrom
dmitriykovalev:flexbuffers_python
May 7, 2020
Merged

Implement flexbuffers in python#5880
aardappel merged 1 commit intogoogle:masterfrom
dmitriykovalev:flexbuffers_python

Conversation

@dmitriykovalev
Copy link
Contributor

Thank you for submitting a PR!

Please delete this standard text once you've created your own description.

Make sure you include the names of the affected language(s) in your PR title.
This helps us get the correct maintainers to look at your issue.

If you make changes to any of the code generators, be sure to run
cd tests && sh generate_code.sh (or equivalent .bat) and include the generated
code changes in the PR. This allows us to better see the effect of the PR.

If your PR includes C++ code, please adhere to the Google C++ Style Guide,
and don't forget we try to support older compilers (e.g. VS2010, GCC 4.6.3),
so only some C++11 support is available.

For any C++ changes, please make sure to run sh src/clang-format-git.sh

Include other details as appropriate.

Thanks!

@aardappel
Copy link
Collaborator

@rw

@rw
Copy link
Contributor

rw commented May 5, 2020

@dmitriykovalev Can you bump this thread to get CI to run again? We had a travis outage.

@dmitriykovalev
Copy link
Contributor Author

@rw I've rebased, all checks passed.

@aardappel aardappel force-pushed the master branch 5 times, most recently from f116b80 to f12cca8 Compare May 5, 2020 20:57
@rw
Copy link
Contributor

rw commented May 7, 2020

@dmitriykovalev This looks great! Can you show me where the tests are running in Travis, if they are? I looked through the big test-everything-with-Docker test log, and what I saw was this: the number of unittests run with Python2 and with Python3 were the same. I found that I could grep for the tokens python_2 and python_3 to determine this. Could you help me make sure this is getting tested like we think?

I'll also note that (perhaps after we merge this PR) it would be good to add fuzz tests to this feature.

@dmitriykovalev
Copy link
Contributor Author

@rw Thanks! Tests should be picked up by running tests/PythonTest.sh. I'm not familiar with Travis integration for this project but looks like that's the only way to run python tests. You should see something like Ran 60 tests in 0.282s — these 60 tests are flexbuffers tests. There are 114 old tests, so you'll see Ran 114 tests in 0.054s as well.

Regarding fuzz tests, sure, that's something to add on top. For python that shouldn't be super critical because bad input would end up in some kind of exception anyway, not a program crash like in C/C++.

@aardappel
Copy link
Collaborator

Ok, merging this for now, since a) it's seen code review and testing elsewhere, and b) this is a new API not in use by anyone yet. Followups can provide further improvements.. thanks all!

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.

3 participants