#323454 failed

5fc77f7Martijn Braam

Conform to the draft RFC

Owner
~martijnbraam
Created
4 months ago
Updated
4 months ago
Build manifest
view manifest »

Tasks

view log »
install view log »
generate view log »
test view log »
go to bottom »
setup
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
[#323454] 2020/10/19 20:01:21 Booting image alpine/edge (default) on port 22362
[#323454] 2020/10/19 20:01:24 Waiting for guest to settle
[#323454] 2020/10/19 20:01:31 Sending tasks
[#323454] 2020/10/19 20:01:32 Sending build environment
[#323454] 2020/10/19 20:01:32 Installing packages
Warning: Permanently added '[localhost]:22362' (ECDSA) to the list of known hosts.
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
v20200917-2527-ge2eab9a1c4 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v20200917-2530-g642fbf6752 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
v20200917-2529-gf67ab8de6b [http://dl-cdn.alpinelinux.org/alpine/edge/testing]
OK: 17505 distinct packages available
Warning: Permanently added '[localhost]:22362' (ECDSA) to the list of known hosts.
(1/17) Installing py3-attrs (20.2.0-r0)
(2/17) Installing py3-sortedcontainers (2.2.2-r0)
(3/17) Installing py3-hypothesis (5.37.3-r0)
(4/17) Installing py3-atomicwrites (1.4.0-r0)
(5/17) Installing py3-more-itertools (8.5.0-r0)
(6/17) Installing py3-iniconfig (1.0.1-r0)
(7/17) Installing py3-pluggy (0.13.1-r1)
(8/17) Installing py3-py (1.9.0-r0)
(9/17) Installing py3-six (1.15.0-r0)
(10/17) Installing py3-wcwidth (0.2.5-r0)
(11/17) Installing py3-ordered-set (4.0.2-r0)
(12/17) Installing py3-appdirs (1.4.4-r1)
(13/17) Installing py3-parsing (2.4.7-r1)
(14/17) Installing py3-packaging (20.4-r0)
(15/17) Installing py3-setuptools (50.3.2-r0)
(16/17) Installing py3-toml (0.10.1-r0)
(17/17) Installing py3-pytest (6.1.1-r0)
Executing busybox-1.32.0-r3.trigger
OK: 1155 MiB in 220 packages
[#323454] 2020/10/19 20:01:33 Cloning repositories
Cloning into 'bare-py'...
+ cd bare-py
+ git checkout -q 5fc77f71382745d9e5f3c81a89572c7fde83d227
+ cd bare-py
+ git submodule update --init
[#323454] 2020/10/19 20:01:34 Running task install
[#323454] 2020/10/19 20:01:35 Running task generate
[#323454] 2020/10/19 20:01:36 Running task test
[#323454] 2020/10/19 20:01:57 Build failed.
[#323454] 2020/10/19 20:01:57 The build environment will be kept alive for 10 minutes.
[#323454] 2020/10/19 20:01:57 To log in with SSH and examine it, use the following command:
[#323454] 2020/10/19 20:01:57 
[#323454] 2020/10/19 20:01:57 	ssh -t builds@azusa.runners.sr.ht connect 323454
[#323454] 2020/10/19 20:01:57 
[#323454] 2020/10/19 20:01:57 After logging in, the deadline is increased to your remaining build time.
[#323454] 2020/10/19 20:11:57 Deadline elapsed. Terminating build environment.
[#323454] 2020/10/19 20:11:57 Error: Running task on guest: exit status 1
install
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
+ cd bare-py
+ sudo python3 setup.py install
running install
running bdist_egg
running egg_info
creating bare.egg-info
writing bare.egg-info/PKG-INFO
writing dependency_links to bare.egg-info/dependency_links.txt
writing entry points to bare.egg-info/entry_points.txt
writing top-level names to bare.egg-info/top_level.txt
writing manifest file 'bare.egg-info/SOURCES.txt'
reading manifest file 'bare.egg-info/SOURCES.txt'
writing manifest file 'bare.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/bare
copying bare/test_varint.py -> build/lib/bare
copying bare/lex.py -> build/lib/bare
copying bare/__init__.py -> build/lib/bare
copying bare/bare_ast.py -> build/lib/bare
copying bare/test_aggregates.py -> build/lib/bare
copying bare/dump.py -> build/lib/bare
copying bare/test_lexer.py -> build/lib/bare
copying bare/parser.py -> build/lib/bare
copying bare/test_parser.py -> build/lib/bare
copying bare/__main__.py -> build/lib/bare
copying bare/test_primitives.py -> build/lib/bare
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/test_varint.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/lex.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/__init__.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/bare_ast.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/test_aggregates.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/dump.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/test_lexer.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/parser.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/test_parser.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/__main__.py -> build/bdist.linux-x86_64/egg/bare
copying build/lib/bare/test_primitives.py -> build/bdist.linux-x86_64/egg/bare
byte-compiling build/bdist.linux-x86_64/egg/bare/test_varint.py to test_varint.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/lex.py to lex.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/bare_ast.py to bare_ast.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/test_aggregates.py to test_aggregates.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/dump.py to dump.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/test_lexer.py to test_lexer.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/parser.py to parser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/test_parser.py to test_parser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/__main__.py to __main__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/bare/test_primitives.py to test_primitives.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying bare.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bare.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bare.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bare.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bare.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/bare-0.7.0-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing bare-0.7.0-py3.8.egg
Copying bare-0.7.0-py3.8.egg to /usr/lib/python3.8/site-packages
Adding bare 0.7.0 to easy-install.pth file
Installing bare script to /usr/bin
Installing bare-dump script to /usr/bin

Installed /usr/lib/python3.8/site-packages/bare-0.7.0-py3.8.egg
Processing dependencies for bare==0.7.0
Finished processing dependencies for bare==0.7.0
generate
1
2
+ cd bare-py/example
+ bare schema.bare schema.py
test
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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
+ cd bare-py
+ python3 -m pytest --hypothesis-show-statistics bare
============================= test session starts ==============================
platform linux -- Python 3.8.6, pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/build/bare-py
plugins: hypothesis-5.37.3
collecting ... 
collected 29 items                                                             

bare/test_aggregates.py ......F                                          [ 24%]
bare/test_lexer.py .                                                     [ 27%]
bare/test_parser.py .                                                    [ 31%]
bare/test_primitives.py F...............                                 [ 86%]
bare/test_varint.py ....                                                 [100%]

=================================== FAILURES ===================================
______________________________ Test.test_optional ______________________________

self = <bare.test_aggregates.Test testMethod=test_optional>

    @given(integers(min_value=0, max_value=255))
>   @example(None)

bare/test_aggregates.py:12: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
bare/test_aggregates.py:17: in test_optional
    result = _unpack_type(ast, None, None, packed, 0)[0]
bare/__init__.py:250: in _unpack_type
    exists, offset = _unpack_primitive(BarePrimitive(TypeKind.Bool), data, offset)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

primitive = <BarePrimitive TypeKind.Bool>, data = b'\x00', offset = 0

    def _unpack_primitive(primitive, data, offset):
        if primitive.type == TypeKind.U8:
            return struct.unpack_from('<B', data, offset)[0], offset + 1
        elif primitive.type == TypeKind.U16:
            return struct.unpack_from('<H', data, offset)[0], offset + 2
        elif primitive.type == TypeKind.U32:
            return struct.unpack_from('<I', data, offset)[0], offset + 4
        elif primitive.type == TypeKind.U64:
            return struct.unpack_from('<Q', data, offset)[0], offset + 8
        elif primitive.type == TypeKind.UINT:
            return _unpack_varint(data, offset)
        elif primitive.type == TypeKind.I8:
            return struct.unpack_from('<b', data, offset)[0], offset + 1
        elif primitive.type == TypeKind.I16:
            return struct.unpack_from('<h', data, offset)[0], offset + 2
        elif primitive.type == TypeKind.I32:
            return struct.unpack_from('<i', data, offset)[0], offset + 4
        elif primitive.type == TypeKind.I64:
            return struct.unpack_from('<q', data, offset)[0], offset + 8
        elif primitive.type == TypeKind.INT:
            return _unpack_varint(data, offset, signed=True)
        elif primitive.type == TypeKind.F32:
            return struct.unpack_from('<f', data, offset)[0], offset + 4
        elif primitive.type == TypeKind.F64:
            return struct.unpack_from('<d', data, offset)[0], offset + 8
        elif primitive.type == TypeKind.Bool:
            temp = struct.unpack_from('<B', data, offset)[0], offset + 1
>           if temp > 1:
E           TypeError: '>' not supported between instances of 'tuple' and 'int'

bare/__init__.py:128: TypeError
---------------------------------- Hypothesis ----------------------------------
Falsifying explicit example: test_optional(
    self=<bare.test_aggregates.Test testMethod=test_optional>, number=None,
)
b'\x00'
________________________________ Test.test_bool ________________________________

self = <bare.test_primitives.Test testMethod=test_bool>

    @given(booleans())
>   def test_bool(self, bool):

bare/test_primitives.py:116: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
bare/test_primitives.py:120: in test_bool
    result = _unpack_primitive(ast, packed, 0)[0]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

primitive = <BarePrimitive TypeKind.Bool>, data = b'\x00', offset = 0

    def _unpack_primitive(primitive, data, offset):
        if primitive.type == TypeKind.U8:
            return struct.unpack_from('<B', data, offset)[0], offset + 1
        elif primitive.type == TypeKind.U16:
            return struct.unpack_from('<H', data, offset)[0], offset + 2
        elif primitive.type == TypeKind.U32:
            return struct.unpack_from('<I', data, offset)[0], offset + 4
        elif primitive.type == TypeKind.U64:
            return struct.unpack_from('<Q', data, offset)[0], offset + 8
        elif primitive.type == TypeKind.UINT:
            return _unpack_varint(data, offset)
        elif primitive.type == TypeKind.I8:
            return struct.unpack_from('<b', data, offset)[0], offset + 1
        elif primitive.type == TypeKind.I16:
            return struct.unpack_from('<h', data, offset)[0], offset + 2
        elif primitive.type == TypeKind.I32:
            return struct.unpack_from('<i', data, offset)[0], offset + 4
        elif primitive.type == TypeKind.I64:
            return struct.unpack_from('<q', data, offset)[0], offset + 8
        elif primitive.type == TypeKind.INT:
            return _unpack_varint(data, offset, signed=True)
        elif primitive.type == TypeKind.F32:
            return struct.unpack_from('<f', data, offset)[0], offset + 4
        elif primitive.type == TypeKind.F64:
            return struct.unpack_from('<d', data, offset)[0], offset + 8
        elif primitive.type == TypeKind.Bool:
            temp = struct.unpack_from('<B', data, offset)[0], offset + 1
>           if temp > 1:
E           TypeError: '>' not supported between instances of 'tuple' and 'int'

bare/__init__.py:128: TypeError
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_bool(
    self=<bare.test_primitives.Test testMethod=test_bool>, bool=False,
)
b'\x00'
============================ Hypothesis Statistics =============================
bare/test_aggregates.py::Test::test_array_fixedsubtype:

  - during generate phase (0.35 seconds):
    - Typical runtimes: 0-3 ms, ~ 67% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_aggregates.py::Test::test_array_nonfixedsubtype:

  - during generate phase (1.48 seconds):
    - Typical runtimes: 0-25 ms, ~ 82% in data generation
    - 100 passing examples, 0 failing examples, 8 invalid examples

  - Stopped because settings.max_examples=100


bare/test_aggregates.py::Test::test_fixedarray_fixedsubtype:

  - during generate phase (0.99 seconds):
    - Typical runtimes: 5-7 ms, ~ 86% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_aggregates.py::Test::test_fixedarray_nonfixedsubtype:

  - during generate phase (7.50 seconds):
    - Typical runtimes: 4-63 ms, ~ 95% in data generation
    - 100 passing examples, 0 failing examples, 38 invalid examples

  - Stopped because settings.max_examples=100


bare/test_aggregates.py::Test::test_map_int_string:

  - during generate phase (1.49 seconds):
    - Typical runtimes: 0-22 ms, ~ 83% in data generation
    - 100 passing examples, 0 failing examples, 20 invalid examples
    - Events:
      * 18.33%, Retried draw from TupleStrategy((BoundedIntStrategy(0, 255), lists(<hypothesis.strategies._internal.strings.OneCharStringStrategy at 0x7f1d2a896fa0>).map(''.join))).filter(lambda val: all(key(val) not in seen for (key, seen) in zip(self.keys, seen_sets))) to satisfy filter

  - Stopped because settings.max_examples=100


bare/test_aggregates.py::Test::test_map_string_string:

  - during generate phase (2.99 seconds):
    - Typical runtimes: 1-58 ms, ~ 88% in data generation
    - 100 passing examples, 0 failing examples, 5 invalid examples
    - Events:
      * 27.62%, Retried draw from TupleStrategy((lists(<hypothesis.strategies._internal.strings.OneCharStringStrategy at 0x7f1d2a896fa0>).map(''.join), lists(<hypothesis.strategies._internal.strings.OneCharStringStrategy at 0x7f1d2a896fa0>).map(''.join))).filter(lambda val: all(key(val) not in seen for (key, seen) in zip(self.keys, seen_sets))) to satisfy filter

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_bool:

  - during generate phase (0.00 seconds):
    - Typical runtimes: ~ 1ms, ~ 16% in data generation
    - 0 passing examples, 2 failing examples, 0 invalid examples
    - Found 1 failing example in this phase

  - Stopped because nothing left to do


bare/test_primitives.py::Test::test_data:

  - during generate phase (0.38 seconds):
    - Typical runtimes: 0-3 ms, ~ 69% in data generation
    - 100 passing examples, 0 failing examples, 4 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_datafixed:

  - during generate phase (0.25 seconds):
    - Typical runtimes: 0-2 ms, ~ 65% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples
    - Events:
      * 2.00%, Retried draw from tuples(binary(max_size=128), integers(min_value=1, max_value=128)).filter(lambda x: len(x[0]) <= x[1]) to satisfy filter

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_f32:

  - during generate phase (0.24 seconds):
    - Typical runtimes: 0-1 ms, ~ 57% in data generation
    - 100 passing examples, 0 failing examples, 10 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_f64:

  - during generate phase (0.23 seconds):
    - Typical runtimes: 0-1 ms, ~ 58% in data generation
    - 100 passing examples, 0 failing examples, 13 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_i16:

  - during generate phase (0.16 seconds):
    - Typical runtimes: 0-1 ms, ~ 59% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_i32:

  - during generate phase (0.23 seconds):
    - Typical runtimes: 0-1 ms, ~ 64% in data generation
    - 100 passing examples, 0 failing examples, 2 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_i64:

  - during generate phase (0.14 seconds):
    - Typical runtimes: < 1ms, ~ 51% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_i8:

  - during generate phase (0.16 seconds):
    - Typical runtimes: 0-1 ms, ~ 60% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_string:

  - during generate phase (0.39 seconds):
    - Typical runtimes: 0-3 ms, ~ 72% in data generation
    - 100 passing examples, 0 failing examples, 1 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_u16:

  - during generate phase (0.10 seconds):
    - Typical runtimes: < 1ms, ~ 44% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_u32:

  - during generate phase (0.20 seconds):
    - Typical runtimes: 0-1 ms, ~ 57% in data generation
    - 100 passing examples, 0 failing examples, 3 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_u64:

  - during generate phase (0.17 seconds):
    - Typical runtimes: < 1ms, ~ 57% in data generation
    - 100 passing examples, 0 failing examples, 2 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_u8:

  - during generate phase (0.09 seconds):
    - Typical runtimes: < 1ms, ~ 44% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_primitives.py::Test::test_uint:

  - during generate phase (0.17 seconds):
    - Typical runtimes: < 1ms, ~ 53% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_varint.py::Test::test_signed_varint:

  - during generate phase (0.12 seconds):
    - Typical runtimes: < 1ms, ~ 51% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


bare/test_varint.py::Test::test_unsigned_varint:

  - during generate phase (0.12 seconds):
    - Typical runtimes: < 1ms, ~ 55% in data generation
    - 100 passing examples, 0 failing examples, 0 invalid examples

  - Stopped because settings.max_examples=100


=========================== short test summary info ============================
FAILED bare/test_aggregates.py::Test::test_optional - TypeError: '>' not supp...
FAILED bare/test_primitives.py::Test::test_bool - TypeError: '>' not supporte...
======================== 2 failed, 27 passed in 19.10s =========================
Build complete: failed 4 months ago (took 35 seconds)