sentry-cli 3.5.1__tar.gz → 3.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/Cargo.lock +4 -4
  2. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/Cargo.toml +3 -2
  3. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/PKG-INFO +1 -1
  4. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/sentry_cli.egg-info/PKG-INFO +1 -1
  5. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/mod.rs +108 -11
  6. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/code_mappings/upload.rs +9 -5
  7. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/snapshots/download.rs +30 -1
  8. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/snapshots/upload.rs +3 -4
  9. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/update.rs +1 -1
  10. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/vcs.rs +10 -13
  11. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/LICENSE +0 -0
  12. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/MANIFEST.in +0 -0
  13. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/README.md +0 -0
  14. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/AGENTS.md +0 -0
  15. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/CLAUDE.md +0 -0
  16. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/Cargo.toml +0 -0
  17. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/build.rs +0 -0
  18. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Package.swift +0 -0
  19. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/AssetCatalogParser/AssetCatalogReader.swift +0 -0
  20. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/ObjcSupport/include/safeValueForKey.h +0 -0
  21. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/ObjcSupport/safeValueForKey.m +0 -0
  22. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/AssetCatalogParserTests.swift +0 -0
  23. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/Resources/test.xcarchive/Info.plist +0 -0
  24. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/Resources/test.xcarchive/Products/Applications/DemoApp.app/Assets.car +0 -0
  25. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/src/asset_catalog.rs +0 -0
  26. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/apple-catalog-parsing/src/lib.rs +0 -0
  27. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/build.rs +0 -0
  28. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/pyproject.toml +0 -0
  29. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
  30. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
  31. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/sentry_cli.egg-info/top_level.txt +0 -0
  32. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/setup.cfg +0 -0
  33. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/setup.py +0 -0
  34. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/AGENTS.md +0 -0
  35. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/CLAUDE.md +0 -0
  36. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/connection_manager.rs +0 -0
  37. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/artifact.rs +0 -0
  38. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/build.rs +0 -0
  39. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/compression.rs +0 -0
  40. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/dif.rs +0 -0
  41. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/file_state.rs +0 -0
  42. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
  43. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/mod.rs +0 -0
  44. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
  45. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/chunking/upload/options.rs +0 -0
  46. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/code_mappings.rs +0 -0
  47. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/deploy.rs +0 -0
  48. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/mod.rs +0 -0
  49. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/data_types/snapshots.rs +0 -0
  50. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/encoding.rs +0 -0
  51. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/envelopes_api.rs +0 -0
  52. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/errors/api_error.rs +0 -0
  53. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/errors/mod.rs +0 -0
  54. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/errors/sentry_error.rs +0 -0
  55. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/pagination.rs +0 -0
  56. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/serialization.rs +0 -0
  57. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/api/updating.rs +0 -0
  58. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/bashsupport.sh +0 -0
  59. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/bash_hook.rs +0 -0
  60. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/build/download.rs +0 -0
  61. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/build/mod.rs +0 -0
  62. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/build/upload.rs +0 -0
  63. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/code_mappings/mod.rs +0 -0
  64. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/dart_symbol_map/mod.rs +0 -0
  65. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/dart_symbol_map/upload.rs +0 -0
  66. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
  67. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/bundle_sources.rs +0 -0
  68. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/check.rs +0 -0
  69. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/find.rs +0 -0
  70. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/mod.rs +0 -0
  71. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/print_sources.rs +0 -0
  72. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/debug_files/upload.rs +0 -0
  73. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/deploys/list.rs +0 -0
  74. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/deploys/mod.rs +0 -0
  75. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/deploys/new.rs +0 -0
  76. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/derive_parser.rs +0 -0
  77. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/events/list.rs +0 -0
  78. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/events/mod.rs +0 -0
  79. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/info.rs +0 -0
  80. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/issues/list.rs +0 -0
  81. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/issues/mod.rs +0 -0
  82. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/issues/mute.rs +0 -0
  83. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/issues/resolve.rs +0 -0
  84. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/issues/unresolve.rs +0 -0
  85. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/login.rs +0 -0
  86. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/logs/list.rs +0 -0
  87. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/logs/mod.rs +0 -0
  88. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/mod.rs +0 -0
  89. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/monitors/list.rs +0 -0
  90. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/monitors/mod.rs +0 -0
  91. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/monitors/run.rs +0 -0
  92. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/organizations/list.rs +0 -0
  93. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/organizations/mod.rs +0 -0
  94. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/proguard/mod.rs +0 -0
  95. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/proguard/upload.rs +0 -0
  96. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/proguard/uuid.rs +0 -0
  97. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/projects/list.rs +0 -0
  98. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/projects/mod.rs +0 -0
  99. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/react_native/gradle.rs +0 -0
  100. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/react_native/mod.rs +0 -0
  101. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/react_native/xcode.rs +0 -0
  102. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/archive.rs +0 -0
  103. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/delete.rs +0 -0
  104. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/finalize.rs +0 -0
  105. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/info.rs +0 -0
  106. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/list.rs +0 -0
  107. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/mod.rs +0 -0
  108. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/new.rs +0 -0
  109. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/propose_version.rs +0 -0
  110. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/restore.rs +0 -0
  111. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/releases/set_commits.rs +0 -0
  112. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/repos/list.rs +0 -0
  113. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/repos/mod.rs +0 -0
  114. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/send_envelope.rs +0 -0
  115. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/send_event.rs +0 -0
  116. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/send_metric/common_args.rs +0 -0
  117. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/send_metric/increment.rs +0 -0
  118. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/send_metric/mod.rs +0 -0
  119. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/send_metric/set.rs +0 -0
  120. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/snapshots/diff.rs +0 -0
  121. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/snapshots/mod.rs +0 -0
  122. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/sourcemaps/inject.rs +0 -0
  123. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/sourcemaps/mod.rs +0 -0
  124. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/sourcemaps/resolve.rs +0 -0
  125. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/sourcemaps/upload.rs +0 -0
  126. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/uninstall.rs +0 -0
  127. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/update.rs +0 -0
  128. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/upload_dif.rs +0 -0
  129. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/upload_dsym.rs +0 -0
  130. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/commands/upload_proguard.rs +0 -0
  131. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/config.rs +0 -0
  132. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/constants.rs +0 -0
  133. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/main.rs +0 -0
  134. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/android.rs +0 -0
  135. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/args.rs +0 -0
  136. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
  137. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/error.rs +0 -0
  138. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/mod.rs +0 -0
  139. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/org_auth_token.rs +0 -0
  140. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/redacting.rs +0 -0
  141. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/test.rs +0 -0
  142. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/auth_token/user_auth_token.rs +0 -0
  143. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/build/apple.rs +0 -0
  144. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/build/mod.rs +0 -0
  145. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/build/normalize.rs +0 -0
  146. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/build/validation.rs +0 -0
  147. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/build_vcs.rs +0 -0
  148. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/chunks/mod.rs +0 -0
  149. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/chunks/options.rs +0 -0
  150. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/chunks/types.rs +0 -0
  151. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/chunks/upload.rs +0 -0
  152. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/ci.rs +0 -0
  153. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/cordova.rs +0 -0
  154. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/dif.rs +0 -0
  155. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/dif_upload/error.rs +0 -0
  156. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/dif_upload/mod.rs +0 -0
  157. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/event.rs +0 -0
  158. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/file_search.rs +0 -0
  159. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/file_upload.rs +0 -0
  160. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/formatting.rs +0 -0
  161. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/fs.rs +0 -0
  162. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/http.rs +0 -0
  163. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/logging.rs +0 -0
  164. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/mod.rs +0 -0
  165. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/non_empty.rs +0 -0
  166. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/odiff/binary.rs +0 -0
  167. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/odiff/mod.rs +0 -0
  168. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/odiff/server.rs +0 -0
  169. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/progress.rs +0 -0
  170. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/proguard/mapping.rs +0 -0
  171. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/proguard/mod.rs +0 -0
  172. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/proguard/upload.rs +0 -0
  173. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/releases.rs +0 -0
  174. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/retry.rs +0 -0
  175. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_default_twenty.snap +0 -0
  176. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_ignore_missing.snap +0 -0
  177. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_set_base.snap +0 -0
  178. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_set_previous_commit.snap +0 -0
  179. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__get_commits_from_git.snap +0 -0
  180. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/source_bundle.rs +0 -0
  181. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/sourcemaps/inject.rs +0 -0
  182. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/sourcemaps.rs +0 -0
  183. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/system.rs +0 -0
  184. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/ui.rs +0 -0
  185. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/value_parsers.rs +0 -0
  186. {sentry_cli-3.5.1 → sentry_cli-3.6.0}/src/utils/xcode.rs +0 -0
