-
Notifications
You must be signed in to change notification settings - Fork 24
/
django__django-13321.gpt-4-0125-preview.eval.log
244 lines (228 loc) · 15.2 KB
/
django__django-13321.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
[django__django__3.2] [django__django-13321] Task Metadata:
- Instance ID: django__django-13321
- Testbed: django__django__3.2
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.2] [django__django-13321] Command: git -c advice.detachedHead=false checkout 35b03788b0607c1f8d2b64e4fa9e1669b0907ea4
[django__django__3.2] [django__django-13321] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13321] Std. Output:
Previous HEAD position was 65dfb06a1a [3.2.x] Fixed #32648 -- Fixed VariableDoesNotExist rendering sitemaps template.
HEAD is now at 35b03788b0 Refs #9061 -- Allowed GenericInlineFormSet to disable deleting extra forms.
[django__django__3.2] [django__django-13321] Return Code: 0
[django__django__3.2] [django__django-13321] Command: git apply -v /opt/temp_django__django-13321_pred_try.patch
[django__django__3.2] [django__django-13321] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13321] Std. Output:
Checking patch django/contrib/sessions/backends/base.py...
Applied patch django/contrib/sessions/backends/base.py cleanly.
[django__django__3.2] [django__django-13321] Return Code: 0
[django__django__3.2] [django__django-13321] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.2] [django__django-13321] Command: git apply -v -R /opt/temp_django__django-13321_pred_try.patch
[django__django__3.2] [django__django-13321] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13321] Std. Output:
Checking patch django/contrib/sessions/backends/base.py...
Applied patch django/contrib/sessions/backends/base.py cleanly.
[django__django__3.2] [django__django-13321] Return Code: 0
[django__django__3.2] [django__django-13321] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.2] [django__django-13321] Command: git apply -v /opt/temp_django__django-13321_pred.patch
[django__django__3.2] [django__django-13321] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13321] Std. Output:
Checking patch django/contrib/sessions/backends/base.py...
Applied patch django/contrib/sessions/backends/base.py cleanly.
[django__django__3.2] [django__django-13321] Return Code: 0
[django__django__3.2] [django__django-13321] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.2] [django__django-13321] Command: git apply -v /opt/temp_django__django-13321_test.patch
[django__django__3.2] [django__django-13321] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.2] [django__django-13321] Std. Output:
Checking patch tests/sessions_tests/tests.py...
Applied patch tests/sessions_tests/tests.py cleanly.
[django__django__3.2] [django__django-13321] Return Code: 0
[django__django__3.2] [django__django-13321] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 sessions_tests.tests;
[django__django__3.2] [django__django-13321] Command: ./tests/runtests.py --verbosity 2 sessions_tests.tests
[django__django__3.2] [django__django-13321] 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-13321] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application sessions_tests
Skipping setup of unused database(s): other.
Operations to perform:
Synchronize unmigrated apps: auth, contenttypes, messages, sessions, sessions_tests, 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 sessions_tests_customsession
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).
Creating 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')...
test_actual_expiry (sessions_tests.tests.CookieSessionTests) ... expected failure
test_clear (sessions_tests.tests.CookieSessionTests) ... ok
test_custom_expiry_datetime (sessions_tests.tests.CookieSessionTests) ... ok
test_custom_expiry_reset (sessions_tests.tests.CookieSessionTests) ... ok
test_custom_expiry_seconds (sessions_tests.tests.CookieSessionTests) ... ok
test_custom_expiry_timedelta (sessions_tests.tests.CookieSessionTests) ... ok
test_cycle (sessions_tests.tests.CookieSessionTests) ... ok
test_cycle_with_no_session_cache (sessions_tests.tests.CookieSessionTests) ... ok
test_decode (sessions_tests.tests.CookieSessionTests) ... ok
test_decode_failure_logged_to_security (sessions_tests.tests.CookieSessionTests) ... test_decode_legacy (sessions_tests.tests.CookieSessionTests) ... ok
test_default_expiry (sessions_tests.tests.CookieSessionTests) ... ok
test_default_hashing_algorith_legacy_decode (sessions_tests.tests.CookieSessionTests) ... ok
test_delete (sessions_tests.tests.CookieSessionTests) ... ok
test_flush (sessions_tests.tests.CookieSessionTests) ... ok
test_get_empty (sessions_tests.tests.CookieSessionTests) ... ok
test_get_expire_at_browser_close (sessions_tests.tests.CookieSessionTests) ... ok
test_has_key (sessions_tests.tests.CookieSessionTests) ... ok
test_invalid_key (sessions_tests.tests.CookieSessionTests) ... ok
test_items (sessions_tests.tests.CookieSessionTests) ... ok
test_keys (sessions_tests.tests.CookieSessionTests) ... ok
test_new_session (sessions_tests.tests.CookieSessionTests) ... ok
test_pop (sessions_tests.tests.CookieSessionTests) ... ok
test_pop_default (sessions_tests.tests.CookieSessionTests) ... ok
test_pop_default_named_argument (sessions_tests.tests.CookieSessionTests) ... ok
test_pop_no_default_keyerror_raised (sessions_tests.tests.CookieSessionTests) ... ok
test_save (sessions_tests.tests.CookieSessionTests) ... ok
test_save_doesnt_clear_data (sessions_tests.tests.CookieSessionTests) ... ok
test_session_key_empty_string_invalid (sessions_tests.tests.CookieSessionTests)
Falsey values (Such as an empty string) are rejected. ... ok
test_session_key_is_read_only (sessions_tests.tests.CookieSessionTests) ... ok
test_session_key_too_short_invalid (sessions_tests.tests.CookieSessionTests)
Strings shorter than 8 characters are rejected. ... ok
test_session_key_valid_string_saved (sessions_tests.tests.CookieSessionTests)
Strings of length 8 and up are accepted and stored. ... ok
test_session_load_does_not_create_record (sessions_tests.tests.CookieSessionTests) ... skipped "Cookie backend doesn't have an external store to create records in."
test_session_save_does_not_resurrect_session_logged_out_in_other_context (sessions_tests.tests.CookieSessionTests) ... skipped 'CookieSession is stored in the client and there is no way to query it.'
test_setdefault (sessions_tests.tests.CookieSessionTests) ... ok
test_store (sessions_tests.tests.CookieSessionTests) ... ok
test_unpickling_exception (sessions_tests.tests.CookieSessionTests) ... ok
test_update (sessions_tests.tests.CookieSessionTests) ... ok
test_values (sessions_tests.tests.CookieSessionTests) ... ok
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')...
Subtest failed:
test: test_decode_failure_logged_to_security (sessions_tests.tests.CacheSessionTests)
subtest: test_decode_failure_logged_to_security (sessions_tests.tests.CacheSessionTests) (encoded='bad:encoded:value')
Unfortunately, the subtest that failed cannot be pickled, so the parallel
test runner cannot handle it cleanly. Here is the pickling error:
> can't pickle _thread.lock objects
You should re-run this test with --parallel=1 to reproduce the failure
with a cleaner failure message.
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/opt/django__django/django/test/runner.py", line 339, in _run_subsuite
result = runner.run(subsuite)
File "/opt/django__django/django/test/runner.py", line 286, in run
test(result)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/opt/django__django/django/test/testcases.py", line 245, in __call__
self._setup_and_call(result)
File "/opt/django__django/django/test/testcases.py", line 281, in _setup_and_call
super().__call__(result)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 613, in run
self._feedErrorsToResult(result, outcome.errors)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 538, in _feedErrorsToResult
result.addSubTest(test.test_case, test, exc_info)
File "/opt/django__django/django/test/runner.py", line 243, in addSubTest
self.check_subtest_picklable(test, subtest)
File "/opt/django__django/django/test/runner.py", line 201, in check_subtest_picklable
self._confirm_picklable(subtest)
File "/opt/django__django/django/test/runner.py", line 134, in _confirm_picklable
pickle.loads(pickle.dumps(obj))
TypeError: can't pickle _thread.lock objects
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "./tests/runtests.py", line 586, in <module>
options.timing,
File "./tests/runtests.py", line 317, in django_tests
extra_tests=extra_tests,
File "/opt/django__django/django/test/runner.py", line 721, in run_tests
result = self.run_suite(suite)
File "/opt/django__django/django/test/runner.py", line 662, in run_suite
return runner.run(suite)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/runner.py", line 176, in run
test(result)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/opt/django__django/django/test/runner.py", line 403, in run
subsuite_index, events = test_results.next(timeout=0.1)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/multiprocessing/pool.py", line 735, in next
raise value
File "/opt/pyenv/versions/3.6.15/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/opt/django__django/django/test/runner.py", line 339, in _run_subsuite
result = runner.run(subsuite)
File "/opt/django__django/django/test/runner.py", line 286, in run
test(result)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/suite.py", line 122, in run
test(result)
File "/opt/django__django/django/test/testcases.py", line 245, in __call__
self._setup_and_call(result)
File "/opt/django__django/django/test/testcases.py", line 281, in _setup_and_call
super().__call__(result)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 653, in __call__
return self.run(*args, **kwds)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 613, in run
self._feedErrorsToResult(result, outcome.errors)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 538, in _feedErrorsToResult
result.addSubTest(test.test_case, test, exc_info)
File "/opt/django__django/django/test/runner.py", line 243, in addSubTest
self.check_subtest_picklable(test, subtest)
File "/opt/django__django/django/test/runner.py", line 201, in check_subtest_picklable
self._confirm_picklable(subtest)
File "/opt/django__django/django/test/runner.py", line 134, in _confirm_picklable
pickle.loads(pickle.dumps(obj))
TypeError: can't pickle _thread.lock objects
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/shutil.py", line 486, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/shutil.py", line 428, in _rmtree_safe_fd
onerror(os.rmdir, fullname, sys.exc_info())
File "/opt/pyenv/versions/3.6.15/lib/python3.6/shutil.py", line 426, in _rmtree_safe_fd
os.rmdir(name, dir_fd=topfd)
OSError: [Errno 39] Directory not empty: 'tmptlp19n8k'
[django__django__3.2] [django__django-13321] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.2] [django__django-13321] Test script run successful