Changes between Initial Version and Version 1 of Ticket #35921


Ignore:
Timestamp:
Nov 19, 2024, 7:34:22 PM (4 days ago)
Author:
Raphael Gaschignard
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35921 – Description

    initial v1  
    33- Add the following file to `tests`, as `test_postgres.py`
    44
    5 ```
     5{{{
    66import os
    77
     
    2929    },
    3030}
    31 ```
     31}}}
    3232
    3333- In `tests`, run the following:
    3434
    35 ```
     35{{{
    3636python runtests.py --settings=test_postgres -k migration_test_data_persistence --parallel=2
    37 ```
     37}}}
    3838
    39 An error should occur of the variety:
     39An error occurs (for me at least) of the variety:
    4040
    41 ```
     41{{{
    4242psycopg.errors.FeatureNotSupported: cannot truncate a table referenced in a foreign key constraint
    4343DETAIL:  Table "model_package_advertisement_publications" references "model_package_publication".
    4444HINT:  Truncate table "model_package_advertisement_publications" at the same time, or use TRUNCATE ... CASCADE.
    45 ```
     45}}}
    4646
    4747Running 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.
Back to Top