tree: a9441354b19ef659a1539bf663e326efd43f58c0 [path history] [tgz]
  1. break1.thrift
  2. break10.thrift
  3. break11.thrift
  4. break12.thrift
  5. break13.thrift
  6. break14.thrift
  7. break15.thrift
  8. break16.thrift
  9. break17.thrift
  10. break18.thrift
  11. break19.thrift
  12. break2.thrift
  13. break20.thrift
  14. break21.thrift
  15. break22.thrift
  16. break23.thrift
  17. break24.thrift
  18. break25.thrift
  19. break26.thrift
  20. break27.thrift
  21. break28.thrift
  22. break29.thrift
  23. break3.thrift
  24. break30.thrift
  25. break31.thrift
  26. break32.thrift
  27. break33.thrift
  28. break34.thrift
  29. break4.thrift
  30. break5.thrift
  31. break6.thrift
  32. break7.thrift
  33. break8.thrift
  34. break9.thrift
  35. README.md
  36. test.thrift
  37. thrift_audit_test.pl
  38. warning.thrift
test/audit/README.md

Typical usage

thrift.exe --audit <oldFile> <newFile>

Example run

> thrift.exe --audit test.thrift break1.thrift
[Thrift Audit Failure:break1.thrift] New Thrift File has missing function base_function3
[Thrift Audit Warning:break1.thrift] Constant const3 has different value

Problems that the audit tool can catch

Errors

  • Removing an enum value
  • Changing the type of a struct field
  • Changing the required-ness of a struct field
  • Removing a struct field
  • Adding a required struct field
  • Adding a struct field ‘in the middle’. This usually indicates an old ID has been recycled
  • Struct removed
  • Oneway-ness change
  • Return type change
  • Missing function
  • Missing service
  • Change in service inheritance

Warnings

  • Removing a language namespace declaration
  • Changing a namespace
  • Changing an enum value's name
  • Removing an enum class
  • Default value changed
  • Struct field name change
  • Removed constant
  • Type of constant changed
  • Value of constant changed