-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-14999.SWE-bench_Lite_golden.eval.log
310 lines (300 loc) · 20.7 KB
/
django__django-14999.SWE-bench_Lite_golden.eval.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
[django__django__4.1] [django__django-14999] Task Metadata:
- Instance ID: django__django-14999
- Testbed: django__django__4.1
- Evaluation Model: SWE-bench_Lite_golden
- Python version: Python 3.9.19
[django__django__4.1] [django__django-14999] Command: git -c advice.detachedHead=false checkout a754b82dac511475b6276039471ccd17cc64aeb8
[django__django__4.1] [django__django-14999] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14999] Std. Output:
Previous HEAD position was 647480166b Refs #33685 -- Doc'd that using PostgreSQL's service names for testing purposes is not supported.
HEAD is now at a754b82dac Refs #33182 -- Adjusted custom admin theming example to use correct template block.
[django__django__4.1] [django__django-14999] Return Code: 0
[django__django__4.1] [django__django-14999] Command: git apply -v /opt/temp_django__django-14999_pred_try.patch
[django__django__4.1] [django__django-14999] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14999] Std. Output:
Checking patch django/db/migrations/operations/models.py...
Applied patch django/db/migrations/operations/models.py cleanly.
[django__django__4.1] [django__django-14999] Return Code: 0
[django__django__4.1] [django__django-14999] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-14999] Command: git apply -v -R /opt/temp_django__django-14999_pred_try.patch
[django__django__4.1] [django__django-14999] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14999] Std. Output:
Checking patch django/db/migrations/operations/models.py...
Applied patch django/db/migrations/operations/models.py cleanly.
[django__django__4.1] [django__django-14999] Return Code: 0
[django__django__4.1] [django__django-14999] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-14999] Command: git apply -v /opt/temp_django__django-14999_pred.patch
[django__django__4.1] [django__django-14999] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14999] Std. Output:
Checking patch django/db/migrations/operations/models.py...
Applied patch django/db/migrations/operations/models.py cleanly.
[django__django__4.1] [django__django-14999] Return Code: 0
[django__django__4.1] [django__django-14999] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.1] [django__django-14999] Command: git apply -v /opt/temp_django__django-14999_test.patch
[django__django__4.1] [django__django-14999] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-14999] Std. Output:
Checking patch tests/migrations/test_operations.py...
Applied patch tests/migrations/test_operations.py cleanly.
[django__django__4.1] [django__django-14999] Return Code: 0
[django__django__4.1] [django__django-14999] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 migrations.test_operations;
[django__django__4.1] [django__django-14999] Command: ./tests/runtests.py --verbosity 2 migrations.test_operations
[django__django__4.1] [django__django-14999] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 900}
[django__django__4.1] [django__django-14999] Std. Output:
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Testing against Django installed in '/opt/django__django/django' with up to 128 processes
Importing application migrations
Found 120 test(s).
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, messages, migrations, sessions, staticfiles
Apply all migrations: admin, sites
Synchronizing apps without migrations:
Creating tables...
Creating table django_content_type
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table django_session
Creating table migrations_modelwithcustombase
Creating table migrations_unmigratedmodel
Running deferred SQL...
Running migrations:
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Cloning test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Creating test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, messages, migrations, sessions, staticfiles
Apply all migrations: admin, sites
Synchronizing apps without migrations:
Creating tables...
Creating table django_content_type
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table django_session
Creating table migrations_modelwithcustombase
Creating table migrations_unmigratedmodel
Running deferred SQL...
Running migrations:
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Cloning test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
System check identified no issues (0 silenced).
test_references_model_mixin (migrations.test_operations.TestCreateModel) ... ok
test_reference_field_by_through_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_from_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_name (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_remote_field_model (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_through (migrations.test_operations.FieldOperationTests) ... ok
test_references_field_by_to_fields (migrations.test_operations.FieldOperationTests) ... ok
test_references_model (migrations.test_operations.FieldOperationTests) ... ok
test_add_field_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Tests the AddField operation. ... ok
test_create_ignore_swapped (migrations.test_operations.SwappableOperationTests)
The CreateTable operation ignores swapped models. ... ok
test_delete_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Tests the DeleteModel operation ignores swapped models. ... ok
test_indexes_ignore_swapped (migrations.test_operations.SwappableOperationTests)
Add/RemoveIndex operations ignore swapped models. ... ok
test_add_binaryfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField/BinaryField. ... ok
test_add_charfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField. ... ok
test_add_constraint (migrations.test_operations.OperationTests) ... ok
test_add_constraint_combinable (migrations.test_operations.OperationTests) ... ok
test_add_constraint_percent_escaping (migrations.test_operations.OperationTests) ... ok
test_add_covering_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_field (migrations.test_operations.OperationTests)
Tests the AddField operation. ... ok
test_add_field_m2m (migrations.test_operations.OperationTests)
Tests the AddField operation with a ManyToManyField. ... ok
test_add_field_preserve_default (migrations.test_operations.OperationTests)
Tests the AddField operation's state alteration ... ok
test_add_func_index (migrations.test_operations.OperationTests) ... ok
test_add_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_index (migrations.test_operations.OperationTests)
Test the AddIndex operation. ... ok
test_add_index_state_forwards (migrations.test_operations.OperationTests) ... ok
test_add_or_constraint (migrations.test_operations.OperationTests) ... ok
test_add_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_add_textfield (migrations.test_operations.OperationTests)
Tests the AddField operation on TextField. ... ok
test_alter_field (migrations.test_operations.OperationTests)
Tests the AlterField operation. ... ok
test_alter_field_add_db_column_noop (migrations.test_operations.OperationTests)
AlterField operation is a noop when adding only a db_column and the ... ok
test_alter_field_m2m (migrations.test_operations.OperationTests) ... ok
test_alter_field_pk (migrations.test_operations.OperationTests)
Tests the AlterField operation on primary keys (for things like PostgreSQL's SERIAL weirdness) ... ok
test_alter_field_pk_fk (migrations.test_operations.OperationTests)
Tests the AlterField operation on primary keys changes any FKs pointing to it. ... ok
test_alter_field_pk_mti_fk (migrations.test_operations.OperationTests) ... ok
test_alter_field_reloads_state_on_fk_target_changes (migrations.test_operations.OperationTests)
If AlterField doesn't reload state appropriately, the second AlterField ... ok
test_alter_field_reloads_state_on_fk_with_to_field_related_name_target_type_change (migrations.test_operations.OperationTests) ... ok
test_alter_field_reloads_state_on_fk_with_to_field_target_changes (migrations.test_operations.OperationTests)
If AlterField doesn't reload state appropriately, the second AlterField ... ok
test_alter_field_reloads_state_on_fk_with_to_field_target_type_change (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_func_index (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_alter_field_with_index (migrations.test_operations.OperationTests)
Test AlterField operation with an index to ensure indexes created via ... ok
test_alter_fk (migrations.test_operations.OperationTests)
Creating and then altering an FK works correctly ... ok
test_alter_fk_non_fk (migrations.test_operations.OperationTests)
Altering an FK to a non-FK works (#23244) ... ok
test_alter_index_together (migrations.test_operations.OperationTests)
Tests the AlterIndexTogether operation. ... ok
test_alter_index_together_remove (migrations.test_operations.OperationTests) ... ok
test_alter_index_together_remove_with_unique_together (migrations.test_operations.OperationTests) ... ok
test_alter_model_managers (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_alter_model_managers_emptying (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_alter_model_options (migrations.test_operations.OperationTests)
Tests the AlterModelOptions operation. ... ok
test_alter_model_options_emptying (migrations.test_operations.OperationTests)
The AlterModelOptions operation removes keys from the dict (#23121) ... ok
test_alter_model_table (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation. ... ok
test_alter_model_table_m2m (migrations.test_operations.OperationTests)
AlterModelTable should rename auto-generated M2M tables. ... ok
test_alter_model_table_none (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation if the table name is set to None. ... ok
test_alter_model_table_noop (migrations.test_operations.OperationTests)
Tests the AlterModelTable operation if the table name is not changed. ... ok
test_alter_order_with_respect_to (migrations.test_operations.OperationTests)
Tests the AlterOrderWithRespectTo operation. ... ok
test_alter_unique_together (migrations.test_operations.OperationTests)
Tests the AlterUniqueTogether operation. ... ok
test_alter_unique_together_remove (migrations.test_operations.OperationTests) ... ok
test_autofield__bigautofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from AutoField to BigAutoField. ... ok
test_column_name_quoting (migrations.test_operations.OperationTests)
Column names that are SQL keywords shouldn't cause problems when used ... ok
test_create_model (migrations.test_operations.OperationTests)
Tests the CreateModel operation. ... ok
test_create_model_inheritance (migrations.test_operations.OperationTests)
Tests the CreateModel operation on a multi-table inheritance setup. ... ok
test_create_model_m2m (migrations.test_operations.OperationTests)
Test the creation of a model with a ManyToMany field and the ... ok
test_create_model_managers (migrations.test_operations.OperationTests)
The managers on a model are set. ... ok
test_create_model_with_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_covering_unique_constraint (migrations.test_operations.OperationTests) ... skipped "Database doesn't support feature(s): supports_covering_indexes"
test_create_model_with_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_base (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_field_name (migrations.test_operations.OperationTests) ... ok
test_create_model_with_duplicate_manager_name (migrations.test_operations.OperationTests) ... ok
test_create_model_with_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_create_model_with_unique_after (migrations.test_operations.OperationTests)
Tests the CreateModel operation directly followed by an ... ok
test_create_proxy_model (migrations.test_operations.OperationTests)
CreateModel ignores proxy models. ... ok
test_create_unmanaged_model (migrations.test_operations.OperationTests)
CreateModel ignores unmanaged models. ... ok
test_delete_model (migrations.test_operations.OperationTests)
Tests the DeleteModel operation. ... ok
test_delete_mti_model (migrations.test_operations.OperationTests) ... ok
test_delete_proxy_model (migrations.test_operations.OperationTests)
Tests the DeleteModel operation ignores proxy models. ... ok
test_model_with_bigautofield (migrations.test_operations.OperationTests)
A model with BigAutoField can be created. ... ok
test_remove_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_covering_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_deferred_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_field (migrations.test_operations.OperationTests)
Tests the RemoveField operation. ... ok
test_remove_field_m2m (migrations.test_operations.OperationTests) ... ok
test_remove_field_m2m_with_through (migrations.test_operations.OperationTests) ... ok
test_remove_fk (migrations.test_operations.OperationTests)
Tests the RemoveField operation on a foreign key. ... ok
test_remove_func_index (migrations.test_operations.OperationTests) ... ok
test_remove_func_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_remove_index (migrations.test_operations.OperationTests)
Test the RemoveIndex operation. ... ok
test_remove_index_state_forwards (migrations.test_operations.OperationTests) ... ok
test_remove_partial_unique_constraint (migrations.test_operations.OperationTests) ... ok
test_rename_field (migrations.test_operations.OperationTests)
Tests the RenameField operation. ... ok
test_rename_field_case (migrations.test_operations.OperationTests) ... ok
test_rename_field_reloads_state_on_fk_target_changes (migrations.test_operations.OperationTests)
If RenameField doesn't reload state appropriately, the AlterField ... ok
test_rename_field_with_db_column (migrations.test_operations.OperationTests) ... ok
test_rename_m2m_model_after_rename_field (migrations.test_operations.OperationTests)
RenameModel renames a many-to-many column after a RenameField. ... ok
test_rename_m2m_target_model (migrations.test_operations.OperationTests) ... ok
test_rename_m2m_through_model (migrations.test_operations.OperationTests) ... ok
test_rename_missing_field (migrations.test_operations.OperationTests) ... ok
test_rename_model (migrations.test_operations.OperationTests)
Tests the RenameModel operation. ... ok
test_rename_model_state_forwards (migrations.test_operations.OperationTests)
RenameModel operations shouldn't trigger the caching of rendered apps ... ok
test_rename_model_with_db_table_noop (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_m2m (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_self_referential_fk (migrations.test_operations.OperationTests)
Tests the RenameModel operation on model with self referential FK. ... ok
test_rename_model_with_self_referential_m2m (migrations.test_operations.OperationTests) ... ok
test_rename_model_with_superclass_fk (migrations.test_operations.OperationTests)
Tests the RenameModel operation on a model which has a superclass that ... ok
test_rename_referenced_field_state_forward (migrations.test_operations.OperationTests) ... ok
test_repoint_field_m2m (migrations.test_operations.OperationTests) ... ok
test_run_python (migrations.test_operations.OperationTests)
Tests the RunPython operation ... ok
test_run_python_atomic (migrations.test_operations.OperationTests)
Tests the RunPython operation correctly handles the "atomic" keyword ... ok
test_run_python_noop (migrations.test_operations.OperationTests)
#24098 - Tests no-op RunPython operations. ... ok
test_run_python_related_assignment (migrations.test_operations.OperationTests)
#24282 - Model changes to a FK reverse side update the model ... ok
test_run_sql (migrations.test_operations.OperationTests)
Tests the RunSQL operation. ... ok
test_run_sql_add_missing_semicolon_on_collect_sql (migrations.test_operations.OperationTests) ... ok
test_run_sql_noop (migrations.test_operations.OperationTests)
#24098 - Tests no-op RunSQL operations. ... ok
test_run_sql_params (migrations.test_operations.OperationTests)
#23426 - RunSQL should accept parameters. ... ok
test_run_sql_params_invalid (migrations.test_operations.OperationTests)
#23426 - RunSQL should fail when a list of statements with an incorrect ... ok
test_separate_database_and_state (migrations.test_operations.OperationTests)
Tests the SeparateDatabaseAndState operation. ... ok
test_separate_database_and_state2 (migrations.test_operations.OperationTests)
A complex SeparateDatabaseAndState operation: Multiple operations both ... ok
test_smallfield_autofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from SmallAutoField to AutoField. ... ok
test_smallfield_bigautofield_foreignfield_growth (migrations.test_operations.OperationTests)
A field may be migrated from SmallAutoField to BigAutoField. ... ok
----------------------------------------------------------------------
Ran 120 tests in 1.348s
OK (skipped=1)
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
Destroying test database for alias 'other' ('file:memorydb_other?mode=memory&cache=shared')...
[django__django__4.1] [django__django-14999] Return Code: 0
>>>>> All Tests Passed
[django__django__4.1] [django__django-14999] Test script run successful