Commit 927f1fb
authored
chore(django-spanner): disable savepoints and remove can_rollback_tests (#16866)
- Set `uses_savepoints = False` in `features.py` to prevent silent
rollback failures in production, as Cloud Spanner does not support
savepoints natively.
Additionally, 9 tests (primarily from `sessions_tests`) were added to
the emulator skip list. These tests are designed to simulate expected
failures within a transaction and rely on savepoints to recover and
continue execution. Because we have disabled savepoints
(`uses_savepoints = False`) for production safety, and Cloud Spanner
breaks the entire transaction upon encountering any error, these tests
are unable to recover and fail with `TransactionManagementError`. They
have been skipped on the emulator as they are fundamentally incompatible
with Spanner's transaction model without native savepoint support.
Fixes #168391 parent c053b98 commit 927f1fb
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
277 | 289 | | |
278 | 290 | | |
279 | 291 | | |
| |||
0 commit comments