Page MenuHomeSoftware Heritage

Build 365

Properties

Buildable
B247: Diff 215
Build Plan
Plan 2 Software Heritage Python tests
Status
Failed

Lint

When
Completed at Jun 23 2016, 5:02 PM · Built for 3 s
Status
Passed
1 empty logs are hidden. Show all logs.

Build Log 1232 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

1python3 -m flake8 swh bin/swh-web-ui-dev
2

Python tests

When
Completed at Jun 23 2016, 5:02 PM · Built for 3 s
Status
Failed
1 empty logs are hidden. Show all logs.

Build Log 1231 (remote - stderr)
25 - 50 - 100 - Unlimited Lines

263lookup_revision_with_context_ko_not_a_sha1_1 (ui.tests.test_service.ServiceTestCase) ... ok
264lookup_revision_with_context_ko_not_a_sha1_2 (ui.tests.test_service.ServiceTestCase) ... ok
265lookup_revision_with_context_ko_root_sha1_git_does_not_exist (ui.tests.test_service.ServiceTestCase) ... ok
266lookup_revision_with_context_ko_sha1_git_does_not_exist (ui.tests.test_service.ServiceTestCase) ... ok
267lookup_revision_with_context_sha1_git_root_already_retrieved_as_dict (ui.tests.test_service.ServiceTestCase) ... ok
268search_hash_does_not_exist (ui.tests.test_service.ServiceTestCase) ... ok
269search_hash_exist (ui.tests.test_service.ServiceTestCase) ... ok
270stat_counters (ui.tests.test_service.ServiceTestCase) ... ok
271test_upload_and_search (ui.tests.test_service.ServiceTestCase) ... ok
272allowed_file_denied (ui.tests.test_upload.UploadTestCase) ... ok
273allowed_file_ok (ui.tests.test_upload.UploadTestCase) ... ok
274cleanup_ok (ui.tests.test_upload.UploadTestCase) ... ok
275cleanup_should_fail (ui.tests.test_upload.UploadTestCase) ... ok
276save_in_upload_folder_file_not_allowed (ui.tests.test_upload.UploadTestCase) ... ok
277save_in_upload_folder_no_file (ui.tests.test_upload.UploadTestCase) ... ok
278save_in_upload_folder_ok (ui.tests.test_upload.UploadTestCase) ... ok
279enrich_content_with_sha1 (ui.tests.test_utils.UtilsTestCase) ... ok
280enrich_content_without_sha1 (ui.tests.test_utils.UtilsTestCase) ... ok
281enrich_directory_no_type (ui.tests.test_utils.UtilsTestCase) ... ok
282enrich_directory_with_context_and_type_dir (ui.tests.test_utils.UtilsTestCase) ... ok
283enrich_directory_with_context_and_type_file (ui.tests.test_utils.UtilsTestCase) ... ok
284enrich_entity_identity (ui.tests.test_utils.UtilsTestCase) ... ok
285enrich_entity_with_sha1 (ui.tests.test_utils.UtilsTestCase) ... ok
286enrich_release_0 (ui.tests.test_utils.UtilsTestCase) ... ok
287enrich_release_1 (ui.tests.test_utils.UtilsTestCase) ... ok
288enrich_release_2 (ui.tests.test_utils.UtilsTestCase) ... ok
289enrich_release_3 (ui.tests.test_utils.UtilsTestCase) ... ok
290enrich_release_4 (ui.tests.test_utils.UtilsTestCase) ... ok
291enrich_revision_with_children_and_parent_no_dir (ui.tests.test_utils.UtilsTestCase) ... ok
292enrich_revision_with_invalid_message (ui.tests.test_utils.UtilsTestCase) ... ok
293enrich_revision_with_no_message (ui.tests.test_utils.UtilsTestCase) ... ok
294enrich_revision_without_children_or_parent (ui.tests.test_utils.UtilsTestCase) ... ok
295filter_endpoints_1 (ui.tests.test_utils.UtilsTestCase) ... ok
296filter_endpoints_2 (ui.tests.test_utils.UtilsTestCase) ... ok
297filter_field_keys_dict (ui.tests.test_utils.UtilsTestCase) ... ok
298filter_field_keys_dict_unknown_keys (ui.tests.test_utils.UtilsTestCase) ... ok
299filter_field_keys_list (ui.tests.test_utils.UtilsTestCase) ... ok
300filter_field_keys_list_unknown_keys (ui.tests.test_utils.UtilsTestCase) ... ok
301filter_field_keys_other (ui.tests.test_utils.UtilsTestCase) ... ok
302fmap (ui.tests.test_utils.UtilsTestCase) ... ok
303parse_timestamp (ui.tests.test_utils.UtilsTestCase) ... ok
304person_to_string (ui.tests.test_utils.UtilsTestCase) ... ok
305prepare_data_for_view (ui.tests.test_utils.UtilsTestCase) ... ok
306prepare_data_for_view_default_encoding (ui.tests.test_utils.UtilsTestCase) ... ok
307prepare_data_for_view_ko_cannot_decode (ui.tests.test_utils.UtilsTestCase) ... ok
308
309======================================================================
310FAIL: api_revision_log_context (ui.tests.views.test_api.ApiTestCase)
311----------------------------------------------------------------------
312Traceback (most recent call last):
313 File "/usr/lib/python3.4/unittest/mock.py", line 1136, in patched
314 return func(*args, **keywargs)
315 File "/home/temp-drydock/drydock/workingcopy-164/repo/swh-web-ui/swh/web/ui/tests/views/test_api.py", line 1552, in api_revision_log_context
316 'synthetic': True,
317AssertionError: Lists differ: [{'type': 'tar', 'directory_url': '/api/1/directory/18d8be3[1526 chars]ge'}] != [{'type': 'tar', 'synthetic': True, 'directory_url': '/api/[1520 chars]ge'}]
318
319First differing element 0:
320{'type': 'tar', 'directory_url': '/api/1/directory/18d8be353ed3480476f032475e7c233eff7371d5/', 'id': '7834ef7e7c357ce2af928115c6c6a42b7e2a44e6', 'author_email': 'name@surname.com', 'author_name': 'Name Surname', 'committer_date_offset': 0, 'date_offset': 0, 'committer_email': 'name@surname.com', 'committer_name': 'Name Surname', 'parents': ['adc83b19e793491b1c6ea0fd8b46cd9f32e592fc'], 'url': '/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/', 'history_url': '/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/log/', 'directory': '18d8be353ed3480476f032475e7c233eff7371d5', 'synthetic': True, 'parent_urls': ['/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/history/adc83b19e793491b1c6ea0fd8b46cd9f32e592fc/'], 'message': 'amazing revision message'}
321{'type': 'tar', 'synthetic': True, 'directory_url': '/api/1/directory/18d8be353ed3480476f032475e7c233eff7371d5/', 'committer_email': 'name@surname.com', 'parents': ['adc83b19e793491b1c6ea0fd8b46cd9f32e592fc'], 'committer_date_offset': 0, 'author_name': 'Name Surname', 'author_email': 'name@surname.com', 'committer_name': 'Name Surname', 'date_offset': 0, 'id': '7834ef7e7c357ce2af928115c6c6a42b7e2a44e6', 'history_url': '/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/log/', 'directory': '18d8be353ed3480476f032475e7c233eff7371d5', 'parent_urls': ['/api/1/revision/adc83b19e793491b1c6ea0fd8b46cd9f32e592fc/prev/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/'], 'url': '/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/', 'message': 'amazing revision message'}
322
323 [{'author_email': 'name@surname.com',
324 'author_name': 'Name Surname',
325 'committer_date_offset': 0,
326 'committer_email': 'name@surname.com',
327 'committer_name': 'Name Surname',
328 'date_offset': 0,
329 'directory': '18d8be353ed3480476f032475e7c233eff7371d5',
330 'directory_url': '/api/1/directory/18d8be353ed3480476f032475e7c233eff7371d5/',
331 'history_url': '/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/log/',
332 'id': '7834ef7e7c357ce2af928115c6c6a42b7e2a44e6',
333 'message': 'amazing revision message',
334- 'parent_urls': ['/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/history/adc83b19e793491b1c6ea0fd8b46cd9f32e592fc/'],
335+ 'parent_urls': ['/api/1/revision/adc83b19e793491b1c6ea0fd8b46cd9f32e592fc/prev/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/'],
336 'parents': ['adc83b19e793491b1c6ea0fd8b46cd9f32e592fc'],
337 'synthetic': True,
338 'type': 'tar',
339 'url': '/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/'},
340 {'author_email': 'robot@softwareheritage.org',
341 'author_name': 'Software Heritage',
342 'committer_date_offset': 0,
343 'committer_email': 'robot@softwareheritage.org',
344 'committer_name': 'Software Heritage',
345 'date_offset': 0,
346 'directory': '7834ef7e7c357ce2af928115c6c6a42b7e2a44e6',
347 'directory_url': '/api/1/directory/7834ef7e7c357ce2af928115c6c6a42b7e2a44e6/',
348 'history_url': '/api/1/revision/18d8be353ed3480476f032475e7c233eff7371d5/log/',
349 'id': '18d8be353ed3480476f032475e7c233eff7371d5',
350 'message': 'synthetic revision message',
351- 'parent_urls': ['/api/1/revision/18d8be353ed3480476f032475e7c233eff7371d5/history/7834ef7e7c357ce2af928115c6c6a42b7e2a4345/'],
352+ 'parent_urls': ['/api/1/revision/7834ef7e7c357ce2af928115c6c6a42b7e2a4345/prev/18d8be353ed3480476f032475e7c233eff7371d5/'],
353 'parents': ['7834ef7e7c357ce2af928115c6c6a42b7e2a4345'],
354 'synthetic': True,
355 'type': 'tar',
356 'url': '/api/1/revision/18d8be353ed3480476f032475e7c233eff7371d5/'}]
357
358----------------------------------------------------------------------
359Ran 307 tests in 1.009s
360
361FAILED (failures=1)
362

