squad 1.94__py3-none-any.whl → 1.95__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of squad might be problematic. Click here for more details.
- squad/ci/backend/tuxsuite.py +14 -5
- squad/ci/management/commands/listen.py +4 -1
- squad/core/tasks/__init__.py +4 -2
- squad/version.py +1 -1
- {squad-1.94.dist-info → squad-1.95.dist-info}/METADATA +3 -2
- {squad-1.94.dist-info → squad-1.95.dist-info}/RECORD +10 -10
- {squad-1.94.dist-info → squad-1.95.dist-info}/WHEEL +1 -1
- {squad-1.94.dist-info → squad-1.95.dist-info}/entry_points.txt +0 -0
- {squad-1.94.dist-info → squad-1.95.dist-info/licenses}/COPYING +0 -0
- {squad-1.94.dist-info → squad-1.95.dist-info}/top_level.txt +0 -0
squad/ci/backend/tuxsuite.py
CHANGED
@@ -394,6 +394,7 @@ class Backend(BaseBackend):
|
|
394
394
|
|
395
395
|
# Retrieve TuxRun log
|
396
396
|
logs = self.fetch_url(job_url + '/', 'logs?format=txt').text
|
397
|
+
log_lines = logs.splitlines()
|
397
398
|
|
398
399
|
attachment_list = ["reproducer", "tux_plan.yaml"]
|
399
400
|
attachments = {}
|
@@ -407,7 +408,7 @@ class Backend(BaseBackend):
|
|
407
408
|
|
408
409
|
# Create a boot test
|
409
410
|
boot_test_name = 'boot/' + (metadata.get('build_name') or 'boot')
|
410
|
-
tests[boot_test_name] = results['results']['boot']
|
411
|
+
tests[boot_test_name] = {'result': results['results']['boot']}
|
411
412
|
|
412
413
|
# Really fetch test results
|
413
414
|
tests_results = self.fetch_url(job_url + '/', 'results').json()
|
@@ -420,10 +421,18 @@ class Backend(BaseBackend):
|
|
420
421
|
for name, test_data in suite_tests.items():
|
421
422
|
test_name = f'{suite_name}/{name}'
|
422
423
|
result = test_data['result']
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
424
|
+
if "starttc" in test_data:
|
425
|
+
starttc = test_data["starttc"] - 1 # LAVA data counts from 1, we count from 0
|
426
|
+
if "endtc" in test_data:
|
427
|
+
# no -1 as the second index of the slice needs to be
|
428
|
+
# greater than the first to get at least one item.
|
429
|
+
endtc = test_data["endtc"]
|
430
|
+
else:
|
431
|
+
endtc = starttc + 2
|
432
|
+
log_snippet = "\n".join(log_lines[starttc:endtc])
|
433
|
+
else:
|
434
|
+
log_snippet = None
|
435
|
+
tests[test_name] = {"result": result, "log": log_snippet}
|
427
436
|
|
428
437
|
return status, completed, metadata, tests, metrics, logs, attachments
|
429
438
|
|
@@ -138,6 +138,9 @@ class Command(BaseCommand):
|
|
138
138
|
backend_name = options.get("BACKEND")
|
139
139
|
if backend_name:
|
140
140
|
backend = Backend.objects.get(name=backend_name)
|
141
|
-
|
141
|
+
try:
|
142
|
+
Listener(backend).run()
|
143
|
+
except NotImplementedError:
|
144
|
+
logger.info('Backend %s: does not implement a listener' % backend.name)
|
142
145
|
else:
|
143
146
|
ListenerManager().run()
|
squad/core/tasks/__init__.py
CHANGED
@@ -224,7 +224,7 @@ class ParseTestRunData(object):
|
|
224
224
|
], ignore_conflicts=True)
|
225
225
|
|
226
226
|
suites_metadata_ids = {
|
227
|
-
m.suite: m.id for m in SuiteMetadata.objects.filter(
|
227
|
+
m.suite: m.id for m in SuiteMetadata.objects.filter(name='-', suite__in=suites_slugs) if m.kind == 'suite'
|
228
228
|
}
|
229
229
|
|
230
230
|
Suite.objects.bulk_create([
|
@@ -253,13 +253,15 @@ class ParseTestRunData(object):
|
|
253
253
|
metadata_ids = {}
|
254
254
|
metadata_names = {}
|
255
255
|
metadatas = SuiteMetadata.objects.filter(
|
256
|
-
kind='test',
|
257
256
|
name__in=[
|
258
257
|
t['test_name'] for t in tests_batch.values()
|
259
258
|
]
|
260
259
|
).all()
|
261
260
|
|
262
261
|
for metadata in metadatas:
|
262
|
+
if metadata.kind != 'test':
|
263
|
+
continue
|
264
|
+
|
263
265
|
full_name = join_name(metadata.suite, metadata.name)
|
264
266
|
metadata_ids[full_name] = metadata.id
|
265
267
|
metadata_names[metadata.id] = full_name
|
squad/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '1.
|
1
|
+
__version__ = '1.95'
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: squad
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.95
|
4
4
|
Summary: Software Quality Dashboard
|
5
5
|
Home-page: https://gitlab.com/Linaro/squad/squad
|
6
6
|
Author: Antonio Terceiro
|
@@ -48,6 +48,7 @@ Dynamic: author-email
|
|
48
48
|
Dynamic: description
|
49
49
|
Dynamic: home-page
|
50
50
|
Dynamic: license
|
51
|
+
Dynamic: license-file
|
51
52
|
Dynamic: platform
|
52
53
|
Dynamic: provides-extra
|
53
54
|
Dynamic: requires-dist
|
@@ -10,7 +10,7 @@ squad/manage.py,sha256=Z-LXT67p0R-IzwJ9fLIAacEZmU0VUjqDOSg7j2ZSxJ4,1437
|
|
10
10
|
squad/settings.py,sha256=sLSts3qmUgXmpLmzhOBrTmFcSuBRMugo0hDY0uw4z3A,14792
|
11
11
|
squad/socialaccount.py,sha256=vySqPwQ3qVVpahuJ-Snln8K--yzRL3bw4Nx27AsB39A,789
|
12
12
|
squad/urls.py,sha256=JiEfVW8YlzLPE52c2aHzdn5kVVKK4o22w8h5KOA6QhQ,2776
|
13
|
-
squad/version.py,sha256=
|
13
|
+
squad/version.py,sha256=cHY8wiHdCU8oCYKc385f_9EJul17Xe2A_Ho0BrCtExQ,21
|
14
14
|
squad/wsgi.py,sha256=SF8T0cQ0OPVyuYjO5YXBIQzvSXQHV0M2BTmd4gP1rPs,387
|
15
15
|
squad/api/__init__.py,sha256=CJiVakfAlHVN5mIFRVQYZQfuNUhUgWVbsdYTME4tq7U,1349
|
16
16
|
squad/api/apps.py,sha256=Trk72p-iV1uGn0o5mdJn5HARUoHGbfgO49jwXvpkmdQ,141
|
@@ -33,11 +33,11 @@ squad/ci/backend/__init__.py,sha256=yhpotXT9F4IdAOXvGQ3-17eOHAFwoaqf9SnMX17ab30,
|
|
33
33
|
squad/ci/backend/fake.py,sha256=MTsxGZuihJOd39X8ysJhiYp4A0R46lyhdkjoTgFm6a8,2435
|
34
34
|
squad/ci/backend/lava.py,sha256=Atb2AgV5OSejtN1LyE7xONTFvJCdDoh9vK9RO_P7L2g,34077
|
35
35
|
squad/ci/backend/null.py,sha256=oZx3OofUKSuLOYS_GZkteGaD6JOEEkdknVmi4_cxDOQ,5645
|
36
|
-
squad/ci/backend/tuxsuite.py,sha256=
|
36
|
+
squad/ci/backend/tuxsuite.py,sha256=FHZMR73CbY2ocKGcsYy66FLN3zafIYVVFq5QgSZGg1Q,20010
|
37
37
|
squad/ci/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
squad/ci/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
squad/ci/management/commands/create_tuxsuite_boot_tests.py,sha256=JvjNusebLX71eyz9d-kaeCyekYSpzc1eXoeIqWK9ygo,4045
|
40
|
-
squad/ci/management/commands/listen.py,sha256=
|
40
|
+
squad/ci/management/commands/listen.py,sha256=3o0IZPeUz3D3Pd-yL-yJdYkRmSgm6mhzB8qUCt6oejU,4683
|
41
41
|
squad/ci/management/commands/testfetch.py,sha256=28vOmmpgZFhJZRmXOCZxSN0y64fpLDCrmM7oi5rewk4,1663
|
42
42
|
squad/ci/migrations/0001_initial.py,sha256=oIcEE32zdiuQkCyyily6VKnRVH8e03cYmvcxlo0iELg,2098
|
43
43
|
squad/ci/migrations/0002_auto_20170406_1252.py,sha256=rLGNiNaV737vCVKtEOWTzdH4vkVlBdwfhYkkRdD7xps,633
|
@@ -279,7 +279,7 @@ squad/core/migrations/0167_add_project_datetime.py,sha256=VUBG-qsAhh2f2NXaHOqfX9
|
|
279
279
|
squad/core/migrations/0168_add_group_settings.py,sha256=5UdylfMMNavTL0KXkjPSiEMhSisGWXbhUXQSzfK29Ck,462
|
280
280
|
squad/core/migrations/0169_userpreferences.py,sha256=FwYv9RWxMWdQ2lXJMgi-Xc6XBB5Kp-_YTAOr9GVq1To,1098
|
281
281
|
squad/core/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
282
|
-
squad/core/tasks/__init__.py,sha256=
|
282
|
+
squad/core/tasks/__init__.py,sha256=2A1X44sOA87c51kN8wns7cnQA3YqcQ4Ov3ypD368iXU,21773
|
283
283
|
squad/core/tasks/exceptions.py,sha256=n4cbmJFBdA6KWsGiTbfN9DyYGbJpk0DjR0UneEYw_W0,931
|
284
284
|
squad/core/tasks/notification.py,sha256=6ZyTbUQZPITPP-4r9MUON7x-NbwvDBG8YeabM6fsjzA,4915
|
285
285
|
squad/core/templates/squad/notification/base.jinja2,sha256=AbtQioEHV5DJBW4Etsu0-DQXd_8tQCnLejzgbDGDW7s,3413
|
@@ -436,9 +436,9 @@ squad/run/__main__.py,sha256=DOl8JOi4Yg7DdtwnUeGqtYBJ6P2k-D2psAEuYOjWr8w,66
|
|
436
436
|
squad/run/listener.py,sha256=jBeOQhPGb4EdIREB1QsCzYuumsfJ-TqJPd3nR-0m59g,200
|
437
437
|
squad/run/scheduler.py,sha256=CDJG3q5C0GuQuxwlMOfWTSSJpDdwbR6rzpbJfuA0xuw,277
|
438
438
|
squad/run/worker.py,sha256=jtML0h5qKDuSbpJ6_rpWP4MT_rsGA7a24AhwGxBquzk,594
|
439
|
-
squad-1.
|
440
|
-
squad-1.
|
441
|
-
squad-1.
|
442
|
-
squad-1.
|
443
|
-
squad-1.
|
444
|
-
squad-1.
|
439
|
+
squad-1.95.dist-info/licenses/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
|
440
|
+
squad-1.95.dist-info/METADATA,sha256=Hy1EwoLVmQ9HXWXDXQeSv1yJdHMgD6M1VgEaEzBeVsM,1536
|
441
|
+
squad-1.95.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
442
|
+
squad-1.95.dist-info/entry_points.txt,sha256=apCDQydHZtvqV334ql6NhTJUAJeZRdtAm0TVcbbAi5Q,194
|
443
|
+
squad-1.95.dist-info/top_level.txt,sha256=_x9uqE1XppiiytmVTl_qNgpnXus6Gsef69HqfliE7WI,6
|
444
|
+
squad-1.95.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|