-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-11815.gpt-4-0125-preview.eval.log
168 lines (152 loc) · 10.8 KB
/
django__django-11815.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
[django__django__3.1] [django__django-11815] Task Metadata:
- Instance ID: django__django-11815
- Testbed: django__django__3.1
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.1] [django__django-11815] Command: git -c advice.detachedHead=false checkout e02f67ef2d03d48128e7a118bf75f0418e24e8ac
[django__django__3.1] [django__django-11815] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-11815] Std. Output:
Previous HEAD position was 0668164b4a Fixed E128, E741 flake8 warnings.
HEAD is now at e02f67ef2d Doc'd that migrate commmand accepts a unique migration name prefix.
[django__django__3.1] [django__django-11815] Return Code: 0
[django__django__3.1] [django__django-11815] Command: git apply -v /opt/temp_django__django-11815_pred_try.patch
[django__django__3.1] [django__django-11815] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-11815] Std. Output:
Checking patch django/db/migrations/serializer.py...
Applied patch django/db/migrations/serializer.py cleanly.
[django__django__3.1] [django__django-11815] Return Code: 0
[django__django__3.1] [django__django-11815] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.1] [django__django-11815] Command: git apply -v -R /opt/temp_django__django-11815_pred_try.patch
[django__django__3.1] [django__django-11815] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-11815] Std. Output:
Checking patch django/db/migrations/serializer.py...
Applied patch django/db/migrations/serializer.py cleanly.
[django__django__3.1] [django__django-11815] Return Code: 0
[django__django__3.1] [django__django-11815] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.1] [django__django-11815] Command: git apply -v /opt/temp_django__django-11815_pred.patch
[django__django__3.1] [django__django-11815] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-11815] Std. Output:
Checking patch django/db/migrations/serializer.py...
Applied patch django/db/migrations/serializer.py cleanly.
[django__django__3.1] [django__django-11815] Return Code: 0
[django__django__3.1] [django__django-11815] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.1] [django__django-11815] Command: git apply -v /opt/temp_django__django-11815_test.patch
[django__django__3.1] [django__django-11815] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.1] [django__django-11815] Std. Output:
Checking patch tests/migrations/test_writer.py...
Applied patch tests/migrations/test_writer.py cleanly.
[django__django__3.1] [django__django-11815] Return Code: 0
[django__django__3.1] [django__django-11815] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 migrations.test_writer;
[django__django__3.1] [django__django-11815] Command: ./tests/runtests.py --verbosity 2 migrations.test_writer
[django__django__3.1] [django__django-11815] 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-11815] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application migrations
Skipping setup of unused database(s): default, other.
System check identified no issues (0 silenced).
test_args_kwargs_signature (migrations.test_writer.OperationWriterTests) ... ok
test_args_signature (migrations.test_writer.OperationWriterTests) ... ok
test_empty_signature (migrations.test_writer.OperationWriterTests) ... ok
test_expand_args_signature (migrations.test_writer.OperationWriterTests) ... ok
test_kwargs_signature (migrations.test_writer.OperationWriterTests) ... ok
test_multiline_args_signature (migrations.test_writer.OperationWriterTests) ... ok
test_nested_args_signature (migrations.test_writer.OperationWriterTests) ... ok
test_nested_operation_expand_args_signature (migrations.test_writer.OperationWriterTests) ... ok
test_custom_operation (migrations.test_writer.WriterTests) ... ok
test_deconstruct_class_arguments (migrations.test_writer.WriterTests) ... ok
test_migration_file_header_comments (migrations.test_writer.WriterTests) ... ok
test_migration_path (migrations.test_writer.WriterTests) ... ok
test_models_import_omitted (migrations.test_writer.WriterTests) ... ok
test_register_non_serializer (migrations.test_writer.WriterTests) ... ok
test_register_serializer (migrations.test_writer.WriterTests) ... ok
test_serialize_builtin_types (migrations.test_writer.WriterTests) ... ok
test_serialize_builtins (migrations.test_writer.WriterTests) ... ok
test_serialize_choices (migrations.test_writer.WriterTests) ... ok
test_serialize_class_based_validators (migrations.test_writer.WriterTests) ... FAIL
test_serialize_collections (migrations.test_writer.WriterTests) ... ok
test_serialize_compiled_regex (migrations.test_writer.WriterTests) ... ok
test_serialize_constants (migrations.test_writer.WriterTests) ... ok
test_serialize_datetime (migrations.test_writer.WriterTests) ... ok
test_serialize_empty_nonempty_tuple (migrations.test_writer.WriterTests) ... ok
test_serialize_enums (migrations.test_writer.WriterTests) ... FAIL
test_serialize_fields (migrations.test_writer.WriterTests) ... ok
test_serialize_frozensets (migrations.test_writer.WriterTests) ... ok
test_serialize_functions (migrations.test_writer.WriterTests) ... ok
test_serialize_functools_partial (migrations.test_writer.WriterTests) ... ok
test_serialize_functools_partialmethod (migrations.test_writer.WriterTests) ... ok
test_serialize_iterators (migrations.test_writer.WriterTests) ... ok
test_serialize_lazy_objects (migrations.test_writer.WriterTests) ... ok
test_serialize_local_function_reference (migrations.test_writer.WriterTests)
A reference in a local scope can't be serialized. ... ok
test_serialize_managers (migrations.test_writer.WriterTests) ... ok
test_serialize_multiline_strings (migrations.test_writer.WriterTests) ... ok
test_serialize_numbers (migrations.test_writer.WriterTests) ... ok
test_serialize_range (migrations.test_writer.WriterTests) ... ok
test_serialize_set (migrations.test_writer.WriterTests) ... ok
test_serialize_settings (migrations.test_writer.WriterTests) ... ok
test_serialize_strings (migrations.test_writer.WriterTests) ... ok
test_serialize_timedelta (migrations.test_writer.WriterTests) ... ok
test_serialize_type_none (migrations.test_writer.WriterTests) ... ok
test_serialize_unbound_method_reference (migrations.test_writer.WriterTests)
An unbound method used within a class body can be serialized. ... ok
test_serialize_uuid (migrations.test_writer.WriterTests) ... ok
test_simple_migration (migrations.test_writer.WriterTests) ... ok
test_sorted_imports (migrations.test_writer.WriterTests) ... ok
======================================================================
FAIL: test_serialize_class_based_validators (migrations.test_writer.WriterTests)
----------------------------------------------------------------------
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/migrations/test_writer.py", line 477, in test_serialize_class_based_validators
self.assertEqual(string, "django.core.validators.RegexValidator('^[0-9]+$', flags=re.RegexFlag['DOTALL'])")
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 1203, in assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: "djan[15 chars]ors.RegexValidator('^[0-9]+$', flags=re.RegexFlag[''DOTALL''])" != "djan[15 chars]ors.RegexValidator('^[0-9]+$', flags=re.RegexFlag['DOTALL'])"
- django.core.validators.RegexValidator('^[0-9]+$', flags=re.RegexFlag[''DOTALL''])
? - -
+ django.core.validators.RegexValidator('^[0-9]+$', flags=re.RegexFlag['DOTALL'])
======================================================================
FAIL: test_serialize_enums (migrations.test_writer.WriterTests)
----------------------------------------------------------------------
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/migrations/test_writer.py", line 274, in test_serialize_enums
("migrations.test_writer.TextEnum['A']", {'import migrations.test_writer'})
File "/opt/django__django/tests/migrations/test_writer.py", line 187, in assertSerializedResultEqual
self.assertEqual(MigrationWriter.serialize(value), target)
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 1039, in assertTupleEqual
self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple)
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: Tuples differ: ("migrations.test_writer.TextEnum[''A'']", {'import migrations.test_writer'}) != ("migrations.test_writer.TextEnum['A']", {'import migrations.test_writer'})
First differing element 0:
"migrations.test_writer.TextEnum[''A'']"
"migrations.test_writer.TextEnum['A']"
- ("migrations.test_writer.TextEnum[''A'']", {'import migrations.test_writer'})
? - -
+ ("migrations.test_writer.TextEnum['A']", {'import migrations.test_writer'})
----------------------------------------------------------------------
Ran 46 tests in 0.318s
FAILED (failures=2)
[django__django__3.1] [django__django-11815] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.1] [django__django-11815] Test script run successful