@@ -1288,15 +1288,14 @@ dependencies = [
1288
1288
 
1289
1289
  [[package]]
1290
1290
  name = "git2"
1291
- version = "0.20.4"
1291
+ version = "0.21.0"
1292
1292
  source = "registry+https://github.com/rust-lang/crates.io-index"
1293
- checksum = "7b88256088d75a56f8ecfa070513a775dd9107f6530ef14919dac831af9cfe2b"
1293
+ checksum = "ddddbf932745a6be37109b6112d3ee09696106f848449069d3a57bba937ab82e"
1294
1294
  dependencies = [
1295
1295
  "bitflags 2.11.1",
1296
1296
  "libc",
1297
1297
  "libgit2-sys",
1298
1298
  "log",
1299
- "url",
1300
1299
  ]
1301
1300
 
1302
1301
  [[package]]
@@ -3630,7 +3629,7 @@ dependencies = [
3630
3629
 
3631
3630
  [[package]]
3632
3631
  name = "sentry-cli"
3633
- version = "3.5.1"
3632
+ version = "3.6.0"
3634
3633
  dependencies = [
3635
3634
  "anyhow",
3636
3635
  "anylog",
@@ -3702,6 +3701,7 @@ dependencies = [
3702
3701
  "whoami",
3703
3702
  "windows-sys 0.59.0",
3704
3703
  "zip 2.4.2",
3704
+ "zstd",
3705
3705
  ]
3706
3706
 
3707
3707
  [[package]]
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  build = "build.rs"
3
3
  name = "sentry-cli"
4
- version = "3.5.1"
4
+ version = "3.6.0"
5
5
  edition = "2021"
6
6
  rust-version = "1.91"
7
7
 
@@ -32,7 +32,7 @@ flate2 = { version = "1.0.25", default-features = false, features = [
32
32
  "rust_backend",
33
33
  ] }
34
34
  futures-util = "0.3"
35
- git2 = { version = "0.20.4", default-features = false }
35
+ git2 = { version = "0.21.0", default-features = false }
36
36
  glob = "0.3.1"
37
37
  http = "1.4.0"
38
38
  if_chain = "1.0.2"
@@ -77,6 +77,7 @@ walkdir = "2.3.2"
77
77
  which = "4.4.0"
78
78
  whoami = "1.5.2"
79
79
  zip = "2.4.2"
80
+ zstd = "0.13.3"
80
81
  data-encoding = "2.3.3"
81
82
  magic_string = "0.3.4"
82
83
  chrono-tz = "0.8.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry_cli
3
- Version: 3.5.1
3
+ Version: 3.6.0
4
4
  Summary: A command line utility to work with Sentry.
5
5
  Home-page: https://github.com/getsentry/sentry-cli
6
6
  Author: Sentry
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry_cli
3
- Version: 3.5.1
3
+ Version: 3.6.0
4
4
  Summary: A command line utility to work with Sentry.
5
5
  Home-page: https://github.com/getsentry/sentry-cli
6
6
  Author: Sentry
@@ -42,6 +42,7 @@ use symbolic::common::DebugId;
42
42
  use symbolic::debuginfo::ObjectKind;
43
43
  use url::Url;
44
44
  use uuid::Uuid;
45
+ use zstd::Encoder as ZstdEncoder;
45
46
 
46
47
  use crate::api::errors::{ProjectRenamedError, RetryError};
47
48
  use crate::config::{Auth, Config};
@@ -1014,13 +1015,16 @@ impl AuthenticatedApi<'_> {
1014
1015
  org: &str,
1015
1016
  project: &str,
1016
1017
  body: &S,
1017
- ) -> ApiResult<ApiResponse> {
1018
+ ) -> ApiResult<CreateSnapshotResponse> {
1018
1019
  let path = format!(
1019
1020
  "/projects/{}/{}/preprodartifacts/snapshots/",
1020
1021
  PathArg(org),
1021
1022
  PathArg(project)
1022
1023
  );
1023
- self.post(&path, body)
1024
+ self.request(Method::Post, &path)?
1025
+ .with_zstd_json_body(body)?
1026
+ .send()?
1027
+ .convert_rnf(ApiErrorKind::ProjectNotFound)
1024
1028
  }
1025
1029
 
1026
1030
  /// Fetches upload options for snapshots.
@@ -1034,7 +1038,7 @@ impl AuthenticatedApi<'_> {
1034
1038
  PathArg(org),
1035
1039
  PathArg(project)
1036
1040
  );
1037
- self.get(&path)?.convert()
1041
+ self.get(&path)?.convert_rnf(ApiErrorKind::ProjectNotFound)
1038
1042
  }
