doploy-cli 0.2.2__tar.gz → 0.2.3__tar.gz
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.
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/PKG-INFO +1 -1
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli/main.py +17 -4
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli.egg-info/PKG-INFO +1 -1
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/pyproject.toml +1 -1
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/LICENSE +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/README.md +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli/SKILL.md +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli/__init__.py +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli.egg-info/SOURCES.txt +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli.egg-info/dependency_links.txt +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli.egg-info/entry_points.txt +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli.egg-info/requires.txt +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/doploy_cli.egg-info/top_level.txt +0 -0
- {doploy_cli-0.2.2 → doploy_cli-0.2.3}/setup.cfg +0 -0
|
@@ -299,14 +299,20 @@ def cmd_tests(args):
|
|
|
299
299
|
c = data['counts']
|
|
300
300
|
print(f"build {data['build_id']} [{data['build_status']}] — "
|
|
301
301
|
f"{c['error']} errors, {c['fail']} failures, {c['warning']} warnings")
|
|
302
|
+
loader_rows = 0
|
|
302
303
|
for r in data['results']:
|
|
303
304
|
if r['error_type'] not in ('ERROR', 'FAIL') and not args.warnings:
|
|
304
305
|
continue
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
is_test = bool(r.get('test')) and r['test'] != 'Unknown'
|
|
307
|
+
if not is_test and not args.details:
|
|
308
|
+
loader_rows += 1 # module-loading summaries: only interesting with --details
|
|
309
|
+
continue
|
|
310
|
+
where = f"{r['module']}.{r['test']}" if is_test else '(module loading)'
|
|
307
311
|
print(f"\n[{r['error_type']}] {where}")
|
|
308
312
|
if args.details:
|
|
309
313
|
print(r['details'])
|
|
314
|
+
if loader_rows:
|
|
315
|
+
print(f"\n(+{loader_rows} module-loading message(s); use --details to see them)")
|
|
310
316
|
|
|
311
317
|
|
|
312
318
|
def cmd_rebuild(args):
|
|
@@ -360,8 +366,15 @@ def cmd_logs(args):
|
|
|
360
366
|
print(ln)
|
|
361
367
|
if not args.follow:
|
|
362
368
|
if args.filter:
|
|
363
|
-
|
|
364
|
-
|
|
369
|
+
searched = data.get('searched_lines')
|
|
370
|
+
total = data.get('total_lines')
|
|
371
|
+
if searched and total and total > searched:
|
|
372
|
+
scope = f"the last {searched} of {total} lines"
|
|
373
|
+
elif searched or total:
|
|
374
|
+
scope = f"all {total or searched} lines"
|
|
375
|
+
else:
|
|
376
|
+
scope = 'the recent log'
|
|
377
|
+
print(f"... ({len(shown)} matching line(s) in {scope})", file=sys.stderr)
|
|
365
378
|
elif data.get('truncated'):
|
|
366
379
|
print(f"... (showing last {len(shown)} lines; use --lines to see more)", file=sys.stderr)
|
|
367
380
|
return
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|