-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-15252.gpt-4-0125-preview.eval.log
304 lines (288 loc) · 18.6 KB
/
django__django-15252.gpt-4-0125-preview.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
[django__django__4.1] [django__django-15252] Task Metadata:
- Instance ID: django__django-15252
- Testbed: django__django__4.1
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.9.19
[django__django__4.1] [django__django-15252] Command: git -c advice.detachedHead=false checkout 361bb8f786f112ee275be136795c0b1ecefff928
[django__django__4.1] [django__django-15252] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15252] 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 361bb8f786 Refs #26872 -- Fixed wrapping of long choices in ModelAdmin.list_filter.
[django__django__4.1] [django__django-15252] Return Code: 0
[django__django__4.1] [django__django-15252] Command: git apply -v /opt/temp_django__django-15252_pred_try.patch
[django__django__4.1] [django__django-15252] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15252] Std. Output:
Checking patch django/db/migrations/recorder.py...
Applied patch django/db/migrations/recorder.py cleanly.
[django__django__4.1] [django__django-15252] Return Code: 0
[django__django__4.1] [django__django-15252] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-15252] Command: git apply -v -R /opt/temp_django__django-15252_pred_try.patch
[django__django__4.1] [django__django-15252] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15252] Std. Output:
Checking patch django/db/migrations/recorder.py...
Applied patch django/db/migrations/recorder.py cleanly.
[django__django__4.1] [django__django-15252] Return Code: 0
[django__django__4.1] [django__django-15252] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-15252] Command: git apply -v /opt/temp_django__django-15252_pred.patch
[django__django__4.1] [django__django-15252] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15252] Std. Output:
Checking patch django/db/migrations/recorder.py...
Applied patch django/db/migrations/recorder.py cleanly.
[django__django__4.1] [django__django-15252] Return Code: 0
[django__django__4.1] [django__django-15252] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.1] [django__django-15252] Command: git apply -v /opt/temp_django__django-15252_test.patch
[django__django__4.1] [django__django-15252] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15252] Std. Output:
Checking patch tests/backends/base/test_creation.py...
Checking patch tests/migrations/test_executor.py...
Applied patch tests/backends/base/test_creation.py cleanly.
Applied patch tests/migrations/test_executor.py cleanly.
[django__django__4.1] [django__django-15252] Return Code: 0
[django__django__4.1] [django__django-15252] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 backends.base.test_creation migrations.test_executor;
[django__django__4.1] [django__django-15252] Command: ./tests/runtests.py --verbosity 2 backends.base.test_creation migrations.test_executor
[django__django__4.1] [django__django-15252] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__4.1] [django__django-15252] 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 12 processes
Importing application migrations
Importing application backends
Found 36 test(s).
Operations to perform:
Synchronize unmigrated apps: auth, backends, 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
Creating table backends_square
Creating table backends_person
Creating table backends_schoolclass
Creating table backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Creating table backends_tag
Creating table CaseSensitive_Post
Creating table backends_reporter
Creating table backends_article
Creating table backends_item
Creating table backends_object
Creating table backends_objectreference
Creating table backends_objectselfreference
Creating table backends_circulara
Creating table backends_circularb
Creating table backends_rawdata
Creating table backends_author
Creating table backends_book
Creating table order
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')...
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, backends, 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
Creating table backends_square
Creating table backends_person
Creating table backends_schoolclass
Creating table backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Creating table backends_tag
Creating table CaseSensitive_Post
Creating table backends_reporter
Creating table backends_article
Creating table backends_item
Creating table backends_object
Creating table backends_objectreference
Creating table backends_objectselfreference
Creating table backends_circulara
Creating table backends_circularb
Creating table backends_rawdata
Creating table backends_author
Creating table backends_book
Creating table order
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')...
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_custom_test_name (backends.base.test_creation.TestDbSignatureTests) ... ok
test_custom_test_name_with_test_prefix (backends.base.test_creation.TestDbSignatureTests) ... ok
test_default_name (backends.base.test_creation.TestDbSignatureTests) ... ok
test_mark_expected_failures_and_skips (backends.base.test_creation.TestMarkTests) ... ok
test_backwards_nothing_to_do (migrations.test_executor.ExecutorUnitTests)
If the current state satisfies the given target, do nothing. ... ok
test_minimize_rollbacks (migrations.test_executor.ExecutorUnitTests)
Minimize unnecessary rollbacks in connected apps. ... ok
test_minimize_rollbacks_branchy (migrations.test_executor.ExecutorUnitTests)
Minimize rollbacks when target has multiple in-app children. ... ok
test_mark_expected_failures_and_skips_call (backends.base.test_creation.TestDbCreationTests)
mark_expected_failures_and_skips() isn't called unless ... ok
test_migrate_test_setting_false (backends.base.test_creation.TestDbCreationTests) ... ok
test_migrate_test_setting_false_ensure_schema (backends.base.test_creation.TestDbCreationTests) ... FAIL
test_migrate_test_setting_true (backends.base.test_creation.TestDbCreationTests) ... ok
test_circular_reference (backends.base.test_creation.TestDeserializeDbFromString) ... ok
test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString) ... ok
test_self_reference (backends.base.test_creation.TestDeserializeDbFromString) ... ok
test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString) ... ok
test_alter_id_type_with_fk (migrations.test_executor.ExecutorTests) ... ok
test_apply_all_replaced_marks_replacement_as_applied (migrations.test_executor.ExecutorTests)
Applying all replaced migrations marks replacement as applied (#24628). ... ok
test_atomic_operation_in_non_atomic_migration (migrations.test_executor.ExecutorTests)
An atomic operation is properly rolled back inside a non-atomic ... ok
test_custom_user (migrations.test_executor.ExecutorTests)
Regression test for #22325 - references to a custom user model defined in the ... ok
test_detect_soft_applied_add_field_manytomanyfield (migrations.test_executor.ExecutorTests)
executor.detect_soft_applied() detects ManyToManyField tables from an ... ok
test_empty_plan (migrations.test_executor.ExecutorTests)
Re-planning a full migration of a fully-migrated set doesn't ... ok
test_migrate_backward_to_squashed_migration (migrations.test_executor.ExecutorTests) ... ok
test_migrate_marks_replacement_applied_even_if_it_did_nothing (migrations.test_executor.ExecutorTests)
A new squash migration will be marked as applied even if all its ... ok
test_migrate_marks_replacement_unapplied (migrations.test_executor.ExecutorTests) ... ok
test_migrate_skips_schema_creation (migrations.test_executor.ExecutorTests)
The django_migrations table is not created if there are no migrations ... ERROR
test_migrations_applied_and_recorded_atomically (migrations.test_executor.ExecutorTests)
Migrations are applied and recorded atomically. ... ok
test_migrations_not_applied_on_deferred_sql_failure (migrations.test_executor.ExecutorTests)
Migrations are not recorded if deferred SQL application fails. ... ok
test_mixed_plan_not_supported (migrations.test_executor.ExecutorTests)
Although the MigrationExecutor interfaces allows for mixed migration ... ok
test_non_atomic_migration (migrations.test_executor.ExecutorTests)
Applying a non-atomic migration works as expected. ... ok
test_process_callback (migrations.test_executor.ExecutorTests)
#24129 - Tests callback process ... ok
test_run (migrations.test_executor.ExecutorTests)
Tests running a simple set of migrations. ... ok
test_run_with_squashed (migrations.test_executor.ExecutorTests)
Tests running a squashed migration from zero (should ignore what it replaces) ... ok
test_soft_apply (migrations.test_executor.ExecutorTests)
Tests detection of initial migrations already having been applied. ... ok
test_unrelated_applied_migrations_mutate_state (migrations.test_executor.ExecutorTests)
#26647 - Unrelated applied migrations should be part of the final ... ok
test_unrelated_model_lookups_backwards (migrations.test_executor.ExecutorTests)
#24123 - All models of apps being unapplied which are ... ok
test_unrelated_model_lookups_forwards (migrations.test_executor.ExecutorTests)
#24123 - All models of apps already applied which are ... ok
======================================================================
ERROR: test_migrate_skips_schema_creation (migrations.test_executor.ExecutorTests)
The django_migrations table is not created if there are no migrations
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/django/db/backends/utils.py", line 83, in _execute
return self.cursor.execute(sql)
File "/opt/django__django/django/db/backends/sqlite3/base.py", line 332, in execute
return Database.Cursor.execute(self, query)
sqlite3.OperationalError: table "django_migrations" already exists
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/django__django/django/db/migrations/recorder.py", line 68, in ensure_schema
editor.create_model(self.Migration)
File "/opt/django__django/django/db/backends/base/schema.py", line 355, in create_model
self.execute(sql, params or None)
File "/opt/django__django/django/db/backends/base/schema.py", line 151, in execute
cursor.execute(sql, params)
File "/opt/django__django/django/db/backends/utils.py", line 99, in execute
return super().execute(sql, params)
File "/opt/django__django/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/opt/django__django/django/db/backends/utils.py", line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/django__django/django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "/opt/django__django/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/django__django/django/db/backends/utils.py", line 83, in _execute
return self.cursor.execute(sql)
File "/opt/django__django/django/db/backends/sqlite3/base.py", line 332, in execute
return Database.Cursor.execute(self, query)
django.db.utils.OperationalError: table "django_migrations" already exists
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 592, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/mock.py", line 1336, in patched
return func(*newargs, **newkeywargs)
File "/opt/django__django/tests/migrations/test_executor.py", line 771, in test_migrate_skips_schema_creation
executor.migrate([], plan=[])
File "/opt/django__django/django/db/migrations/executor.py", line 100, in migrate
self.recorder.ensure_schema()
File "/opt/django__django/django/db/migrations/recorder.py", line 70, in ensure_schema
raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (table "django_migrations" already exists)
======================================================================
FAIL: test_migrate_test_setting_false_ensure_schema (backends.base.test_creation.TestDbCreationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 592, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 550, in _callTestMethod
method()
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/mock.py", line 1336, in patched
return func(*newargs, **newkeywargs)
File "/opt/django__django/tests/backends/base/test_creation.py", line 104, in test_migrate_test_setting_false_ensure_schema
mocked_ensure_schema.assert_not_called()
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/mock.py", line 868, in assert_not_called
raise AssertionError(msg)
AssertionError: Expected 'ensure_schema' to not have been called. Called 1 times.
Calls: [call()].
----------------------------------------------------------------------
Ran 36 tests in 5.973s
FAILED (failures=1, errors=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 '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')...
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-15252] Return Code: 1
>>>>> Some Tests Failed
[django__django__4.1] [django__django-15252] Test script run successful