Skip to content

Conversation

@CJCombrink
Copy link
Contributor

Attempt to fix issue with enum deserialion

Disclaimer: I am seeing the same issue for recent Windows builds and this change as suggested in the ticket solves the issue.
I am not sure however if this is correct since this is a part of Python that I am not experienced with

  • Did you create an Apache Jira ticket? THRIFT-5885
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

@CJCombrink CJCombrink force-pushed the THRIFT-5885_fix_enum_generate branch 4 times, most recently from a886f19 to c7e1917 Compare November 11, 2025 12:39
@CJCombrink CJCombrink mentioned this pull request Nov 11, 2025
5 tasks
@CJCombrink CJCombrink force-pushed the THRIFT-5885_fix_enum_generate branch from c7e1917 to 53e4ea1 Compare November 11, 2025 14:51
@CJCombrink CJCombrink marked this pull request as ready for review November 11, 2025 15:01
@CJCombrink CJCombrink force-pushed the THRIFT-5885_fix_enum_generate branch from 53e4ea1 to 9f52603 Compare November 12, 2025 05:19
@CJCombrink
Copy link
Contributor Author

This branch is staggered on top of the changes in #3232
See CJCombrink#8 for just the changes that this PR would bring in if merged separately.

@CJCombrink CJCombrink force-pushed the THRIFT-5885_fix_enum_generate branch from 9f52603 to e1e3885 Compare November 13, 2025 05:13
@Jens-G Jens-G added the python label Nov 13, 2025
- find_package(PythonInterp) and find_package(PythonLibs) were deprecated in 3.12 and removed in 3.27
- The project minimum is at 3.16 already
- Deprecated in Python 3.2 and removed in 3.11
- collections.abc was added in 3.3 collections.Hashable removed in 3.10
- Locally and in Windows actions the second option is needed
- Full UUID support not added and this seems to work for some cases but not all, thus removing until full UUID is added
- And add message if interpreter not found
- Remove the QUIET to get some idea of what cmake is doing
- Trying to debug issue on Appveyor
- The change in find_package favours the latest Python
- Force cmake to use the one specified
- Put back the echo again since it is needed
- Same as per the cmake side
- No need for the check in the step any more since not supporting python 2
- assert_   was removed in Python 3 and later removed
- Fixed the script to error out correctly when the tests fail
   - The RunClientServer.py test did not fail as expected on this error
- Also an issue for latest builds on later windows not only the appveyor builds like originally thoughts
- Used the code as suggested from the ticket as-is without too much understanding
@CJCombrink CJCombrink force-pushed the THRIFT-5885_fix_enum_generate branch from e1e3885 to d168ae2 Compare November 17, 2025 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants