-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-16910.gpt-4-0125-preview.eval.log
245 lines (230 loc) · 15.6 KB
/
django__django-16910.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
[django__django__5.0] [django__django-16910] Task Metadata:
- Instance ID: django__django-16910
- Testbed: django__django__5.0
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.11.9
[django__django__5.0] [django__django-16910] Command: git -c advice.detachedHead=false checkout 4142739af1cda53581af4169dbe16d6cd5e26948
[django__django__5.0] [django__django-16910] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__5.0] [django__django-16910] Std. Output:
Previous HEAD position was 4a72da7100 Refs #27471 -- Made admin's filter choice arrows use cursor pointers.
HEAD is now at 4142739af1 Added local copy of Django to deps in tox.ini.
[django__django__5.0] [django__django-16910] Return Code: 0
[django__django__5.0] [django__django-16910] Command: git apply -v /opt/temp_django__django-16910_pred_try.patch
[django__django__5.0] [django__django-16910] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__5.0] [django__django-16910] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__5.0] [django__django-16910] Return Code: 0
[django__django__5.0] [django__django-16910] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__5.0] [django__django-16910] Command: git apply -v -R /opt/temp_django__django-16910_pred_try.patch
[django__django__5.0] [django__django-16910] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__5.0] [django__django-16910] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__5.0] [django__django-16910] Return Code: 0
[django__django__5.0] [django__django-16910] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__5.0] [django__django-16910] Command: git apply -v /opt/temp_django__django-16910_pred.patch
[django__django__5.0] [django__django-16910] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__5.0] [django__django-16910] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__5.0] [django__django-16910] Return Code: 0
[django__django__5.0] [django__django-16910] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__5.0] [django__django-16910] Command: git apply -v /opt/temp_django__django-16910_test.patch
[django__django__5.0] [django__django-16910] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__5.0] [django__django-16910] Std. Output:
Checking patch tests/defer_regress/tests.py...
Checking patch tests/select_related_onetoone/tests.py...
Applied patch tests/defer_regress/tests.py cleanly.
Applied patch tests/select_related_onetoone/tests.py cleanly.
[django__django__5.0] [django__django-16910] Return Code: 0
[django__django__5.0] [django__django-16910] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 defer_regress.tests select_related_onetoone.tests;
[django__django__5.0] [django__django-16910] Command: ./tests/runtests.py --verbosity 2 defer_regress.tests select_related_onetoone.tests
[django__django__5.0] [django__django-16910] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__5.0] [django__django-16910] 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 select_related_onetoone
Importing application defer_regress
Found 39 test(s).
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, defer_regress, messages, select_related_onetoone, 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 select_related_onetoone_user
Creating table select_related_onetoone_userprofile
Creating table select_related_onetoone_userstatresult
Creating table select_related_onetoone_userstat
Creating table select_related_onetoone_statdetails
Creating table select_related_onetoone_advanceduserstat
Creating table select_related_onetoone_image
Creating table select_related_onetoone_product
Creating table select_related_onetoone_parent1
Creating table select_related_onetoone_parent2
Creating table select_related_onetoone_child1
Creating table select_related_onetoone_child2
Creating table select_related_onetoone_child3
Creating table select_related_onetoone_child4
Creating table select_related_onetoone_linkedlist
Creating table defer_regress_item
Creating table defer_regress_relateditem
Creating table defer_regress_child
Creating table defer_regress_leaf
Creating table defer_regress_resolvethis
Creating table defer_regress_simpleitem
Creating table defer_regress_feature
Creating table defer_regress_specialfeature
Creating table defer_regress_onetooneitem
Creating table defer_regress_itemandsimpleitem
Creating table defer_regress_profile
Creating table defer_regress_location
Creating table defer_regress_request
Creating table defer_regress_base
Creating table defer_regress_derived
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')...
System check identified no issues (0 silenced).
test_reverse_related_validation (select_related_onetoone.tests.ReverseSelectRelatedValidationTests.test_reverse_related_validation) ... ok
test_reverse_related_validation_with_filtered_relation (select_related_onetoone.tests.ReverseSelectRelatedValidationTests.test_reverse_related_validation_with_filtered_relation) ... ok
test_delete_defered_model (defer_regress.tests.DeferDeletionSignalsTests.test_delete_defered_model) ... ok
test_delete_defered_proxy_model (defer_regress.tests.DeferDeletionSignalsTests.test_delete_defered_proxy_model) ... ok
test_basic (defer_regress.tests.DeferRegressionTest.test_basic) ... ERROR
test_common_model_different_mask (defer_regress.tests.DeferRegressionTest.test_common_model_different_mask) ... ok
test_defer_annotate_select_related (defer_regress.tests.DeferRegressionTest.test_defer_annotate_select_related) ... ok
test_defer_many_to_many_ignored (defer_regress.tests.DeferRegressionTest.test_defer_many_to_many_ignored) ... ok
test_defer_reverse_many_to_many_ignored (defer_regress.tests.DeferRegressionTest.test_defer_reverse_many_to_many_ignored) ... ok
test_defer_with_select_related (defer_regress.tests.DeferRegressionTest.test_defer_with_select_related) ... ok
test_only_and_defer_usage_on_proxy_models (defer_regress.tests.DeferRegressionTest.test_only_and_defer_usage_on_proxy_models) ... ok
test_only_many_to_many_ignored (defer_regress.tests.DeferRegressionTest.test_only_many_to_many_ignored) ... ok
test_only_reverse_many_to_many_ignored (defer_regress.tests.DeferRegressionTest.test_only_reverse_many_to_many_ignored) ... ok
test_only_with_select_related (defer_regress.tests.DeferRegressionTest.test_only_with_select_related) ... ok
test_proxy_model_defer_with_select_related (defer_regress.tests.DeferRegressionTest.test_proxy_model_defer_with_select_related) ... ok
test_resolve_columns (defer_regress.tests.DeferRegressionTest.test_resolve_columns) ... ok
test_reverse_one_to_one_relations (defer_regress.tests.DeferRegressionTest.test_reverse_one_to_one_relations) ... FAIL
test_ticket_16409 (defer_regress.tests.DeferRegressionTest.test_ticket_16409) ... ok
test_ticket_23270 (defer_regress.tests.DeferRegressionTest.test_ticket_23270) ... ok
test_back_and_forward (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_back_and_forward) ... ok
test_basic (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_basic) ... ok
test_follow_from_child_class (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_follow_from_child_class) ... ok
test_follow_inheritance (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_follow_inheritance) ... ok
test_follow_next_level (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_follow_next_level) ... ok
test_follow_two (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_follow_two) ... ok
test_follow_two_next_level (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_follow_two_next_level) ... ok
test_forward_and_back (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_forward_and_back) ... ok
test_inheritance_deferred (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_inheritance_deferred) ... ok
test_inheritance_deferred2 (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_inheritance_deferred2) ... FAIL
test_missing_reverse (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_missing_reverse)
Ticket #13839: select_related() should NOT cache None ... ok
test_multiinheritance_two_subclasses (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_multiinheritance_two_subclasses) ... ok
test_multiple_subclass (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_multiple_subclass) ... ok
test_not_followed_by_default (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_not_followed_by_default) ... ok
test_nullable_missing_reverse (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_nullable_missing_reverse)
Ticket #13839: select_related() should NOT cache None ... ok
test_nullable_relation (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_nullable_relation) ... ok
test_onetoone_with_subclass (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_onetoone_with_subclass) ... ok
test_onetoone_with_two_subclasses (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_onetoone_with_two_subclasses) ... ok
test_parent_only (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_parent_only) ... ok
test_self_relation (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_self_relation) ... ok
======================================================================
ERROR: test_basic (defer_regress.tests.DeferRegressionTest.test_basic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 57, in testPartExecutor
yield
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 623, in run
self._callTestMethod(testMethod)
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 579, in _callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/opt/django__django/tests/defer_regress/tests.py", line 72, in test_basic
Leaf.objects.select_related().only("child__name", "second_child__name"),
^^^^^^^^^^^^^^^^^
File "/opt/django__django/django/db/models/query.py", line 1749, in only
if isinstance(related_field, models.OneToOneRel):
^^^^^^^^^^^^^^^^^
NameError: name 'models' is not defined
======================================================================
FAIL: test_reverse_one_to_one_relations (defer_regress.tests.DeferRegressionTest.test_reverse_one_to_one_relations)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 57, in testPartExecutor
yield
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 623, in run
self._callTestMethod(testMethod)
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 579, in _callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/opt/django__django/tests/defer_regress/tests.py", line 187, in test_reverse_one_to_one_relations
with self.assertNumQueries(1):
^^^^^^^^^^^^^^^^^
File "/opt/django__django/django/test/testcases.py", line 96, in __exit__
self.test_case.assertEqual(
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 873, in assertEqual
assertion_func(first, second, msg=msg)
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 866, in _baseAssertEqual
raise self.failureException(msg)
^^^^^^^^^^^^^^^^^
AssertionError: 0 != 1 : 0 queries executed, 1 expected
Captured queries were:
======================================================================
FAIL: test_inheritance_deferred2 (select_related_onetoone.tests.ReverseSelectRelatedTestCase.test_inheritance_deferred2)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 57, in testPartExecutor
yield
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 623, in run
self._callTestMethod(testMethod)
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 579, in _callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/opt/django__django/tests/select_related_onetoone/tests.py", line 254, in test_inheritance_deferred2
with self.assertNumQueries(2):
^^^^^^^^^^^^^^^^^
File "/opt/django__django/django/test/testcases.py", line 96, in __exit__
self.test_case.assertEqual(
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 873, in assertEqual
assertion_func(first, second, msg=msg)
^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 866, in _baseAssertEqual
raise self.failureException(msg)
^^^^^^^^^^^^^^^^^
AssertionError: 0 != 2 : 0 queries executed, 2 expected
Captured queries were:
----------------------------------------------------------------------
Ran 39 tests in 0.243s
FAILED (failures=2, 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')...
[django__django__5.0] [django__django-16910] Return Code: 1
>>>>> Some Tests Failed
[django__django__5.0] [django__django-16910] Test script run successful