1039
1043
 
1040
1044
  pub fn get_latest_base_snapshot(
@@ -1063,6 +1067,29 @@ impl AuthenticatedApi<'_> {
1063
1067
  }
1064
1068
  }
1065
1069
 
1070
+ pub fn get_snapshot_archive_status(
1071
+ &self,
1072
+ org: &str,
1073
+ snapshot_id: &str,
1074
+ ) -> ApiResult<SnapshotArchiveStatus> {
1075
+ let path = format!(
1076
+ "/organizations/{}/preprodartifacts/snapshots/{}/archive/",
1077
+ PathArg(org),
1078
+ PathArg(snapshot_id),
1079
+ );
1080
+ self.get(&path)?.convert()
1081
+ }
1082
+
1083
+ pub fn trigger_snapshot_archive_build(&self, org: &str, snapshot_id: &str) -> ApiResult<()> {
1084
+ let path = format!(
1085
+ "/organizations/{}/preprodartifacts/snapshots/{}/archive/",
1086
+ PathArg(org),
1087
+ PathArg(snapshot_id),
1088
+ );
1089
+ self.request(Method::Post, &path)?.send()?.into_result()?;
1090
+ Ok(())
1091
+ }
1092
+
1066
1093
  pub fn download_snapshot_zip(
1067
1094
  &self,
1068
1095
  org: &str,
@@ -1070,7 +1097,7 @@ impl AuthenticatedApi<'_> {
1070
1097
  dst: &mut std::fs::File,
1071
1098
  ) -> ApiResult<ApiResponse> {
1072
1099
  let path = format!(
1073
- "/organizations/{}/preprodartifacts/snapshots/{}/download/",
1100
+ "/organizations/{}/preprodartifacts/snapshots/{}/archive/?download",
1074
1101
  PathArg(org),
1075
1102
  PathArg(snapshot_id),
1076
1103
  );
@@ -1360,6 +1387,30 @@ impl ApiRequest {
1360
1387
  Ok(self)
1361
1388
  }
1362
1389
 
1390
+ pub fn with_zstd_json_body<S: Serialize>(mut self, body: &S) -> ApiResult<Self> {
1391
+ let mut encoder = ZstdEncoder::new(Vec::new(), 0)
1392
+ .map_err(|err| ApiError::with_source(ApiErrorKind::CompressionFailed, err))?;
1393
+
1394
+ serde_json::to_writer(&mut encoder, &body).map_err(|err| {
1395
+ let kind = if err.is_io() {
1396
+ ApiErrorKind::CompressionFailed
1397
+ } else {
1398
+ ApiErrorKind::CannotSerializeAsJson
1399
+ };
1400
+ ApiError::with_source(kind, err)
1401
+ })?;
1402
+
1403
+ let compressed = encoder
1404
+ .finish()
1405
+ .map_err(|err| ApiError::with_source(ApiErrorKind::CompressionFailed, err))?;
1406
+
1407
+ debug!("zstd json body: {} bytes compressed", compressed.len());
1408
+ self.body = Some(compressed);
1409
+ self.headers.append("Content-Type: application/json")?;
1410
+ self.headers.append("Content-Encoding: zstd")?;
1411
+ Ok(self)
1412
+ }
1413
+
1363
1414
  pub fn with_body(mut self, body: Vec<u8>) -> Self {
1364
1415
  self.body = Some(body);
1365
1416
  self
@@ -1578,20 +1629,15 @@ impl ApiResponse {
1578
1629
  fn convert_rnf<T: DeserializeOwned>(self, res_err: ApiErrorKind) -> ApiResult<T> {
1579
1630
  match self.status() {
1580
1631
  301 | 302 if res_err == ApiErrorKind::ProjectNotFound => {
1581
- #[derive(Deserialize, Debug)]
1582
- struct ErrorDetail {
1583
- slug: String,
1584
- }
1585
-
1586
1632
  #[derive(Deserialize, Debug)]
1587
1633
  struct ErrorInfo {
1588
- detail: ErrorDetail,
1634
+ slug: String,
1589
1635
  }
1590
1636
 
1591
1637
  match self.convert::<ErrorInfo>() {
1592
1638
  Ok(info) => Err(ApiError::with_source(
1593
1639
  res_err,
1594
- ProjectRenamedError(info.detail.slug),
1640
+ ProjectRenamedError(info.slug),
1595
1641
  )),
1596
1642
  Err(_) => Err(res_err.into()),
1597
1643
  }
@@ -2100,6 +2146,11 @@ pub struct LatestBaseSnapshotResponse {
2100
2146
  pub image_count: u64,
2101
2147
  }
2102
2148
 
2149
+ #[derive(Deserialize)]
2150
+ pub struct SnapshotArchiveStatus {
2151
+ pub ready: bool,
2152
+ }
2153
+
2103
2154
  /// Upload options returned by the snapshots upload-options endpoint.
2104
2155
  #[derive(Debug, Deserialize)]
2105
2156
  #[serde(rename_all = "camelCase")]
@@ -2116,3 +2167,49 @@ pub struct ObjectstoreUploadOptions {
2116
2167
  pub auth_token: Option<SecretString>,
2117
2168
  pub expiration_policy: String,
2118
2169
  }
2170
+
2171
+ #[cfg(test)]
2172
+ mod tests {
2173
+ use std::error::Error as _;
2174
+
2175
+ use super::*;
2176
+
2177
+ fn project_renamed_response() -> ApiResponse {
2178
+ ApiResponse {
2179
+ status: 302,
2180
+ headers: vec!["content-type: application/json".to_owned()],
2181
+ body: Some(
2182
+ br#"{"slug":"new-project-slug","detail":{"extra":{"url":"/api/0/projects/wat-org/new-project-slug/preprodartifacts/snapshots/upload-options/","slug":"new-project-slug"}}}"#
2183
+ .to_vec(),
2184
+ ),
2185
+ }
2186
+ }
2187
+
2188
+ #[test]
2189
+ fn convert_rnf_reports_project_rename() {
2190
+ let err = project_renamed_response()
2191
+ .convert_rnf::<SnapshotsUploadOptions>(ApiErrorKind::ProjectNotFound)
2192
+ .expect_err("expected a project-renamed error");
2193
+
2194
+ let source = err.source().map(|s| s.to_string()).unwrap_or_default();
2195
+
2196
+ assert!(
2197
+ source.contains("project was renamed to 'new-project-slug'"),
2198
+ "expected rename message in error source, got: {err:?} / source: {source}"
2199
+ );
2200
+ }
2201
+
2202
+ #[test]
2203
+ fn convert_rnf_reports_project_rename_for_create_response() {
2204
+ let err = project_renamed_response()
2205
+ .convert_rnf::<CreateSnapshotResponse>(ApiErrorKind::ProjectNotFound)
2206
+ .expect_err("expected a project-renamed error");
2207
+
2208
+ let source = err.source().map(|s| s.to_string()).unwrap_or_default();
2209
+
2210
+ assert!(
2211
+ source.contains("project was renamed to 'new-project-slug'"),
2212
+ "expected rename message in error source, got: {err:?} / source: {source}"
2213
+ );
2214
+ }
2215
+ }
@@ -170,11 +170,15 @@ fn resolve_git_remote(repo: &git2::Repository) -> Option<String> {
170
170
  /// Finds the remote whose URL matches the given repository name (e.g. "owner/repo").
171
171
  fn find_remote_for_repo(repo: &git2::Repository, repo_name: &str) -> Option<String> {
172
172
  let remotes = repo.remotes().ok()?;
173
- let found = remotes.iter().flatten().find(|name| {
174
- vcs::git_repo_remote_url(repo, name)
175
- .map(|url| vcs::get_repo_from_remote_preserve_case(&url) == repo_name)
176
- .unwrap_or(false)
177
- })?;
173
+ let found = remotes
174
+ .iter()
175
+ .filter_map(Result::ok)
176
+ .flatten()
177
+ .find(|name| {
178
+ vcs::git_repo_remote_url(repo, name)
179
+ .map(|url| vcs::get_repo_from_remote_preserve_case(&url) == repo_name)
180
+ .unwrap_or(false)
181
+ })?;
178
182
  debug!("Found remote '{found}' matching repo '{repo_name}'");
179
183
  Some(found.to_owned())
180
184
  }
@@ -1,15 +1,20 @@
1
1
  use std::fs;
2
2
  use std::io;
3
3
  use std::path::PathBuf;
4
+ use std::thread::sleep;
5
+ use std::time::{Duration, Instant};
4
6
 
5
7
  use anyhow::{bail, Result};
6
8
  use clap::{Arg, ArgMatches, Command};
7
9
 
8
- use crate::api::Api;
10
+ use crate::api::{Api, AuthenticatedApi};
9
11
  use crate::config::Config;
10
12
  use crate::utils::args::ArgExt as _;
11
13
  use crate::utils::fs::{path_as_url, TempFile};
12
14
 
15
+ const POLL_INTERVAL: Duration = Duration::from_secs(2);
16
+ const POLL_TIMEOUT: Duration = Duration::from_secs(300);
17
+
13
18
  pub fn make_command(command: Command) -> Command {
14
19
  command
15
20
  .about("Download baseline snapshot images from Sentry.")
@@ -89,6 +94,8 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
89
94
  _ => bail!("Exactly one of --app-id or --snapshot-id must be provided"),
90
95
  };
91
96
 
97
+ wait_for_archive(&api, &org, &snapshot_id)?;
98
+
92
99
  eprintln!("Downloading snapshot {snapshot_id}...");
93
100
  let tmp = TempFile::create()?;
94
101
  let mut tmp_file = tmp.open()?;
@@ -130,3 +137,25 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
130
137
 
131
138
  Ok(())
132
139
  }
140
+
141
+ fn wait_for_archive(api: &AuthenticatedApi, org: &str, snapshot_id: &str) -> Result<()> {
142
+ if api.get_snapshot_archive_status(org, snapshot_id)?.ready {
143
+ return Ok(());
144
+ }
145
+
146
+ api.trigger_snapshot_archive_build(org, snapshot_id)?;
147
+ eprintln!("Building snapshot archive...");
148
+
149
+ let start = Instant::now();
150
+ while !api.get_snapshot_archive_status(org, snapshot_id)?.ready {
151
+ if start.elapsed() >= POLL_TIMEOUT {
152
+ bail!(
153
+ "Snapshot archive was not ready after {}s. The build may still be running; try again shortly.",
154
+ POLL_TIMEOUT.as_secs()
155
+ );
156
+ }
157
+ sleep(POLL_INTERVAL);
158
+ }
159
+
160
+ Ok(())
161
+ }
@@ -18,7 +18,7 @@ use serde_json::Value;
18
18
  use sha2::{Digest as _, Sha256};
19
19
  use walkdir::WalkDir;
20
20
 
21
- use crate::api::{Api, CreateSnapshotResponse, ImageMetadata, SnapshotsManifest};
21
+ use crate::api::{Api, ImageMetadata, SnapshotsManifest};
22
22
  use crate::config::Config;
23
23
  use crate::utils::args::ArgExt as _;
24
24
  use crate::utils::build_vcs::collect_git_metadata;
@@ -207,10 +207,9 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
207
207
  // POST manifest to API
208
208
  println!("{} Creating snapshot...", style(">").dim());
209
209
  let api = Api::current();
210
- let response: CreateSnapshotResponse = api
210
+ let response = api
211
211
  .authenticated()?
212
- .create_preprod_snapshot(&org, &project, &manifest)?
213
- .convert()?;
212
+ .create_preprod_snapshot(&org, &project, &manifest)?;
214
213
 
215
214
  println!(
216
215
  "{} Created snapshot {} with {} {}",
@@ -109,7 +109,7 @@ impl LastUpdateCheck {
109
109
  if let Some(ref release_v) = self.last_fetched_version;
110
110
  if let Some(ref check_v) = self.last_check_version;
111
111
  then {
112
- Version::parse(release_v.as_str()).unwrap() < Version::parse(VERSION).unwrap() &&
112
+ Version::parse(VERSION).unwrap() < Version::parse(release_v.as_str()).unwrap() &&
113
113
  check_v.as_str() == VERSION
114
114
  } else {
115
115
  false
@@ -255,10 +255,7 @@ pub fn git_repo_remote_url(
255
255
  cached_remote: &str,
256
256
  ) -> Result<String, git2::Error> {
257
257
  let remote = repo.find_remote(cached_remote)?;
258
- remote
259
- .url()
260
- .map(|url| url.to_owned())
261
- .ok_or_else(|| git2::Error::from_str("No remote URL found"))
258
+ remote.url().map(|url| url.to_owned())
262
259
  }
263
260
 
264
261
  pub fn git_repo_head_ref(repo: &git2::Repository) -> Result<String> {
@@ -269,7 +266,7 @@ pub fn git_repo_head_ref(repo: &git2::Repository) -> Result<String> {
269
266
  if head.is_branch() {
270
267
  head.shorthand()
271
268
  .map(|s| s.to_owned())
272
- .ok_or_else(|| anyhow::anyhow!("No HEAD reference found"))
269
+ .with_context(|| "No HEAD reference found")
273
270
  } else {
274
271
  // In detached HEAD state, return an error to indicate no valid branch reference
275
272
  Err(anyhow::anyhow!(
@@ -287,7 +284,7 @@ pub fn git_repo_base_ref(repo: &git2::Repository, remote_name: &str) -> Result<S
287
284
  let name = remote_ref
288
285
  .resolve()?
289
286
  .shorthand()
290
- .ok_or(anyhow::anyhow!("Remote branch name is not valid UTF-8"))?
287
+ .with_context(|| "Remote branch name is not valid UTF-8")?
291
288
  .to_owned();
292
289
 
293
290
  let expected_prefix = format!("{remote_name}/");
@@ -305,7 +302,7 @@ pub fn git_repo_base_ref(repo: &git2::Repository, remote_name: &str) -> Result<S
305
302
  /// Prefers "upstream" if it exists, then "origin", otherwise uses the first remote.
306
303
  pub fn find_best_remote(repo: &git2::Repository) -> Result<Option<String>> {
307
304
  let remotes = repo.remotes()?;
308
- let remote_names: Vec<&str> = remotes.iter().flatten().collect();
305
+ let remote_names: Vec<&str> = remotes.iter().filter_map(Result::ok).flatten().collect();
309
306
 
310
307
  if remote_names.is_empty() {
311
308
  return Ok(None);
@@ -469,7 +466,7 @@ fn find_matching_rev(
469
466
  // mode we want to also check for matching URLs.
470
467
  if_chain! {
471
468
  if let Ok(remote) = repo.find_remote(&remote_name.unwrap_or_else(|| "origin".to_owned()));
472
- if let Some(url) = remote.url();
469
+ if let Ok(url) = remote.url();
473
470
  then {
474
471
  if !discovery || is_matching_url(url, &reference_url) {
475
472
  debug!(" found match: {url} == {}, {r:?}", &reference_url);
@@ -501,7 +498,7 @@ fn find_matching_submodule(
501
498
  ) -> Result<Option<String>> {
502
499
  // in discovery mode we want to find that repo in associated submodules.
503
500
  for submodule in repo.submodules()? {
504
- if let Some(submodule_url) = submodule.url() {
501
+ if let Ok(Some(submodule_url)) = submodule.url() {
505
502
  debug!(" found submodule with URL {submodule_url}");
506
503
  if is_matching_url(submodule_url, &reference_url) {
507
504
  debug!(
@@ -792,9 +789,9 @@ pub fn generate_patch_set(
792
789
  for (index, commit) in commits.iter().enumerate() {
793
790
  let mut git_commit = GitCommit {
794
791
  id: commit.id().to_string(),
795
- author_name: commit.author().name().map(|s| s.to_owned()),
796
- author_email: commit.author().email().map(|s| s.to_owned()),
797
- message: commit.message().map(|s| s.to_owned()),
792
+ author_name: commit.author().name().ok().map(|s| s.to_owned()),
793
+ author_email: commit.author().email().ok().map(|s| s.to_owned()),
794
+ message: commit.message().ok().map(|s| s.to_owned()),
798
795
  repository: repository.to_owned(),
799
796
  timestamp: get_commit_time(commit.author().when()),
800
797
  patch_set: vec![],
@@ -1375,7 +1372,7 @@ mod tests {
1375
1372
  (
1376
1373
  c.author().name().unwrap().to_owned(),
1377
1374
  c.author().email().unwrap().to_owned(),
1378
- c.summary(),
1375
+ c.summary().unwrap(),
1379
1376
  )
1380
1377
  })
1381
1378
  .collect::<Vec<_>>());
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes