squad 1.94.1__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/version.py +1 -1
- {squad-1.94.1.dist-info → squad-1.95.dist-info}/METADATA +3 -2
- {squad-1.94.1.dist-info → squad-1.95.dist-info}/RECORD +9 -9
- {squad-1.94.1.dist-info → squad-1.95.dist-info}/WHEEL +1 -1
- {squad-1.94.1.dist-info → squad-1.95.dist-info}/entry_points.txt +0 -0
- {squad-1.94.1.dist-info → squad-1.95.dist-info/licenses}/COPYING +0 -0
- {squad-1.94.1.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/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
|
@@ -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
|