-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-15320.gpt-4-0125-preview.eval.log
312 lines (301 loc) · 21.3 KB
/
django__django-15320.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
[django__django__4.1] [django__django-15320] Task Metadata:
- Instance ID: django__django-15320
- Testbed: django__django__4.1
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.9.19
[django__django__4.1] [django__django-15320] Command: git -c advice.detachedHead=false checkout b55ebe32417e0884b6b8b3e1bc0379033aa221af
[django__django__4.1] [django__django-15320] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15320] 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 b55ebe3241 Fixed #33443 -- Clarified when PasswordResetView sends an email.
[django__django__4.1] [django__django-15320] Return Code: 0
[django__django__4.1] [django__django-15320] Command: git apply -v /opt/temp_django__django-15320_pred_try.patch
[django__django__4.1] [django__django-15320] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15320] Std. Output:
Checking patch django/db/models/expressions.py...
Applied patch django/db/models/expressions.py cleanly.
[django__django__4.1] [django__django-15320] Return Code: 0
[django__django__4.1] [django__django-15320] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-15320] Command: git apply -v -R /opt/temp_django__django-15320_pred_try.patch
[django__django__4.1] [django__django-15320] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15320] Std. Output:
Checking patch django/db/models/expressions.py...
Applied patch django/db/models/expressions.py cleanly.
[django__django__4.1] [django__django-15320] Return Code: 0
[django__django__4.1] [django__django-15320] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__4.1] [django__django-15320] Command: git apply -v /opt/temp_django__django-15320_pred.patch
[django__django__4.1] [django__django-15320] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15320] Std. Output:
Checking patch django/db/models/expressions.py...
Applied patch django/db/models/expressions.py cleanly.
[django__django__4.1] [django__django-15320] Return Code: 0
[django__django__4.1] [django__django-15320] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__4.1] [django__django-15320] Command: git apply -v /opt/temp_django__django-15320_test.patch
[django__django__4.1] [django__django-15320] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__4.1] [django__django-15320] Std. Output:
Checking patch tests/expressions/tests.py...
Applied patch tests/expressions/tests.py cleanly.
[django__django__4.1] [django__django-15320] Return Code: 0
[django__django__4.1] [django__django-15320] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 expressions.tests;
[django__django__4.1] [django__django-15320] Command: ./tests/runtests.py --verbosity 2 expressions.tests
[django__django__4.1] [django__django-15320] 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-15320] 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 expressions
Found 164 test(s).
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, expressions, messages, 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 expressions_manager
Creating table expressions_employee
Creating table expressions_remoteemployee
Creating table expressions_company
Creating table expressions_number
Creating table expressions_ExPeRiMeNt
Creating table expressions_result
Creating table expressions_time
Creating table expressions_simulationrun
Creating table expressions_uuidpk
Creating table expressions_uuid
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')...
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')...
System check identified no issues (0 silenced).
test_empty_group_by (expressions.tests.ExpressionWrapperTests) ... ok
test_non_empty_group_by (expressions.tests.ExpressionWrapperTests) ... ok
test_resolve_output_field (expressions.tests.CombinedExpressionTests) ... ok
test_and (expressions.tests.CombinableTests) ... ok
test_negation (expressions.tests.CombinableTests) ... ok
test_or (expressions.tests.CombinableTests) ... ok
test_reversed_and (expressions.tests.CombinableTests) ... ok
test_reversed_or (expressions.tests.CombinableTests) ... ok
test_equal (expressions.tests.OrderByTests) ... ok
test_hash (expressions.tests.OrderByTests) ... ok
test_deconstruct (expressions.tests.FTests) ... ok
test_deepcopy (expressions.tests.FTests) ... ok
test_equal (expressions.tests.FTests) ... ok
test_hash (expressions.tests.FTests) ... ok
test_not_equal_Value (expressions.tests.FTests) ... ok
test_month_aggregation (expressions.tests.FieldTransformTests) ... ok
test_multiple_transforms_in_values (expressions.tests.FieldTransformTests) ... ok
test_transform_in_values (expressions.tests.FieldTransformTests) ... ok
test_aggregates (expressions.tests.ReprTests) ... ok
test_distinct_aggregates (expressions.tests.ReprTests) ... ok
test_expressions (expressions.tests.ReprTests) ... ok
test_filtered_aggregates (expressions.tests.ReprTests) ... ok
test_functions (expressions.tests.ReprTests) ... ok
test_F_reuse (expressions.tests.ExpressionsTests) ... ok
test_insensitive_patterns_escape (expressions.tests.ExpressionsTests)
Special characters (e.g. %, _ and \) stored in database are ... ok
test_patterns_escape (expressions.tests.ExpressionsTests)
Special characters (e.g. %, _ and \) stored in database are ... ok
test_complex_expressions (expressions.tests.ExpressionsNumericTests)
Complex expressions of different connection types are possible. ... ok
test_decimal_expression (expressions.tests.ExpressionsNumericTests) ... ok
test_fill_with_value_from_same_object (expressions.tests.ExpressionsNumericTests)
We can fill a value in all objects with an other value of the ... ok
test_filter_decimal_expression (expressions.tests.ExpressionsNumericTests) ... ok
test_filter_not_equals_other_field (expressions.tests.ExpressionsNumericTests)
We can filter for objects, where a value is not equals the value ... ok
test_increment_value (expressions.tests.ExpressionsNumericTests)
We can increment a value of all objects in a query set. ... ok
test_optimizations (expressions.tests.ExistsTests) ... ok
test_compile_unresolved (expressions.tests.ValueTests) ... ok
test_deconstruct (expressions.tests.ValueTests) ... ok
test_deconstruct_output_field (expressions.tests.ValueTests) ... ok
test_equal (expressions.tests.ValueTests) ... ok
test_equal_output_field (expressions.tests.ValueTests) ... ok
test_hash (expressions.tests.ValueTests) ... ok
test_output_field_decimalfield (expressions.tests.ValueTests) ... ok
test_output_field_does_not_create_broken_validators (expressions.tests.ValueTests)
The output field for a given Value doesn't get cleaned & validated, ... ok
test_raise_empty_expressionlist (expressions.tests.ValueTests) ... ok
test_repr (expressions.tests.ValueTests) ... ok
test_resolve_output_field (expressions.tests.ValueTests) ... ok
test_resolve_output_field_failure (expressions.tests.ValueTests) ... ok
test_update_TimeField_using_Value (expressions.tests.ValueTests) ... ok
test_update_UUIDField_using_Value (expressions.tests.ValueTests) ... ok
test_equal (expressions.tests.SimpleExpressionTests) ... ok
test_hash (expressions.tests.SimpleExpressionTests) ... ok
test_complex_expressions_do_not_introduce_sql_injection_via_untrusted_string_inclusion (expressions.tests.IterableLookupInnerExpressionsTests)
This tests that SQL injection isn't possible using compilation of ... ok
test_expressions_in_lookups_join_choice (expressions.tests.IterableLookupInnerExpressionsTests) ... ok
test_in_lookup_allows_F_expressions_and_expressions_for_datetimes (expressions.tests.IterableLookupInnerExpressionsTests) ... ok
test_in_lookup_allows_F_expressions_and_expressions_for_integers (expressions.tests.IterableLookupInnerExpressionsTests) ... ok
test_range_lookup_allows_F_expressions_and_expressions_for_integers (expressions.tests.IterableLookupInnerExpressionsTests) ... ok
test_range_lookup_namedtuple (expressions.tests.IterableLookupInnerExpressionsTests) ... ok
test_lefthand_addition (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_and (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_left_shift_operator (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_or (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_right_shift_operator (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_xor (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_xor_not_supported (expressions.tests.ExpressionOperatorTests) ... skipped "Oracle doesn't support bitwise XOR."
test_lefthand_bitwise_xor_null (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_bitwise_xor_right_null (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_division (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_modulo (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_modulo_null (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_multiplication (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_power (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_subtraction (expressions.tests.ExpressionOperatorTests) ... ok
test_lefthand_transformed_field_bitwise_or (expressions.tests.ExpressionOperatorTests) ... ok
test_right_hand_addition (expressions.tests.ExpressionOperatorTests) ... ok
test_right_hand_division (expressions.tests.ExpressionOperatorTests) ... ok
test_right_hand_modulo (expressions.tests.ExpressionOperatorTests) ... ok
test_right_hand_multiplication (expressions.tests.ExpressionOperatorTests) ... ok
test_right_hand_subtraction (expressions.tests.ExpressionOperatorTests) ... ok
test_righthand_power (expressions.tests.ExpressionOperatorTests) ... ok
test_aggregate_rawsql_annotation (expressions.tests.BasicExpressionsTests) ... ok
test_aggregate_subquery_annotation (expressions.tests.BasicExpressionsTests) ... ok
test_annotate_values_aggregate (expressions.tests.BasicExpressionsTests) ... ok
test_annotate_values_count (expressions.tests.BasicExpressionsTests) ... ok
test_annotate_values_filter (expressions.tests.BasicExpressionsTests) ... ok
test_annotation_with_nested_outerref (expressions.tests.BasicExpressionsTests) ... ok
test_annotation_with_outerref (expressions.tests.BasicExpressionsTests) ... ok
test_annotations_within_subquery (expressions.tests.BasicExpressionsTests) ... ok
test_arithmetic (expressions.tests.BasicExpressionsTests) ... ok
test_boolean_expression_combined (expressions.tests.BasicExpressionsTests) ... ok
test_boolean_expression_combined_with_empty_Q (expressions.tests.BasicExpressionsTests) ... ok
test_boolean_expression_in_Q (expressions.tests.BasicExpressionsTests) ... ok
test_case_in_filter_if_boolean_output_field (expressions.tests.BasicExpressionsTests) ... ok
test_exist_single_field_output_field (expressions.tests.BasicExpressionsTests) ... ok
test_exists_in_filter (expressions.tests.BasicExpressionsTests) ... ok
test_explicit_output_field (expressions.tests.BasicExpressionsTests) ... ok
test_filter_inter_attribute (expressions.tests.BasicExpressionsTests) ... ok
test_filter_with_join (expressions.tests.BasicExpressionsTests) ... ok
test_filtering_on_annotate_that_uses_q (expressions.tests.BasicExpressionsTests) ... ok
test_filtering_on_q_that_is_boolean (expressions.tests.BasicExpressionsTests) ... ok
test_filtering_on_rawsql_that_is_boolean (expressions.tests.BasicExpressionsTests) ... ok
test_in_subquery (expressions.tests.BasicExpressionsTests) ... ok
test_incorrect_field_in_F_expression (expressions.tests.BasicExpressionsTests) ... ok
test_incorrect_joined_field_in_F_expression (expressions.tests.BasicExpressionsTests) ... ok
test_nested_outerref_with_function (expressions.tests.BasicExpressionsTests) ... ok
test_nested_subquery (expressions.tests.BasicExpressionsTests) ... ok
test_nested_subquery_join_outer_ref (expressions.tests.BasicExpressionsTests) ... ok
test_nested_subquery_outer_ref_2 (expressions.tests.BasicExpressionsTests) ... ok
test_nested_subquery_outer_ref_with_autofield (expressions.tests.BasicExpressionsTests) ... ok
test_new_object_create (expressions.tests.BasicExpressionsTests) ... ok
test_new_object_save (expressions.tests.BasicExpressionsTests) ... ok
test_object_create_with_aggregate (expressions.tests.BasicExpressionsTests) ... ok
test_object_update (expressions.tests.BasicExpressionsTests) ... ok
test_object_update_fk (expressions.tests.BasicExpressionsTests) ... ok
test_object_update_unsaved_objects (expressions.tests.BasicExpressionsTests) ... ok
test_order_by_exists (expressions.tests.BasicExpressionsTests) ... ok
test_order_by_multiline_sql (expressions.tests.BasicExpressionsTests) ... ok
test_order_of_operations (expressions.tests.BasicExpressionsTests) ... ok
test_outerref (expressions.tests.BasicExpressionsTests) ... ok
test_outerref_mixed_case_table_name (expressions.tests.BasicExpressionsTests) ... ok
test_outerref_with_operator (expressions.tests.BasicExpressionsTests) ... ok
test_parenthesis_priority (expressions.tests.BasicExpressionsTests) ... ok
test_pickle_expression (expressions.tests.BasicExpressionsTests) ... ok
test_subquery (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_eq (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_filter_by_aggregate (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_filter_by_lazy (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_group_by_outerref_in_filter (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_in_filter (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_references_joined_table_twice (expressions.tests.BasicExpressionsTests) ... ok
test_subquery_sql (expressions.tests.BasicExpressionsTests) ... FAIL
test_ticket_11722_iexact_lookup (expressions.tests.BasicExpressionsTests) ... ok
test_ticket_16731_startswith_lookup (expressions.tests.BasicExpressionsTests) ... ok
test_ticket_18375_chained_filters (expressions.tests.BasicExpressionsTests) ... ok
test_ticket_18375_join_reuse (expressions.tests.BasicExpressionsTests) ... ok
test_ticket_18375_kwarg_ordering (expressions.tests.BasicExpressionsTests) ... ok
test_ticket_18375_kwarg_ordering_2 (expressions.tests.BasicExpressionsTests) ... ok
test_update (expressions.tests.BasicExpressionsTests) ... ok
test_update_inherited_field_value (expressions.tests.BasicExpressionsTests) ... ok
test_update_with_fk (expressions.tests.BasicExpressionsTests) ... ok
test_update_with_none (expressions.tests.BasicExpressionsTests) ... ok
test_uuid_pk_subquery (expressions.tests.BasicExpressionsTests) ... ok
test_date_case_subtraction (expressions.tests.FTimeDeltaTests) ... ok
test_date_comparison (expressions.tests.FTimeDeltaTests) ... ok
test_date_minus_duration (expressions.tests.FTimeDeltaTests) ... ok
test_date_subquery_subtraction (expressions.tests.FTimeDeltaTests) ... ok
test_date_subtraction (expressions.tests.FTimeDeltaTests) ... ok
test_datetime_subquery_subtraction (expressions.tests.FTimeDeltaTests) ... ok
test_datetime_subtraction (expressions.tests.FTimeDeltaTests) ... ok
test_datetime_subtraction_microseconds (expressions.tests.FTimeDeltaTests) ... ok
test_delta_add (expressions.tests.FTimeDeltaTests) ... ok
test_delta_subtract (expressions.tests.FTimeDeltaTests) ... ok
test_delta_update (expressions.tests.FTimeDeltaTests) ... ok
test_duration_expressions (expressions.tests.FTimeDeltaTests) ... ok
test_duration_with_datetime (expressions.tests.FTimeDeltaTests) ... ok
test_duration_with_datetime_microseconds (expressions.tests.FTimeDeltaTests) ... ok
test_durationfield_add (expressions.tests.FTimeDeltaTests) ... ok
test_durationfield_multiply_divide (expressions.tests.FTimeDeltaTests) ... ok
test_exclude (expressions.tests.FTimeDeltaTests) ... ok
test_invalid_operator (expressions.tests.FTimeDeltaTests) ... ok
test_mixed_comparisons1 (expressions.tests.FTimeDeltaTests) ... expected failure
test_mixed_comparisons2 (expressions.tests.FTimeDeltaTests) ... ok
test_multiple_query_compilation (expressions.tests.FTimeDeltaTests) ... ok
test_negative_timedelta_update (expressions.tests.FTimeDeltaTests) ... ok
test_query_clone (expressions.tests.FTimeDeltaTests) ... ok
test_time_subquery_subtraction (expressions.tests.FTimeDeltaTests) ... ok
test_time_subtraction (expressions.tests.FTimeDeltaTests) ... ok
======================================================================
FAIL: test_subquery_sql (expressions.tests.BasicExpressionsTests)
----------------------------------------------------------------------
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/django__django/tests/expressions/tests.py", line 543, in test_subquery_sql
self.assertIs(employees_subquery.query.subquery, True)
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 1118, in assertIs
self.fail(self._formatMessage(msg, standardMsg))
File "/opt/pyenv/versions/3.9.19/lib/python3.9/unittest/case.py", line 676, in fail
raise self.failureException(msg)
AssertionError: False is not True
----------------------------------------------------------------------
Ran 164 tests in 1.638s
FAILED (failures=1, skipped=1, expected failures=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 '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.1] [django__django-15320] Return Code: 1
>>>>> Some Tests Failed
[django__django__4.1] [django__django-15320] Test script run successful