Update environment from working copy

When
Completed at Jun 23 2016, 5:02 PM · Built for 7 s
Status
Passed
1 empty logs are hidden. Show all logs.

Build Log 1228 (remote - stdout)
25 - 50 - 100 - Unlimited Lines

16mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-cloner-git
17mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-cloner-git
18Already up-to-date.
19
20mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-antelink
21mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-antelink
22Already up-to-date.
23
24mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-dir
25mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-dir
26Already up-to-date.
27
28mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-debian
29mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-debian
30Already up-to-date.
31
32mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-core
33mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-core
34Already up-to-date.
35
36mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-git
37mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-git
38Already up-to-date.
39
40mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-model
41mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-model
42From ssh://forge.softwareheritage.org/diffusion/DMOD/swh-model
43 cec445d..2594832 master -> origin/master
44Updating cec445d..2594832
45Fast-forward
46 bin/git-revhash | 7 +++++++
47 bin/swh-revhash | 31 +++++++++++++++++++++++++++++++
48 2 files changed, 38 insertions(+)
49 create mode 100755 bin/git-revhash
50 create mode 100755 bin/swh-revhash
51
52mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-svn
53mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-svn
54From ssh://forge.softwareheritage.org/diffusion/DLDSVN/swh-loader-svn
55 * [new branch] draft-policy-adaptation -> origin/draft-policy-adaptation
56Already up-to-date.
57
58mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-tar
59mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-loader-tar
60Already up-to-date.
61
62mr checkout: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-objstorage
63mr checkout: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-objstorage
64Cloning into 'swh-objstorage'...
65
66mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-py-template
67mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-py-template
68Already up-to-date.
69
70mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-scheduler
71mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-scheduler
72Already up-to-date.
73
74mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-storage-testdata
75mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-storage-testdata
76Already up-to-date.
77
78mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-storage
79mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-storage
80From ssh://forge.softwareheritage.org/diffusion/DSTO/swh-storage
81 cbaed54..a623ce8 master -> origin/master
82Updating cbaed54..a623ce8
83Fast-forward
84 setup.py | 2 +
85 swh/storage/objstorage/multiplexer/__init__.py | 4 +
86 .../objstorage/multiplexer/filter/__init__.py | 98 ++++++
87 .../objstorage/multiplexer/filter/filter.py | 48 +++
88 .../objstorage/multiplexer/filter/id_filter.py | 99 ++++++
89 .../multiplexer/filter/read_write_filter.py | 17 +
90 .../multiplexer/multiplexer_objstorage.py | 194 +++++++++++
91 swh/storage/tests/test_multiplexer_filter.py | 373 +++++++++++++++++++++
92 swh/storage/tests/test_objstorage_multiplexer.py | 78 +++++
93 9 files changed, 913 insertions(+)
94 create mode 100644 swh/storage/objstorage/multiplexer/__init__.py
95 create mode 100644 swh/storage/objstorage/multiplexer/filter/__init__.py
96 create mode 100644 swh/storage/objstorage/multiplexer/filter/filter.py
97 create mode 100644 swh/storage/objstorage/multiplexer/filter/id_filter.py
98 create mode 100644 swh/storage/objstorage/multiplexer/filter/read_write_filter.py
99 create mode 100644 swh/storage/objstorage/multiplexer/multiplexer_objstorage.py
100 create mode 100644 swh/storage/tests/test_multiplexer_filter.py
101 create mode 100644 swh/storage/tests/test_objstorage_multiplexer.py
102
103mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-web-ui
104mr update: /home/temp-drydock/drydock/workingcopy-164/repo/swh-environment/swh-web-ui
105From ssh://forge.softwareheritage.org/diffusion/DWUI/swh-web-ui
106 6003846..2b9a9c6 master -> origin/master
107Updating 6003846..2b9a9c6
108Fast-forward
109 swh/web/ui/backend.py | 17 +++--------------
110 swh/web/ui/templates/upload_and_search.html | 18 +++++++-----------
111 swh/web/ui/tests/test_backend.py | 9 +++------
112 3 files changed, 13 insertions(+), 31 deletions(-)
113
114mr update: finished (19 ok)
115

Clone on Software Heritage Worker

When
Completed at Jun 23 2016, 5:02 PM · Built instantly
Status
Passed

Event Timeline