-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdjango__django-14238.gpt-4-0125-preview.eval.log
314 lines (298 loc) · 20.2 KB
/
django__django-14238.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
305
306
307
308
309
310
311
312
313
314
[django__django__4.0] [django__django-14238] Task Metadata:
- Instance ID: django__django-14238
- Testbed: django__django__4.0
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.8.19
[django__django__4.0] [django__django-14238] Command: git -c advice.detachedHead=false checkout 30e123ed351317b7527f632b3b7dc4e81e850449
[django__django__4.0] [django__django-14238] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14238] Std. Output:
Previous HEAD position was 475cffd1d6 Fixed typo in docs/intro/reusable-apps.txt.
HEAD is now at 30e123ed35 Fixed #32575 -- Added support for SpatiaLite 5.
[django__django__4.0] [django__django-14238] Return Code: 0
[django__django__4.0] [django__django-14238] Command: git apply -v /opt/temp_django__django-14238_pred_try.patch
[django__django__4.0] [django__django-14238] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14238] Std. Output:
/opt/temp_django__django-14238_pred_try.patch:12: trailing whitespace.
subclass in self._subclasses or
/opt/temp_django__django-14238_pred_try.patch:13: trailing whitespace.
issubclass(subclass, (BigAutoField, SmallAutoField)) or
Checking patch django/db/models/fields/__init__.py...
Checking patch django/db/models/options.py...
Applied patch django/db/models/fields/__init__.py cleanly.
Applied patch django/db/models/options.py cleanly.
warning: 2 lines add whitespace errors.
[django__django__4.0] [django__django-14238] Return Code: 0
[django__django__4.0] [django__django-14238] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.0] [django__django-14238] Command: git apply -v -R /opt/temp_django__django-14238_pred_try.patch
[django__django__4.0] [django__django-14238] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14238] Std. Output:
Checking patch django/db/models/options.py...
Checking patch django/db/models/fields/__init__.py...
Applied patch django/db/models/options.py cleanly.
Applied patch django/db/models/fields/__init__.py cleanly.
[django__django__4.0] [django__django-14238] Return Code: 0
[django__django__4.0] [django__django-14238] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.0] [django__django-14238] Command: git apply -v /opt/temp_django__django-14238_pred.patch
[django__django__4.0] [django__django-14238] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14238] Std. Output:
/opt/temp_django__django-14238_pred.patch:12: trailing whitespace.
subclass in self._subclasses or
/opt/temp_django__django-14238_pred.patch:13: trailing whitespace.
issubclass(subclass, (BigAutoField, SmallAutoField)) or
Checking patch django/db/models/fields/__init__.py...
Checking patch django/db/models/options.py...
Applied patch django/db/models/fields/__init__.py cleanly.
Applied patch django/db/models/options.py cleanly.
warning: 2 lines add whitespace errors.
[django__django__4.0] [django__django-14238] Return Code: 0
[django__django__4.0] [django__django-14238] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.0] [django__django-14238] Command: git apply -v /opt/temp_django__django-14238_test.patch
[django__django__4.0] [django__django-14238] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.0] [django__django-14238] Std. Output:
Checking patch tests/model_fields/test_autofield.py...
Checking patch tests/model_options/test_default_pk.py...
Applied patch tests/model_fields/test_autofield.py cleanly.
Applied patch tests/model_options/test_default_pk.py cleanly.
[django__django__4.0] [django__django-14238] Return Code: 0
[django__django__4.0] [django__django-14238] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 model_fields.test_autofield model_options.test_default_pk;
[django__django__4.0] [django__django-14238] Command: ./tests/runtests.py --verbosity 2 model_fields.test_autofield model_options.test_default_pk
[django__django__4.0] [django__django-14238] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__4.0] [django__django-14238] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application model_options
Importing application model_fields
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, messages, model_fields, model_options, 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 model_fields_foo
Creating table model_fields_bar
Creating table model_fields_whiz
Creating table model_fields_whizdelayed
Creating table model_fields_whiziter
Creating table model_fields_whiziterempty
Creating table model_fields_choiceful
Creating table model_fields_bigd
Creating table model_fields_floatmodel
Creating table model_fields_bigs
Creating table model_fields_unicodeslugfield
Creating table model_fields_automodel
Creating table model_fields_bigautomodel
Creating table model_fields_smallautomodel
Creating table model_fields_smallintegermodel
Creating table model_fields_integermodel
Creating table model_fields_bigintegermodel
Creating table model_fields_positivebigintegermodel
Creating table model_fields_positivesmallintegermodel
Creating table model_fields_positiveintegermodel
Creating table model_fields_post
Creating table model_fields_nullbooleanmodel
Creating table model_fields_booleanmodel
Creating table model_fields_datetimemodel
Creating table model_fields_durationmodel
Creating table model_fields_nulldurationmodel
Creating table model_fields_primarykeycharmodel
Creating table model_fields_fkstobooleans
Creating table model_fields_fktochar
Creating table model_fields_renamedfield
Creating table model_fields_verbosenamefield
Creating table model_fields_genericipaddress
Creating table model_fields_decimallessthanone
Creating table model_fields_fieldclassattributemodel
Creating table model_fields_datamodel
Creating table model_fields_document
Creating table model_fields_person
Creating table model_fields_personwithheight
Creating table model_fields_personwithheightandwidth
Creating table model_fields_persondimensionsfirst
Creating table model_fields_persontwoimages
Creating table model_fields_jsonmodel
Creating table model_fields_nullablejsonmodel
Creating table model_fields_relatedjsonmodel
Creating table model_fields_allfieldsmodel
Creating table model_fields_manytomany
Creating table model_fields_uuidmodel
Creating table model_fields_nullableuuidmodel
Creating table model_fields_primarykeyuuidmodel
Creating table model_fields_relatedtouuidmodel
Creating table model_fields_uuidchild
Creating table model_fields_uuidgrandchild
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
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
System check identified no issues (0 silenced).
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')...
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')...
test_isinstance_of_autofield (model_fields.test_autofield.AutoFieldInheritanceTests) ... ok
test_issubclass_of_autofield (model_fields.test_autofield.AutoFieldInheritanceTests) ... ok
test_backend_range_save (model_fields.test_autofield.SmallAutoFieldTests)
Backend specific ranges can be saved without corruption. ... ok
test_backend_range_validation (model_fields.test_autofield.SmallAutoFieldTests)
Backend specific ranges are enforced at the model validation level ... ok
test_coercing (model_fields.test_autofield.SmallAutoFieldTests) ... ok
test_documented_range (model_fields.test_autofield.SmallAutoFieldTests)
Values within the documented safe range pass validation, and can be ... ok
test_invalid_value (model_fields.test_autofield.SmallAutoFieldTests) ... ok
test_redundant_backend_range_validators (model_fields.test_autofield.SmallAutoFieldTests)
If there are stricter validators than the ones from the database ... ok
test_rel_db_type (model_fields.test_autofield.SmallAutoFieldTests) ... ok
test_types (model_fields.test_autofield.SmallAutoFieldTests) ... ok
test_backend_range_save (model_fields.test_autofield.AutoFieldTests)
Backend specific ranges can be saved without corruption. ... ok
test_backend_range_validation (model_fields.test_autofield.AutoFieldTests)
Backend specific ranges are enforced at the model validation level ... ok
test_coercing (model_fields.test_autofield.AutoFieldTests) ... ok
test_documented_range (model_fields.test_autofield.AutoFieldTests)
Values within the documented safe range pass validation, and can be ... ok
test_invalid_value (model_fields.test_autofield.AutoFieldTests) ... ok
test_redundant_backend_range_validators (model_fields.test_autofield.AutoFieldTests)
If there are stricter validators than the ones from the database ... ok
test_rel_db_type (model_fields.test_autofield.AutoFieldTests) ... ok
test_types (model_fields.test_autofield.AutoFieldTests) ... ok
test_backend_range_save (model_fields.test_autofield.BigAutoFieldTests)
Backend specific ranges can be saved without corruption. ... ok
test_backend_range_validation (model_fields.test_autofield.BigAutoFieldTests)
Backend specific ranges are enforced at the model validation level ... ok
test_coercing (model_fields.test_autofield.BigAutoFieldTests) ... ok
test_documented_range (model_fields.test_autofield.BigAutoFieldTests)
Values within the documented safe range pass validation, and can be ... ok
test_invalid_value (model_fields.test_autofield.BigAutoFieldTests) ... ok
test_redundant_backend_range_validators (model_fields.test_autofield.BigAutoFieldTests)
If there are stricter validators than the ones from the database ... ok
test_rel_db_type (model_fields.test_autofield.BigAutoFieldTests) ... ok
test_types (model_fields.test_autofield.BigAutoFieldTests) ... ok
test_backend_range_save (model_fields.test_integerfield.SmallIntegerFieldTests)
Backend specific ranges can be saved without corruption. ... ok
test_backend_range_validation (model_fields.test_integerfield.SmallIntegerFieldTests)
Backend specific ranges are enforced at the model validation level ... ok
test_coercing (model_fields.test_integerfield.SmallIntegerFieldTests) ... ok
test_documented_range (model_fields.test_integerfield.SmallIntegerFieldTests)
Values within the documented safe range pass validation, and can be ... ok
test_invalid_value (model_fields.test_integerfield.SmallIntegerFieldTests) ... ok
test_redundant_backend_range_validators (model_fields.test_integerfield.SmallIntegerFieldTests)
If there are stricter validators than the ones from the database ... ok
test_rel_db_type (model_fields.test_integerfield.SmallIntegerFieldTests) ... ok
test_types (model_fields.test_integerfield.SmallIntegerFieldTests) ... ok
test_backend_range_save (model_fields.test_integerfield.BigIntegerFieldTests)
Backend specific ranges can be saved without corruption. ... ok
test_backend_range_validation (model_fields.test_integerfield.BigIntegerFieldTests)
Backend specific ranges are enforced at the model validation level ... ok
test_coercing (model_fields.test_integerfield.BigIntegerFieldTests) ... ok
test_documented_range (model_fields.test_integerfield.BigIntegerFieldTests)
Values within the documented safe range pass validation, and can be ... ok
test_invalid_value (model_fields.test_integerfield.BigIntegerFieldTests) ... ok
test_redundant_backend_range_validators (model_fields.test_integerfield.BigIntegerFieldTests)
If there are stricter validators than the ones from the database ... ok
test_rel_db_type (model_fields.test_integerfield.BigIntegerFieldTests) ... ok
test_types (model_fields.test_integerfield.BigIntegerFieldTests) ... ok
test_backend_range_save (model_fields.test_integerfield.IntegerFieldTests)
Backend specific ranges can be saved without corruption. ... ok
test_backend_range_validation (model_fields.test_integerfield.IntegerFieldTests)
Backend specific ranges are enforced at the model validation level ... ok
test_coercing (model_fields.test_integerfield.IntegerFieldTests) ... ok
test_documented_range (model_fields.test_integerfield.IntegerFieldTests)
Values within the documented safe range pass validation, and can be ... ok
test_invalid_value (model_fields.test_integerfield.IntegerFieldTests) ... ok
test_redundant_backend_range_validators (model_fields.test_integerfield.IntegerFieldTests)
If there are stricter validators than the ones from the database ... ok
test_rel_db_type (model_fields.test_integerfield.IntegerFieldTests) ... ok
test_types (model_fields.test_integerfield.IntegerFieldTests) ... ok
test_app_default_auto_field (model_options.test_default_pk.TestDefaultPK) ... ok
test_app_default_auto_field_non_auto (model_options.test_default_pk.TestDefaultPK) ... FAIL
test_app_default_auto_field_none (model_options.test_default_pk.TestDefaultPK) ... ok
test_app_default_auto_field_nonexistent (model_options.test_default_pk.TestDefaultPK) ... ok
test_default_auto_field_setting (model_options.test_default_pk.TestDefaultPK) ... ok
test_default_auto_field_setting_bigautofield_subclass (model_options.test_default_pk.TestDefaultPK) ... ok
test_default_auto_field_setting_non_auto (model_options.test_default_pk.TestDefaultPK) ... FAIL
test_default_auto_field_setting_none (model_options.test_default_pk.TestDefaultPK) ... ok
test_default_auto_field_setting_nonexistent (model_options.test_default_pk.TestDefaultPK) ... ok
test_m2m_app_default_auto_field (model_options.test_default_pk.TestDefaultPK) ... ok
test_m2m_default_auto_field_setting (model_options.test_default_pk.TestDefaultPK) ... ok
======================================================================
FAIL: test_app_default_auto_field_non_auto (model_options.test_default_pk.TestDefaultPK)
----------------------------------------------------------------------
ValueError: Primary key 'django.db.models.TextField' referred by model_options.apps.ModelPKNonAutoConfig.default_auto_field must subclass AutoField, BigAutoField, or SmallAutoField.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/django/test/utils.py", line 430, in inner
return func(*args, **kwargs)
File "/opt/django__django/tests/model_options/test_default_pk.py", line 53, in test_app_default_auto_field_non_auto
class Model(models.Model):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/opt/django__django/django/test/testcases.py", line 695, in _assert_raises_or_warns_cm
self.assertIn(expected_message, str(getattr(cm, cm_attr)))
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 1179, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 753, in fail
raise self.failureException(msg)
AssertionError: "Primary key 'django.db.models.TextField' referred by model_options.apps.ModelPKNonAutoConfig.default_auto_field must subclass AutoField." not found in "Primary key 'django.db.models.TextField' referred by model_options.apps.ModelPKNonAutoConfig.default_auto_field must subclass AutoField, BigAutoField, or SmallAutoField."
======================================================================
FAIL: test_default_auto_field_setting_non_auto (model_options.test_default_pk.TestDefaultPK)
----------------------------------------------------------------------
ValueError: Primary key 'django.db.models.TextField' referred by DEFAULT_AUTO_FIELD must subclass AutoField, BigAutoField, or SmallAutoField.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/opt/django__django/django/test/utils.py", line 430, in inner
return func(*args, **kwargs)
File "/opt/django__django/tests/model_options/test_default_pk.py", line 42, in test_default_auto_field_setting_non_auto
class Model(models.Model):
File "/opt/pyenv/versions/3.8.19/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/opt/django__django/django/test/testcases.py", line 695, in _assert_raises_or_warns_cm
self.assertIn(expected_message, str(getattr(cm, cm_attr)))
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 1179, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
File "/opt/pyenv/versions/3.8.19/lib/python3.8/unittest/case.py", line 753, in fail
raise self.failureException(msg)
AssertionError: "Primary key 'django.db.models.TextField' referred by DEFAULT_AUTO_FIELD must subclass AutoField." not found in "Primary key 'django.db.models.TextField' referred by DEFAULT_AUTO_FIELD must subclass AutoField, BigAutoField, or SmallAutoField."
----------------------------------------------------------------------
Ran 61 tests in 0.556s
FAILED (failures=2)
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 'default' ('file:memorydb_default?mode=memory&cache=shared')...
Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
[django__django__4.0] [django__django-14238] Return Code: 1
>>>>> Some Tests Failed
[django__django__4.0] [django__django-14238] Test script run successful