-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-12497.gpt-4-0125-preview.eval.log
178 lines (165 loc) · 14.4 KB
/
django__django-12497.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
[django__django__3.1] [django__django-12497] Task Metadata:
- Instance ID: django__django-12497
- Testbed: django__django__3.1
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.1] [django__django-12497] Command: git -c advice.detachedHead=false checkout a4881f5e5d7ee38b7e83301331a0b4962845ef8a
[django__django__3.1] [django__django-12497] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-12497] Std. Output:
Previous HEAD position was 0668164b4a Fixed E128, E741 flake8 warnings.
HEAD is now at a4881f5e5d Fixed #31307 -- Fixed filter_horizontal add/remove SVG :hover positioning.
[django__django__3.1] [django__django-12497] Return Code: 0
[django__django__3.1] [django__django-12497] Command: git apply -v /opt/temp_django__django-12497_pred_try.patch
[django__django__3.1] [django__django-12497] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-12497] Std. Output:
Checking patch django/db/models/fields/related.py...
Applied patch django/db/models/fields/related.py cleanly.
[django__django__3.1] [django__django-12497] Return Code: 0
[django__django__3.1] [django__django-12497] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.1] [django__django-12497] Command: git apply -v -R /opt/temp_django__django-12497_pred_try.patch
[django__django__3.1] [django__django-12497] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-12497] Std. Output:
Checking patch django/db/models/fields/related.py...
Applied patch django/db/models/fields/related.py cleanly.
[django__django__3.1] [django__django-12497] Return Code: 0
[django__django__3.1] [django__django-12497] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.1] [django__django-12497] Command: git apply -v /opt/temp_django__django-12497_pred.patch
[django__django__3.1] [django__django-12497] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-12497] Std. Output:
Checking patch django/db/models/fields/related.py...
Applied patch django/db/models/fields/related.py cleanly.
[django__django__3.1] [django__django-12497] Return Code: 0
[django__django__3.1] [django__django-12497] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.1] [django__django-12497] Command: git apply -v /opt/temp_django__django-12497_test.patch
[django__django__3.1] [django__django-12497] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-12497] Std. Output:
Checking patch tests/invalid_models_tests/test_relative_fields.py...
Applied patch tests/invalid_models_tests/test_relative_fields.py cleanly.
[django__django__3.1] [django__django-12497] Return Code: 0
[django__django__3.1] [django__django-12497] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 invalid_models_tests.test_relative_fields;
[django__django__3.1] [django__django-12497] Command: ./tests/runtests.py --verbosity 2 invalid_models_tests.test_relative_fields
[django__django__3.1] [django__django-12497] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__3.1] [django__django-12497] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application invalid_models_tests
Skipping setup of unused database(s): default, other.
System check identified no issues (0 silenced).
test_explicit_field_names (invalid_models_tests.test_relative_fields.M2mThroughFieldsTests) ... ok
test_intersection_foreign_object (invalid_models_tests.test_relative_fields.M2mThroughFieldsTests) ... ok
test_invalid_field (invalid_models_tests.test_relative_fields.M2mThroughFieldsTests) ... ok
test_invalid_order (invalid_models_tests.test_relative_fields.M2mThroughFieldsTests) ... ok
test_m2m_field_argument_validation (invalid_models_tests.test_relative_fields.M2mThroughFieldsTests) ... ok
test_superset_foreign_object (invalid_models_tests.test_relative_fields.M2mThroughFieldsTests) ... ok
test_clash_parent_link (invalid_models_tests.test_relative_fields.ComplexClashTests) ... ok
test_complex_clash (invalid_models_tests.test_relative_fields.ComplexClashTests) ... ok
test_accessor_clash (invalid_models_tests.test_relative_fields.SelfReferentialFKClashTests) ... ok
test_clash_under_explicit_related_name (invalid_models_tests.test_relative_fields.SelfReferentialFKClashTests) ... ok
test_reverse_query_name_clash (invalid_models_tests.test_relative_fields.SelfReferentialFKClashTests) ... ok
test_accessor_clash (invalid_models_tests.test_relative_fields.SelfReferentialM2MClashTests) ... ok
test_clash_between_accessors (invalid_models_tests.test_relative_fields.SelfReferentialM2MClashTests) ... ok
test_clash_under_explicit_related_name (invalid_models_tests.test_relative_fields.SelfReferentialM2MClashTests) ... ok
test_reverse_query_name_clash (invalid_models_tests.test_relative_fields.SelfReferentialM2MClashTests) ... ok
test_valid_model (invalid_models_tests.test_relative_fields.SelfReferentialM2MClashTests) ... ok
test_clash_between_accessors (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_fk_to_fk (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_fk_to_integer (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_fk_to_m2m (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_m2m_to_fk (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_m2m_to_integer (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_m2m_to_m2m (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_m2m_to_m2m_with_inheritance (invalid_models_tests.test_relative_fields.AccessorClashTests)
Ref #22047. ... ok
test_no_clash_for_hidden_related_name (invalid_models_tests.test_relative_fields.AccessorClashTests) ... ok
test_fk_to_fk (invalid_models_tests.test_relative_fields.ReverseQueryNameClashTests) ... ok
test_fk_to_integer (invalid_models_tests.test_relative_fields.ReverseQueryNameClashTests) ... ok
test_fk_to_m2m (invalid_models_tests.test_relative_fields.ReverseQueryNameClashTests) ... ok
test_m2m_to_fk (invalid_models_tests.test_relative_fields.ReverseQueryNameClashTests) ... ok
test_m2m_to_integer (invalid_models_tests.test_relative_fields.ReverseQueryNameClashTests) ... ok
test_m2m_to_m2m (invalid_models_tests.test_relative_fields.ReverseQueryNameClashTests) ... ok
test_fk_to_fk (invalid_models_tests.test_relative_fields.ExplicitRelatedNameClashTests) ... ok
test_fk_to_integer (invalid_models_tests.test_relative_fields.ExplicitRelatedNameClashTests) ... ok
test_fk_to_m2m (invalid_models_tests.test_relative_fields.ExplicitRelatedNameClashTests) ... ok
test_m2m_to_fk (invalid_models_tests.test_relative_fields.ExplicitRelatedNameClashTests) ... ok
test_m2m_to_integer (invalid_models_tests.test_relative_fields.ExplicitRelatedNameClashTests) ... ok
test_m2m_to_m2m (invalid_models_tests.test_relative_fields.ExplicitRelatedNameClashTests) ... ok
test_fk_to_fk (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_fk_to_integer (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_fk_to_m2m (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_hidden_fk_to_fk (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_hidden_fk_to_integer (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_hidden_fk_to_m2m (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_hidden_m2m_to_fk (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_hidden_m2m_to_integer (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_hidden_m2m_to_m2m (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_m2m_to_fk (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_m2m_to_integer (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_m2m_to_m2m (invalid_models_tests.test_relative_fields.ExplicitRelatedQueryNameClashTests) ... ok
test_ambiguous_relationship_model_from (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_ambiguous_relationship_model_to (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... FAIL
test_foreign_key_to_abstract_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_key_to_isolate_apps_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_key_to_missing_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_key_to_non_unique_field (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_key_to_non_unique_field_under_explicit_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_key_to_partially_unique_field (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_key_to_unique_field_with_meta_constraint (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_object_to_non_unique_fields (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_object_to_partially_unique_field (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_foreign_object_to_unique_field_with_meta_constraint (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_invalid_related_query_name (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_m2m_to_abstract_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_many_to_many_through_isolate_apps_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_many_to_many_to_isolate_apps_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_many_to_many_to_missing_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_many_to_many_with_limit_choices_auto_created_no_warning (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_many_to_many_with_useless_options (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_missing_relationship_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_missing_relationship_model_on_model_check (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_not_swapped_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_nullable_primary_key (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_on_delete_set_default_without_default_value (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_on_delete_set_null_on_non_nullable_field (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_referencing_to_swapped_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_related_field_has_invalid_related_name (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_related_field_has_valid_related_name (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_relationship_model_missing_foreign_key (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_relationship_model_with_foreign_key_to_wrong_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_to_fields_exist (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_to_fields_not_checked_if_related_model_doesnt_exist (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_too_many_foreign_keys_in_self_referential_model (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_unique_m2m (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
test_valid_foreign_key_without_accessor (invalid_models_tests.test_relative_fields.RelativeFieldTests) ... ok
======================================================================
FAIL: test_ambiguous_relationship_model_to (invalid_models_tests.test_relative_fields.RelativeFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/opt/django__django/tests/invalid_models_tests/test_relative_fields.py", line 187, in test_ambiguous_relationship_model_to
id='fields.E335',
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1028, in assertListEqual
self.assertSequenceEqual(list1, list2, msg, seq_type=list)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 1010, in assertSequenceEqual
self.fail(msg)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: Lists differ: [<Err[320 chars] use ForeignKey("self", symmetrical=False, thr[108 chars]35'>] != [<Err[320 chars] use ManyToManyField("self", through="Ambiguou[94 chars]35'>]
First differing element 0:
<Erro[319 chars] use ForeignKey("self", symmetrical=False, thr[107 chars]335'>
<Erro[319 chars] use ManyToManyField("self", through="Ambiguou[93 chars]335'>
Diff is 1857 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
Ran 84 tests in 0.340s
FAILED (failures=1)
[django__django__3.1] [django__django-12497] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.1] [django__django-12497] Test script run successful