Python: use 'ProtoFiles.getProtoFiles' to sort enums by filename.#2418
Python: use 'ProtoFiles.getProtoFiles' to sort enums by filename.#2418tseaver merged 2 commits intogoogleapis:masterfrom tseaver:2319-python-stable_enum_order
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2418 +/- ##
============================================
+ Coverage 86.72% 86.72% +<.01%
- Complexity 5242 5243 +1
============================================
Files 458 458
Lines 20880 20881 +1
Branches 2252 2252
============================================
+ Hits 18109 18110 +1
Misses 1968 1968
Partials 803 803
Continue to review full report at Codecov.
|
src/main/java/com/google/api/codegen/transformer/py/PythonGapicSurfaceTransformer.java
Outdated
Show resolved
Hide resolved
|
Are there any baseline changes, or are there any changes in the existing generated clients once this goes in? |
|
@andreamlin The baselines didn't change. I believe that the unstable ordering might be related to reading files from the filesystem in "directory order," which isn't necessarily sorted over time. So, this PR just tries to guarantee that the list of proto files is always sorted when generating We do see spurious enum changes showing up due to #2319, e.g. today: |
Closes #2319. I hope. :)
Closes #2319.
I hope. :)