-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-13033.gpt-4-0125-preview.eval.log
234 lines (211 loc) · 13.8 KB
/
django__django-13033.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
[django__django__3.2] [django__django-13033] Task Metadata:
- Instance ID: django__django-13033
- Testbed: django__django__3.2
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.2] [django__django-13033] Command: git -c advice.detachedHead=false checkout a59de6e89e8dc1f3e71c9a5a5bbceb373ea5247e
[django__django__3.2] [django__django-13033] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13033] Std. Output:
Previous HEAD position was 65dfb06a1a [3.2.x] Fixed #32648 -- Fixed VariableDoesNotExist rendering sitemaps template.
HEAD is now at a59de6e89e Fixed #31675 -- Added warning to ExceptionReporter when exception chain has a cycle.
[django__django__3.2] [django__django-13033] Return Code: 0
[django__django__3.2] [django__django-13033] Command: git apply -v /opt/temp_django__django-13033_pred_try.patch
[django__django__3.2] [django__django-13033] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13033] Std. Output:
/opt/temp_django__django-13033_pred_try.patch:13: trailing whitespace.
/opt/temp_django__django-13033_pred_try.patch:22: trailing whitespace.
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
warning: 2 lines add whitespace errors.
[django__django__3.2] [django__django-13033] Return Code: 0
[django__django__3.2] [django__django-13033] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.2] [django__django-13033] Command: git apply -v -R /opt/temp_django__django-13033_pred_try.patch
[django__django__3.2] [django__django-13033] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13033] Std. Output:
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
[django__django__3.2] [django__django-13033] Return Code: 0
[django__django__3.2] [django__django-13033] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.2] [django__django-13033] Command: git apply -v /opt/temp_django__django-13033_pred.patch
[django__django__3.2] [django__django-13033] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13033] Std. Output:
/opt/temp_django__django-13033_pred.patch:13: trailing whitespace.
/opt/temp_django__django-13033_pred.patch:22: trailing whitespace.
Checking patch django/db/models/query.py...
Applied patch django/db/models/query.py cleanly.
warning: 2 lines add whitespace errors.
[django__django__3.2] [django__django-13033] Return Code: 0
[django__django__3.2] [django__django-13033] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.2] [django__django-13033] Command: git apply -v /opt/temp_django__django-13033_test.patch
[django__django__3.2] [django__django-13033] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13033] Std. Output:
Checking patch tests/ordering/models.py...
Checking patch tests/ordering/tests.py...
Applied patch tests/ordering/models.py cleanly.
Applied patch tests/ordering/tests.py cleanly.
[django__django__3.2] [django__django-13033] Return Code: 0
[django__django__3.2] [django__django-13033] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 ordering.models ordering.tests;
[django__django__3.2] [django__django-13033] Command: ./tests/runtests.py --verbosity 2 ordering.models ordering.tests
[django__django__3.2] [django__django-13033] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__3.2] [django__django-13033] Std. Output:
Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
test_default_ordering (ordering.tests.OrderingTests) ... ok
test_default_ordering_by_f_expression (ordering.tests.OrderingTests)
F expressions can be used in Meta.ordering. ... ok
test_default_ordering_override (ordering.tests.OrderingTests) ... ok
test_extra_ordering (ordering.tests.OrderingTests) ... ok
test_extra_ordering_quoting (ordering.tests.OrderingTests) ... ok
test_extra_ordering_with_table_name (ordering.tests.OrderingTests) ... ok
test_no_reordering_after_slicing (ordering.tests.OrderingTests) ... ok
test_order_by_constant_value (ordering.tests.OrderingTests) ... ERROR
test_order_by_constant_value_without_output_field (ordering.tests.OrderingTests) ... ERROR
test_order_by_f_expression (ordering.tests.OrderingTests) ... ERROR
test_order_by_f_expression_duplicates (ordering.tests.OrderingTests) ... ERROR
test_order_by_fk_attname (ordering.tests.OrderingTests) ... ok
test_order_by_nulls_first (ordering.tests.OrderingTests) ... ERROR
test_order_by_nulls_first_and_last (ordering.tests.OrderingTests) ... ok
test_order_by_nulls_last (ordering.tests.OrderingTests) ... ERROR
test_order_by_override (ordering.tests.OrderingTests) ... ok
test_order_by_pk (ordering.tests.OrderingTests) ... ok
test_order_by_ptr_field_with_default_ordering_by_expression (ordering.tests.OrderingTests) ... ok
test_order_by_self_referential_fk (ordering.tests.OrderingTests) ... ERROR
test_orders_nulls_first_on_filtered_subquery (ordering.tests.OrderingTests) ... ERROR
test_random_ordering (ordering.tests.OrderingTests) ... ok
test_related_ordering_duplicate_table_reference (ordering.tests.OrderingTests) ... ok
test_reverse_meta_ordering_pure (ordering.tests.OrderingTests) ... ok
test_reverse_ordering_pure (ordering.tests.OrderingTests) ... ERROR
test_reversed_ordering (ordering.tests.OrderingTests) ... ok
test_stop_slicing (ordering.tests.OrderingTests) ... ok
test_stop_start_slicing (ordering.tests.OrderingTests) ... ok
======================================================================
ERROR: test_order_by_constant_value (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 439, in test_order_by_constant_value
qs = Article.objects.order_by(Value('1', output_field=CharField()), '-headline')
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'Value' is not iterable
======================================================================
ERROR: test_order_by_constant_value_without_output_field (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 448, in test_order_by_constant_value_without_output_field
Article.objects.order_by(Value('1')),
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'Value' is not iterable
======================================================================
ERROR: test_order_by_f_expression (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 364, in test_order_by_f_expression
Article.objects.order_by(F('headline')), [
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'F' is not iterable
======================================================================
ERROR: test_order_by_f_expression_duplicates (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 396, in test_order_by_f_expression_duplicates
qs = Article.objects.order_by(F('headline').asc(), F('headline').desc())
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'OrderBy' is not iterable
======================================================================
ERROR: test_order_by_nulls_first (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 128, in test_order_by_nulls_first
Article.objects.order_by(F("author").asc(nulls_first=True), 'headline'),
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'OrderBy' is not iterable
======================================================================
ERROR: test_order_by_nulls_last (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 107, in test_order_by_nulls_last
Article.objects.order_by(F("author").desc(nulls_last=True), 'headline'),
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'OrderBy' is not iterable
======================================================================
ERROR: test_order_by_self_referential_fk (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 357, in test_order_by_self_referential_fk
Article.objects.filter(author__isnull=False).order_by('author__editor_id'),
File "/opt/django__django/django/db/models/query.py", line 1139, in order_by
if parts[-2] == parts[-3]: # Indicates a self-reference
IndexError: list index out of range
======================================================================
ERROR: test_orders_nulls_first_on_filtered_subquery (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 160, in test_orders_nulls_first_on_filtered_subquery
F('last_date').asc(nulls_first=True)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'OrderBy' is not iterable
======================================================================
ERROR: test_reverse_ordering_pure (ordering.tests.OrderingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/django__django/tests/ordering/tests.py", line 213, in test_reverse_ordering_pure
qs1 = Article.objects.order_by(F('headline').asc())
File "/opt/django__django/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/django__django/django/db/models/query.py", line 1137, in order_by
if "__" in field_name and field_name.endswith("_id"):
TypeError: argument of type 'OrderBy' is not iterable
----------------------------------------------------------------------
Ran 27 tests in 0.131s
FAILED (errors=9)
Destroying 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 ordering
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, messages, ordering, 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 ordering_author
Creating table ordering_article
Creating table ordering_childarticle
Creating table ordering_reference
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
System check identified no issues (0 silenced).
[django__django__3.2] [django__django-13033] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.2] [django__django-13033] Test script run successful