Changes between Initial Version and Version 1 of Ticket #35921
- Timestamp:
- Nov 19, 2024, 7:34:22 PM (4 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35921 – Description
initial v1 3 3 - Add the following file to `tests`, as `test_postgres.py` 4 4 5 ``` 5 {{{ 6 6 import os 7 7 … … 29 29 }, 30 30 } 31 ``` 31 }}} 32 32 33 33 - In `tests`, run the following: 34 34 35 ``` 35 {{{ 36 36 python runtests.py --settings=test_postgres -k migration_test_data_persistence --parallel=2 37 ``` 37 }}} 38 38 39 An error should occurof the variety:39 An error occurs (for me at least) of the variety: 40 40 41 ``` 41 {{{ 42 42 psycopg.errors.FeatureNotSupported: cannot truncate a table referenced in a foreign key constraint 43 43 DETAIL: Table "model_package_advertisement_publications" references "model_package_publication". 44 44 HINT: Truncate table "model_package_advertisement_publications" at the same time, or use TRUNCATE ... CASCADE. 45 ``` 45 }}} 46 46 47 47 Running with `--parallel=1` does not trigger this issue. I imagine that something is happening regarding the test sharding code, given that this test calls out to a command that might not be persisting the sharding logic.