-
Notifications
You must be signed in to change notification settings - Fork 2
remove loglevel enum [CPP-884] #930
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
Conversation
Frontend and Release Workflow Started here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these sorts of changes save to take? Is it true that this enum is in no other struct fields, and we can guarantee we will never see it (from a 3rd party or from a persisted capnp) If it was protobuf I believe the correct way to handle this is to make it as deprecated and not remove anything.
Hmmm I'm pretty sure they aren't being used anywhere as I swapped them to strings 🤔 it was one of the reasons that I wanted to get rid of this since it made it much more confusing as to what is being used or not / debugging BUT yea, some of the capnp changes would break previous capnp recordings which is really bad - wonder how often old capnp recordings are used tho |
Given that, I would prefer someone else were to review this PR. Int the future based on what i have seen of capnp best practices, they recommend changing the name from |
I think we maybe start doing this, but only if we are going to persist capnp recordings like So I think options are:
|
Searching through the code for "pickle" and "capnp" I see we only have one pickle file that's saved in the repo, but it's only used here swift-toolbox/utils/loop_generate_core.sh Line 25 in 8acb46a
This isn't used in CI, so it's probably safe to delete |
I see, my bet is the breaking change related to loglevel that would have invalidated old capnp was the previous change that switched the log levels for strings. I thought end users could also save recordings, and it isn't just important if it is in CI/CD? |
I thought since it's exposing internal message passing - we shouldn't support backwards compatibility between versions since that would make it very hard to change the internal structures for only debugging purposes - though that would mean you can't debug which version broke (but now thinking it wouldn't be easy to debug on different versions anyways). |
I had some suggestions for language clarity in the readme but other than that i think it is gtg |
Frontend and Release Workflow Started here |
just a small hack related to LogLevel#error being generated to conflict
Self::Error
,since we hotfixed this in the #917 by using text instead of enums (think that takes more bytes), this enum is no longer needed.