* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2016-12-04 8:50 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2016-12-04 8:50 UTC (permalink / raw
To: gentoo-commits
commit: cce1dfea834ae526ebbe8506fdad19cc03287730
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 3 20:56:23 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 4 08:49:47 2016 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=cce1dfea
Add pkgcheck XML output to HTML formatter scripts
pkgcheck2html/jinja2htmlcompress.py | 150 +++++++++++++++++++++++++++
pkgcheck2html/output.css | 184 ++++++++++++++++++++++++++++++++++
pkgcheck2html/output.html.jinja | 67 +++++++++++++
pkgcheck2html/pkgcheck2html.conf.json | 26 +++++
pkgcheck2html/pkgcheck2html.py | 139 +++++++++++++++++++++++++
5 files changed, 566 insertions(+)
diff --git a/pkgcheck2html/jinja2htmlcompress.py b/pkgcheck2html/jinja2htmlcompress.py
new file mode 100644
index 0000000..5dfb211
--- /dev/null
+++ b/pkgcheck2html/jinja2htmlcompress.py
@@ -0,0 +1,150 @@
+# -*- coding: utf-8 -*-
+"""
+ jinja2htmlcompress
+ ~~~~~~~~~~~~~~~~~~
+
+ A Jinja2 extension that eliminates useless whitespace at template
+ compilation time without extra overhead.
+
+ :copyright: (c) 2011 by Armin Ronacher.
+ :license: BSD, see LICENSE for more details.
+"""
+import re
+from jinja2.ext import Extension
+from jinja2.lexer import Token, describe_token
+from jinja2 import TemplateSyntaxError
+
+
+_tag_re = re.compile(r'(?:<(/?)([a-zA-Z0-9_-]+)\s*|(>\s*))(?s)')
+_ws_normalize_re = re.compile(r'[ \t\r\n]+')
+
+
+class StreamProcessContext(object):
+
+ def __init__(self, stream):
+ self.stream = stream
+ self.token = None
+ self.stack = []
+
+ def fail(self, message):
+ raise TemplateSyntaxError(message, self.token.lineno,
+ self.stream.name, self.stream.filename)
+
+
+def _make_dict_from_listing(listing):
+ rv = {}
+ for keys, value in listing:
+ for key in keys:
+ rv[key] = value
+ return rv
+
+
+class HTMLCompress(Extension):
+ isolated_elements = set(['script', 'style', 'noscript', 'textarea'])
+ void_elements = set(['br', 'img', 'area', 'hr', 'param', 'input',
+ 'embed', 'col'])
+ block_elements = set(['div', 'p', 'form', 'ul', 'ol', 'li', 'table', 'tr',
+ 'tbody', 'thead', 'tfoot', 'tr', 'td', 'th', 'dl',
+ 'dt', 'dd', 'blockquote', 'h1', 'h2', 'h3', 'h4',
+ 'h5', 'h6', 'pre'])
+ breaking_rules = _make_dict_from_listing([
+ (['p'], set(['#block'])),
+ (['li'], set(['li'])),
+ (['td', 'th'], set(['td', 'th', 'tr', 'tbody', 'thead', 'tfoot'])),
+ (['tr'], set(['tr', 'tbody', 'thead', 'tfoot'])),
+ (['thead', 'tbody', 'tfoot'], set(['thead', 'tbody', 'tfoot'])),
+ (['dd', 'dt'], set(['dl', 'dt', 'dd']))
+ ])
+
+ def is_isolated(self, stack):
+ for tag in reversed(stack):
+ if tag in self.isolated_elements:
+ return True
+ return False
+
+ def is_breaking(self, tag, other_tag):
+ breaking = self.breaking_rules.get(other_tag)
+ return breaking and (tag in breaking or
+ ('#block' in breaking and tag in self.block_elements))
+
+ def enter_tag(self, tag, ctx):
+ while ctx.stack and self.is_breaking(tag, ctx.stack[-1]):
+ self.leave_tag(ctx.stack[-1], ctx)
+ if tag not in self.void_elements:
+ ctx.stack.append(tag)
+
+ def leave_tag(self, tag, ctx):
+ if not ctx.stack:
+ ctx.fail('Tried to leave "%s" but something closed '
+ 'it already' % tag)
+ if tag == ctx.stack[-1]:
+ ctx.stack.pop()
+ return
+ for idx, other_tag in enumerate(reversed(ctx.stack)):
+ if other_tag == tag:
+ for num in xrange(idx + 1):
+ ctx.stack.pop()
+ elif not self.breaking_rules.get(other_tag):
+ break
+
+ def normalize(self, ctx):
+ pos = 0
+ buffer = []
+ def write_data(value):
+ if not self.is_isolated(ctx.stack):
+ value = _ws_normalize_re.sub(' ', value.strip())
+ buffer.append(value)
+
+ for match in _tag_re.finditer(ctx.token.value):
+ closes, tag, sole = match.groups()
+ preamble = ctx.token.value[pos:match.start()]
+ write_data(preamble)
+ if sole:
+ write_data(sole)
+ else:
+ buffer.append(match.group())
+ (closes and self.leave_tag or self.enter_tag)(tag, ctx)
+ pos = match.end()
+
+ write_data(ctx.token.value[pos:])
+ return u''.join(buffer)
+
+ def filter_stream(self, stream):
+ ctx = StreamProcessContext(stream)
+ for token in stream:
+ if token.type != 'data':
+ yield token
+ continue
+ ctx.token = token
+ value = self.normalize(ctx)
+ yield Token(token.lineno, 'data', value)
+
+
+class SelectiveHTMLCompress(HTMLCompress):
+
+ def filter_stream(self, stream):
+ ctx = StreamProcessContext(stream)
+ strip_depth = 0
+ while 1:
+ if stream.current.type == 'block_begin':
+ if stream.look().test('name:strip') or \
+ stream.look().test('name:endstrip'):
+ stream.skip()
+ if stream.current.value == 'strip':
+ strip_depth += 1
+ else:
+ strip_depth -= 1
+ if strip_depth < 0:
+ ctx.fail('Unexpected tag endstrip')
+ stream.skip()
+ if stream.current.type != 'block_end':
+ ctx.fail('expected end of block, got %s' %
+ describe_token(stream.current))
+ stream.skip()
+ if strip_depth > 0 and stream.current.type == 'data':
+ ctx.token = stream.current
+ value = self.normalize(ctx)
+ yield Token(stream.current.lineno, 'data', value)
+ else:
+ yield stream.current
+ stream.next()
diff --git a/pkgcheck2html/output.css b/pkgcheck2html/output.css
new file mode 100644
index 0000000..6888102
--- /dev/null
+++ b/pkgcheck2html/output.css
@@ -0,0 +1,184 @@
+/* (c) 2016 Michał Górny, Patrice Clement */
+/* 2-clause BSD license */
+
+*
+{
+ box-sizing: border-box;
+}
+
+body
+{
+ margin: 0;
+ background-color: #463C65;
+ font-family: sans-serif;
+ font-size: 14px;
+}
+
+address
+{
+ color: white;
+ text-align: center;
+ margin: 1em;
+}
+
+.nav
+{
+ width: 20%;
+ position: absolute;
+ top: 0;
+}
+
+.nav ul
+{
+ list-style: none;
+ margin: 0;
+ padding: 1%;
+}
+
+.nav li
+{
+ padding: 0 1em;
+ border-radius: 4px;
+ margin-bottom: .3em;
+ background-color: #62548F;
+}
+
+.nav li a
+{
+ display: block;
+ width: 100%;
+}
+
+.nav h2
+{
+ color: white;
+ text-align: center;
+ font-size: 300%;
+ font-weight: bold;
+ text-transform: uppercase;
+ font-family: serif;
+}
+
+ul.nav li.header
+{
+ background-color: #463C65;
+}
+
+.content, h1
+{
+ padding: 2%;
+ margin: 0 0 0 20%;
+ background-color: #DDDAEC;
+}
+
+h1 {
+ font-family: serif;
+ color: #23457F;
+ font-size: 400%;
+ line-height: 2em;
+ font-weight: bold;
+ text-transform: uppercase;
+ text-align: center;
+ letter-spacing: .15em;
+}
+
+th
+{
+ text-align: left;
+ padding: 1em 0;
+ color: #23457F;
+}
+
+th.h2
+{
+ font-size: 120%;
+}
+
+th.h3
+{
+ padding-left: 1em;
+ font-size: 110%;
+}
+
+th:target
+{
+ background-color: #dfd;
+}
+
+th small
+{
+ padding-left: .5em;
+ visibility: hidden;
+}
+
+th:hover small
+{
+ visibility: visible;
+}
+
+td
+{
+ background-color: white;
+ line-height: 2em;
+ font-size: 120%;
+ padding-left: .5em;
+ white-space: pre-wrap;
+}
+
+td:hover
+{
+ background-color: #eee;
+}
+
+tr.err td
+{
+ background-color: #7E0202;
+ color: white;
+}
+
+tr.err td:hover
+{
+ background-color: #DA0404;
+}
+
+tr.warn td
+{
+ background-color: orange;
+}
+
+tr.warn td:hover
+{
+ background-color: #FFBB3E;
+}
+
+.nav a
+{
+ font-size: 150%;
+ line-height: 1.5em;
+ text-decoration: none;
+ white-space: pre;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.warn a
+{
+ color: orange;
+}
+
+.err a
+{
+ color: #F06F74;
+}
+
+.nav li:hover
+{
+ min-width: 100%;
+ width: -moz-max-content;
+ width: max-content;
+}
+
+.nav a:hover
+{
+ color: white;
+}
diff --git a/pkgcheck2html/output.html.jinja b/pkgcheck2html/output.html.jinja
new file mode 100644
index 0000000..2e44619
--- /dev/null
+++ b/pkgcheck2html/output.html.jinja
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ <title>Gentoo CI - QA check results</title>
+ <link rel="stylesheet" type="text/css" href="output.css" />
+ </head>
+
+ <body>
+ <h1>QA check results</h1>
+
+ {% if errors or warnings %}
+ <div class="nav">
+ <h2>issues</h2>
+
+ <ul>
+ {% for g in errors %}
+ <li class="err"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
+ {% endfor %}
+ {% for g in warnings %}
+ <li class="warn"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+
+ <div class="content">
+ <table>
+ {% for g, r in results %}
+ {% set h2_id = g[0] if g else "global" %}
+ <tr><th colspan="3" class="h2" id="{{ h2_id }}">
+ {{ g[0] if g else "Global-scope results" }}
+ <small><a href="#{{ h2_id }}">¶</a></small>
+ </th></tr>
+
+ {% for g, r in r %}
+ {% if g[0] %}
+ {% set h3_id = g[0] + "/" + g[1] if g[1] else "_cat" %}
+ <tr><th colspan="3" class="h3" id="{{ h3_id }}">
+ {{ g[1] if g[1] else "Category results" }}
+ <small><a href="#{{ h3_id }}">¶</a></small>
+ </th></tr>
+ {% endif %}
+
+ {% for g, r in r %}
+ {% for rx in r %}
+ {% set class_str = "" %}
+ {% if rx.css_class %}
+ {% set class_str = ' class="' + rx.css_class + '"' %}
+ {% endif %}
+ <tr{{ class_str }}>
+ <td>{{ g[2] if loop.index == 1 else "" }}</td>
+ <td>{{ rx.class }}</td>
+ <td>{{ rx.msg|escape }}</td>
+ </tr>
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
+ </table>
+ </div>
+
+ <address>Generated based on results from: {{ ts.strftime("%F %T UTC") }}</address>
+ </body>
+</html>
+
+<!-- vim:se ft=jinja : -->
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
new file mode 100644
index 0000000..f9c597e
--- /dev/null
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -0,0 +1,26 @@
+{
+ "CatMetadataXmlInvalidPkgRef": "err",
+ "VisibleVcsPkg": "err",
+ "MissingUri": "warn",
+ "CatBadlyFormedXml": "err",
+ "Glep31Violation": "err",
+ "PkgBadlyFormedXml": "err",
+ "CatInvalidXml": "err",
+ "CatMetadataXmlInvalidCatRef": "err",
+ "PkgMetadataXmlInvalidCatRef": "err",
+ "ConflictingChksums": "err",
+ "MissingChksum": "warn",
+ "MissingManifest": "err",
+ "CrappyDescription": "warn",
+ "PkgMetadataXmlInvalidPkgRef": "err",
+ "PkgMetadataXmlInvalidProjectError": "err",
+ "PkgInvalidXml": "err",
+ "NonsolvableDeps": "err",
+ "UnusedLocalFlags": "err",
+ "MetadataLoadError": "err",
+ "UnknownManifest": "err",
+ "NoFinalNewline": "err",
+ "UnstatedIUSE": "err",
+ "MetadataError": "err",
+ "WrongIndentFound": "err"
+}
diff --git a/pkgcheck2html/pkgcheck2html.py b/pkgcheck2html/pkgcheck2html.py
new file mode 100755
index 0000000..466d8c1
--- /dev/null
+++ b/pkgcheck2html/pkgcheck2html.py
@@ -0,0 +1,139 @@
+#!/usr/bin/env python
+# vim:se fileencoding=utf8 :
+# (c) 2015-2016 Michał Górny
+# 2-clause BSD license
+
+import argparse
+import datetime
+import io
+import json
+import os
+import os.path
+import sys
+import xml.etree.ElementTree
+
+import jinja2
+
+
+class Result(object):
+ def __init__(self, el, class_mapping):
+ self._el = el
+ self._class_mapping = class_mapping
+
+ def __getattr__(self, key):
+ return self._el.findtext(key) or ''
+
+ @property
+ def css_class(self):
+ return self._class_mapping.get(getattr(self, 'class'), '')
+
+
+def result_sort_key(r):
+ return (r.category, r.package, r.version, getattr(r, 'class'), r.msg)
+
+
+def get_results(input_paths, class_mapping):
+ for input_path in input_paths:
+ checks = xml.etree.ElementTree.parse(input_path).getroot()
+ for r in checks:
+ yield Result(r, class_mapping)
+
+
+def split_result_group(it):
+ for r in it:
+ if not r.category:
+ yield ((), r)
+ elif not r.package:
+ yield ((r.category,), r)
+ elif not r.version:
+ yield ((r.category, r.package), r)
+ else:
+ yield ((r.category, r.package, r.version), r)
+
+
+def group_results(it, level = 3):
+ prev_group = ()
+ prev_l = []
+
+ for g, r in split_result_group(it):
+ if g[:level] != prev_group:
+ if prev_l:
+ yield (prev_group, prev_l)
+ prev_group = g[:level]
+ prev_l = []
+ prev_l.append(r)
+ yield (prev_group, prev_l)
+
+
+def deep_group(it, level = 1):
+ for g, r in group_results(it, level):
+ if level > 3:
+ for x in r:
+ yield x
+ else:
+ yield (g, deep_group(r, level+1))
+
+
+def find_of_class(it, cls, level = 2):
+ for g, r in group_results(it, level):
+ for x in r:
+ if x.css_class == cls:
+ yield g
+ break
+
+
+def get_result_timestamp(paths):
+ for p in paths:
+ st = os.stat(p)
+ return datetime.datetime.utcfromtimestamp(st.st_mtime)
+
+
+def main(*args):
+ p = argparse.ArgumentParser()
+ p.add_argument('-o', '--output', default='-',
+ help='Output HTML file ("-" for stdout)')
+ p.add_argument('-t', '--timestamp', default=None,
+ help='Timestamp for results (git ISO8601-like UTC)')
+ p.add_argument('files', nargs='+',
+ help='Input XML files')
+ args = p.parse_args(args)
+
+ conf_path = os.path.join(os.path.dirname(__file__), 'pkgcheck2html.conf.json')
+ with io.open(conf_path, 'r', encoding='utf8') as f:
+ class_mapping = json.load(f)
+
+ jenv = jinja2.Environment(
+ loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
+ extensions=['jinja2htmlcompress.HTMLCompress'])
+ t = jenv.get_template('output.html.jinja')
+
+ results = sorted(get_results(args.files, class_mapping), key=result_sort_key)
+
+ types = {}
+ for r in results:
+ cl = getattr(r, 'class')
+ if cl not in types:
+ types[cl] = 0
+ types[cl] += 1
+
+ if args.timestamp is not None:
+ ts = datetime.datetime.strptime(args.timestamp, '%Y-%m-%d %H:%M:%S')
+ else:
+ ts = get_result_timestamp(args.files)
+
+ out = t.render(
+ results = deep_group(results),
+ warnings = list(find_of_class(results, 'warn')),
+ errors = list(find_of_class(results, 'err')),
+ ts = ts,
+ )
+
+ if args.output == '-':
+ sys.stdout.write(out)
+ else:
+ with io.open(args.output, 'w', encoding='utf8') as f:
+ f.write(out)
+
+
+if __name__ == '__main__':
+ sys.exit(main(*sys.argv[1:]))
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2016-12-04 8:53 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2016-12-04 8:53 UTC (permalink / raw
To: gentoo-commits
commit: 61fc15ef48b0ffdabe101bb90a786600a6d56e1a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 4 08:53:29 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 4 08:53:29 2016 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=61fc15ef
pkgcheck2html: Add stdin support
pkgcheck2html/pkgcheck2html.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkgcheck2html/pkgcheck2html.py b/pkgcheck2html/pkgcheck2html.py
index 466d8c1..44a9c2b 100755
--- a/pkgcheck2html/pkgcheck2html.py
+++ b/pkgcheck2html/pkgcheck2html.py
@@ -34,6 +34,8 @@ def result_sort_key(r):
def get_results(input_paths, class_mapping):
for input_path in input_paths:
+ if input_path == '-':
+ input_path = sys.stdin
checks = xml.etree.ElementTree.parse(input_path).getroot()
for r in checks:
yield Result(r, class_mapping)
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-01-14 16:25 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-01-14 16:25 UTC (permalink / raw
To: gentoo-commits
commit: 8c104c01366a741028bfc99d887cbee3c979222a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 14 16:25:22 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 14 16:25:56 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8c104c01
pkgcheck: Make UnknownLicenses issue fatal
pkgcheck2html/pkgcheck2html.conf.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index f9c597e..f05b34f 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -22,5 +22,6 @@
"NoFinalNewline": "err",
"UnstatedIUSE": "err",
"MetadataError": "err",
- "WrongIndentFound": "err"
+ "WrongIndentFound": "err",
+ "UnknownLicenses": "err"
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-01-27 20:09 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-01-27 20:09 UTC (permalink / raw
To: gentoo-commits
commit: 367a75c7bfc5c85731436ae4a471b1a46083e31b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 27 20:09:03 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 20:09:03 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=367a75c7
pkgcheck: Make UnnecessaryManifest fatal
pkgcheck2html/pkgcheck2html.conf.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index f05b34f..a701cf9 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -23,5 +23,6 @@
"UnstatedIUSE": "err",
"MetadataError": "err",
"WrongIndentFound": "err",
- "UnknownLicenses": "err"
+ "UnknownLicenses": "err",
+ "UnnecessaryManifest": "err"
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-03-04 10:25 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-03-04 10:25 UTC (permalink / raw
To: gentoo-commits
commit: c4ba04673d5eb3fb9db6ca6d72b69b91f4ffce18
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 4 10:24:49 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar 4 10:24:49 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=c4ba0467
pkgcheck2html: Make MissingLicense fatal
pkgcheck2html/pkgcheck2html.conf.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index a701cf9..d9b7edc 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -24,5 +24,6 @@
"MetadataError": "err",
"WrongIndentFound": "err",
"UnknownLicenses": "err",
- "UnnecessaryManifest": "err"
+ "UnnecessaryManifest": "err",
+ "MissingLicense": "err"
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-05-11 12:12 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-05-11 12:12 UTC (permalink / raw
To: gentoo-commits
commit: d3eb0f2aea8396a3d436fb1e96d5c77d7a66e5e7
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 11 12:12:30 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 11 12:12:30 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d3eb0f2a
pkgcheck2html.conf.json: Include more errors
pkgcheck2html/pkgcheck2html.conf.json | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index d9b7edc..91410a9 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -25,5 +25,7 @@
"WrongIndentFound": "err",
"UnknownLicenses": "err",
"UnnecessaryManifest": "err",
- "MissingLicense": "err"
+ "MissingLicense": "err",
+ "UnknownCategories": "err",
+ "PkgMissingMetadataXml": "err"
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-05-13 9:53 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-05-13 9:53 UTC (permalink / raw
To: gentoo-commits
commit: 966ad972586ef4e18fe1cecab2854e4889e4a303
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 13 09:53:46 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 13 09:53:46 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=966ad972
pkgcheck2html: Make empty line reports fatal
pkgcheck2html/pkgcheck2html.conf.json | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 91410a9..459ed9a 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -27,5 +27,7 @@
"UnnecessaryManifest": "err",
"MissingLicense": "err",
"UnknownCategories": "err",
- "PkgMissingMetadataXml": "err"
+ "PkgMissingMetadataXml": "err",
+ "DoubleEmptyLine": "err",
+ "TrailingEmptyLine": "err"
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-05-14 6:53 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-05-14 6:53 UTC (permalink / raw
To: gentoo-commits
commit: 40ba8a426a459d3e9e14134d50456f35023f10b5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 14 06:51:46 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 14 06:53:01 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=40ba8a42
pkgcheck2html.conf: Ignore MissingUri due to false positives
pkgcheck2html/pkgcheck2html.conf.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 459ed9a..20efb3f 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -1,7 +1,7 @@
{
"CatMetadataXmlInvalidPkgRef": "err",
"VisibleVcsPkg": "err",
- "MissingUri": "warn",
+ "-- MissingUri": "warn",
"CatBadlyFormedXml": "err",
"Glep31Violation": "err",
"PkgBadlyFormedXml": "err",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-05-30 21:48 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-05-30 21:48 UTC (permalink / raw
To: gentoo-commits
commit: 9e99bfdf667fb788b1391ccc75c44dc719ef486a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 30 21:48:35 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 30 21:48:35 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=9e99bfdf
pkgcheck2html: Sync with upstream
pkgcheck2html/pkgcheck2html.conf.json | 93 +++++++++++++++++++++++------------
1 file changed, 62 insertions(+), 31 deletions(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 20efb3f..590c8ff 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -1,33 +1,64 @@
{
- "CatMetadataXmlInvalidPkgRef": "err",
- "VisibleVcsPkg": "err",
- "-- MissingUri": "warn",
- "CatBadlyFormedXml": "err",
- "Glep31Violation": "err",
- "PkgBadlyFormedXml": "err",
- "CatInvalidXml": "err",
- "CatMetadataXmlInvalidCatRef": "err",
- "PkgMetadataXmlInvalidCatRef": "err",
- "ConflictingChksums": "err",
- "MissingChksum": "warn",
- "MissingManifest": "err",
- "CrappyDescription": "warn",
- "PkgMetadataXmlInvalidPkgRef": "err",
- "PkgMetadataXmlInvalidProjectError": "err",
- "PkgInvalidXml": "err",
- "NonsolvableDeps": "err",
- "UnusedLocalFlags": "err",
- "MetadataLoadError": "err",
- "UnknownManifest": "err",
- "NoFinalNewline": "err",
- "UnstatedIUSE": "err",
- "MetadataError": "err",
- "WrongIndentFound": "err",
- "UnknownLicenses": "err",
- "UnnecessaryManifest": "err",
- "MissingLicense": "err",
- "UnknownCategories": "err",
- "PkgMissingMetadataXml": "err",
- "DoubleEmptyLine": "err",
- "TrailingEmptyLine": "err"
+ "ArchesWithoutProfiles": "",
+ "BadFilename": "warn",
+ "BadInsIntoDir": "",
+ "BadProto": "err",
+ "BadRestricts": "",
+ "CatBadlyFormedXml": "err",
+ "CatInvalidXml": "err",
+ "CatMetadataXmlInvalidCatRef": "err",
+ "CatMetadataXmlInvalidPkgRef": "err",
+ "CatMissingMetadataXml": "warn",
+ "ConflictingChksums": "err",
+ "CrappyDescription": "warn",
+ "DeprecatedEAPI": "",
+ "DeprecatedEclass": "",
+ "DoubleEmptyLine": "warn",
+ "DroppedKeywords": "",
+ "ExecutableFile": "",
+ "Glep31Violation": "warn",
+ "InvalidPN": "err",
+ "InvalidUtf8": "err",
+ "LaggingStable": "",
+ "MetadataError": "err",
+ "MismatchedPN": "warn",
+ "MissingChksum": "warn",
+ "MissingLicense": "err",
+ "MissingManifest": "err",
+ "MissingSlotDep": "",
+ "MissingUri": "",
+ "NoFinalNewline": "warn",
+ "NonExistentDeps": "",
+ "NonexistentProfilePath": "err",
+ "NonsolvableDeps": "err",
+ "PkgBadlyFormedXml": "err",
+ "PkgInvalidXml": "err",
+ "PkgMetadataXmlInvalidCatRef": "err",
+ "PkgMetadataXmlInvalidPkgRef": "err",
+ "PkgMetadataXmlInvalidProjectError": "err",
+ "PkgMissingMetadataXml": "err",
+ "RedundantVersion": "",
+ "RequiredUseDefaults": "",
+ "SizeViolation": "",
+ "StaleUnstable": "",
+ "StupidKeywords": "warn",
+ "TrailingEmptyLine": "warn",
+ "UnknownCategories": "err",
+ "UnknownLicenses": "err",
+ "UnknownManifest": "err",
+ "UnknownProfileArches": "",
+ "UnknownProfileStatus": "",
+ "UnnecessaryManifest": "warn",
+ "UnstableOnly": "",
+ "UnstatedIUSE": "err",
+ "UnusedEclasses": "",
+ "UnusedGlobalFlags": "",
+ "UnusedLicenses": "",
+ "UnusedLocalFlags": "warn",
+ "UnusedMirrors": "",
+ "UnusedProfileDirs": "",
+ "VisibleVcsPkg": "err",
+ "VulnerablePackage": "",
+ "WhitespaceFound": "",
+ "WrongIndentFound": "warn"
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-06-19 16:14 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-06-19 16:14 UTC (permalink / raw
To: gentoo-commits
commit: 65856dea6ad5fb1d2769ed5e674b7d1420b8bbbd
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 19 16:13:08 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jun 19 16:14:06 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=65856dea
pkgcheck2html: Enable warning on EmptyFile
pkgcheck2html/pkgcheck2html.conf.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 590c8ff..e68c852 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -15,6 +15,7 @@
"DeprecatedEclass": "",
"DoubleEmptyLine": "warn",
"DroppedKeywords": "",
+ "EmptyFile": "warn",
"ExecutableFile": "",
"Glep31Violation": "warn",
"InvalidPN": "err",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-06-19 18:45 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-06-19 18:45 UTC (permalink / raw
To: gentoo-commits
commit: 795ad0b4f01bbb95f3e802a1699f4eb02ea3036a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 19 18:44:33 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jun 19 18:45:15 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=795ad0b4
conf: Warn about ComplexRequiredUse
pkgcheck2html/pkgcheck2html.conf.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index e68c852..9b5a705 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -9,6 +9,7 @@
"CatMetadataXmlInvalidCatRef": "err",
"CatMetadataXmlInvalidPkgRef": "err",
"CatMissingMetadataXml": "warn",
+ "ComplexRequiredUse": "warn",
"ConflictingChksums": "err",
"CrappyDescription": "warn",
"DeprecatedEAPI": "",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-07-05 11:28 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-07-05 11:28 UTC (permalink / raw
To: gentoo-commits
commit: cfcf5be0e34a4d70ed3b81492c12f00621e9272f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 5 11:26:46 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 5 11:28:28 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=cfcf5be0
pkgcheck2html: Degrade metadata.xml issues to warn
pkgcheck2html/pkgcheck2html.conf.json | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 9b5a705..ed0fc30 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -4,10 +4,10 @@
"BadInsIntoDir": "",
"BadProto": "err",
"BadRestricts": "",
- "CatBadlyFormedXml": "err",
- "CatInvalidXml": "err",
- "CatMetadataXmlInvalidCatRef": "err",
- "CatMetadataXmlInvalidPkgRef": "err",
+ "CatBadlyFormedXml": "warn",
+ "CatInvalidXml": "warn",
+ "CatMetadataXmlInvalidCatRef": "warn",
+ "CatMetadataXmlInvalidPkgRef": "warn",
"CatMissingMetadataXml": "warn",
"ComplexRequiredUse": "warn",
"ConflictingChksums": "err",
@@ -33,12 +33,12 @@
"NonExistentDeps": "",
"NonexistentProfilePath": "err",
"NonsolvableDeps": "err",
- "PkgBadlyFormedXml": "err",
- "PkgInvalidXml": "err",
- "PkgMetadataXmlInvalidCatRef": "err",
- "PkgMetadataXmlInvalidPkgRef": "err",
- "PkgMetadataXmlInvalidProjectError": "err",
- "PkgMissingMetadataXml": "err",
+ "PkgBadlyFormedXml": "warn",
+ "PkgInvalidXml": "warn",
+ "PkgMetadataXmlInvalidCatRef": "warn",
+ "PkgMetadataXmlInvalidPkgRef": "warn",
+ "PkgMetadataXmlInvalidProjectError": "warn",
+ "PkgMissingMetadataXml": "warn",
"RedundantVersion": "",
"RequiredUseDefaults": "",
"SizeViolation": "",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-08-04 21:50 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-08-04 21:50 UTC (permalink / raw
To: gentoo-commits
commit: fa2a8d953bf059ab933202d58371f91a4d666882
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 4 21:50:07 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 4 21:50:07 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=fa2a8d95
pkgcheck2html: Start enabling GLEP73 warnings
pkgcheck2html/pkgcheck2html.conf.json | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index ed0fc30..de4384d 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -9,7 +9,6 @@
"CatMetadataXmlInvalidCatRef": "warn",
"CatMetadataXmlInvalidPkgRef": "warn",
"CatMissingMetadataXml": "warn",
- "ComplexRequiredUse": "warn",
"ConflictingChksums": "err",
"CrappyDescription": "warn",
"DeprecatedEAPI": "",
@@ -18,6 +17,11 @@
"DroppedKeywords": "",
"EmptyFile": "warn",
"ExecutableFile": "",
+ "GLEP73BackAlteration": "",
+ "GLEP73Conflict": "",
+ "GLEP73Immutability": "",
+ "GLEP73SelfConflicting": "warn",
+ "GLEP73Syntax": "warn",
"Glep31Violation": "warn",
"InvalidPN": "err",
"InvalidUtf8": "err",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-08-08 21:33 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-08-08 21:33 UTC (permalink / raw
To: gentoo-commits
commit: bbaef4313cbf7c962b957410535e1efadfc65b64
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 8 21:33:03 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 8 21:33:03 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=bbaef431
pkgcheck2html.conf.json: Make GLEP73Immutability a warning
pkgcheck2html/pkgcheck2html.conf.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index de4384d..7e11ace 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -19,7 +19,7 @@
"ExecutableFile": "",
"GLEP73BackAlteration": "",
"GLEP73Conflict": "",
- "GLEP73Immutability": "",
+ "GLEP73Immutability": "warn",
"GLEP73SelfConflicting": "warn",
"GLEP73Syntax": "warn",
"Glep31Violation": "warn",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-09-03 20:04 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-09-03 20:04 UTC (permalink / raw
To: gentoo-commits
commit: 6ce52dec95f06fc49ebd863a4b5aa960b228f91f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 3 20:03:27 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 3 20:04:28 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6ce52dec
Update results, err/warn on bad package moves
pkgcheck2html/pkgcheck2html.conf.json | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 7e11ace..8d8aabf 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -1,11 +1,14 @@
{
+ "AbsoluteSymlink": "",
"ArchesWithoutProfiles": "",
"BadFilename": "warn",
"BadInsIntoDir": "",
+ "BadPackageUpdate": "err",
"BadProto": "err",
"BadRestricts": "",
"CatBadlyFormedXml": "warn",
"CatInvalidXml": "warn",
+ "CatMetadataXmlIndentation": "",
"CatMetadataXmlInvalidCatRef": "warn",
"CatMetadataXmlInvalidPkgRef": "warn",
"CatMissingMetadataXml": "warn",
@@ -15,6 +18,7 @@
"DeprecatedEclass": "",
"DoubleEmptyLine": "warn",
"DroppedKeywords": "",
+ "DuplicateFiles": "",
"EmptyFile": "warn",
"ExecutableFile": "",
"GLEP73BackAlteration": "",
@@ -33,12 +37,16 @@
"MissingManifest": "err",
"MissingSlotDep": "",
"MissingUri": "",
+ "MovedPackageUpdate": "err",
+ "MultiMovePackageUpdate": "warn",
"NoFinalNewline": "warn",
"NonExistentDeps": "",
"NonexistentProfilePath": "err",
"NonsolvableDeps": "err",
+ "OldPackageUpdate": "warn",
"PkgBadlyFormedXml": "warn",
"PkgInvalidXml": "warn",
+ "PkgMetadataXmlIndentation": "",
"PkgMetadataXmlInvalidCatRef": "warn",
"PkgMetadataXmlInvalidPkgRef": "warn",
"PkgMetadataXmlInvalidProjectError": "warn",
@@ -59,6 +67,10 @@
"UnstatedIUSE": "err",
"UnusedEclasses": "",
"UnusedGlobalFlags": "",
+ "UnusedInMastersEclasses": "",
+ "UnusedInMastersGlobalFlags": "",
+ "UnusedInMastersLicenses": "",
+ "UnusedInMastersMirrors": "",
"UnusedLicenses": "",
"UnusedLocalFlags": "warn",
"UnusedMirrors": "",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-10-02 14:54 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-10-02 14:54 UTC (permalink / raw
To: gentoo-commits
commit: 7c0ec99f0284de9f6692c93361737697218efda6
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 2 14:48:21 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 2 14:54:33 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7c0ec99f
pkgcheck2html: Support staging class warnings
pkgcheck2html/output.html.jinja | 5 ++++-
pkgcheck2html/pkgcheck2html.py | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/pkgcheck2html/output.html.jinja b/pkgcheck2html/output.html.jinja
index e04d27e..f8d6bf5 100644
--- a/pkgcheck2html/output.html.jinja
+++ b/pkgcheck2html/output.html.jinja
@@ -9,7 +9,7 @@
<body>
<h1>QA check results</h1>
- {% if errors or warnings %}
+ {% if errors or warnings or staging %}
<div class="nav">
<h2>issues</h2>
@@ -20,6 +20,9 @@
{% for g in warnings %}
<li class="warn"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
{% endfor %}
+ {% for g in staging %}
+ <li class="staging"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
+ {% endfor %}
</ul>
</div>
{% endif %}
diff --git a/pkgcheck2html/pkgcheck2html.py b/pkgcheck2html/pkgcheck2html.py
index 44a9c2b..da5dee5 100755
--- a/pkgcheck2html/pkgcheck2html.py
+++ b/pkgcheck2html/pkgcheck2html.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# vim:se fileencoding=utf8 :
-# (c) 2015-2016 Michał Górny
+# (c) 2015-2017 Michał Górny
# 2-clause BSD license
import argparse
@@ -126,6 +126,7 @@ def main(*args):
out = t.render(
results = deep_group(results),
warnings = list(find_of_class(results, 'warn')),
+ staging = list(find_of_class(results, 'staging')),
errors = list(find_of_class(results, 'err')),
ts = ts,
)
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-10-02 14:54 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-10-02 14:54 UTC (permalink / raw
To: gentoo-commits
commit: 80c1253392e259e8637ec73677d16c2fca2ea360
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 2 14:48:44 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 2 14:54:33 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=80c12533
pkgcheck2html.conf.json: make SizeViolation staging
pkgcheck2html/pkgcheck2html.conf.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 8d8aabf..2c9d590 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -53,7 +53,7 @@
"PkgMissingMetadataXml": "warn",
"RedundantVersion": "",
"RequiredUseDefaults": "",
- "SizeViolation": "",
+ "SizeViolation": "staging",
"StaleUnstable": "",
"StupidKeywords": "warn",
"TrailingEmptyLine": "warn",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-10-02 15:26 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-10-02 15:26 UTC (permalink / raw
To: gentoo-commits
commit: 6fff91a8b6c4699527b8555b834b1bb291e32873
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 2 15:26:36 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 2 15:26:36 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6fff91a8
pkgcheck2html.conf: Update for new pkgcheck version
pkgcheck2html/pkgcheck2html.conf.json | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 2c9d590..77f4d8e 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -4,10 +4,12 @@
"BadFilename": "warn",
"BadInsIntoDir": "",
"BadPackageUpdate": "err",
+ "BadProfileEntry": "",
"BadProto": "err",
"BadRestricts": "",
"CatBadlyFormedXml": "warn",
"CatInvalidXml": "warn",
+ "CatMetadataXmlEmptyElement": "",
"CatMetadataXmlIndentation": "",
"CatMetadataXmlInvalidCatRef": "warn",
"CatMetadataXmlInvalidPkgRef": "warn",
@@ -27,6 +29,7 @@
"GLEP73SelfConflicting": "warn",
"GLEP73Syntax": "warn",
"Glep31Violation": "warn",
+ "HttpsAvailable": "",
"InvalidPN": "err",
"InvalidUtf8": "err",
"LaggingStable": "",
@@ -43,14 +46,17 @@
"NonExistentDeps": "",
"NonexistentProfilePath": "err",
"NonsolvableDeps": "err",
+ "OldMultiMovePackageUpdate": "",
"OldPackageUpdate": "warn",
"PkgBadlyFormedXml": "warn",
"PkgInvalidXml": "warn",
+ "PkgMetadataXmlEmptyElement": "",
"PkgMetadataXmlIndentation": "",
"PkgMetadataXmlInvalidCatRef": "warn",
"PkgMetadataXmlInvalidPkgRef": "warn",
- "PkgMetadataXmlInvalidProjectError": "warn",
+ "PkgMetadataXmlInvalidProject": "warn",
"PkgMissingMetadataXml": "warn",
+ "PortageInternals": "",
"RedundantVersion": "",
"RequiredUseDefaults": "",
"SizeViolation": "staging",
@@ -61,7 +67,10 @@
"UnknownLicenses": "err",
"UnknownManifest": "err",
"UnknownProfileArches": "",
+ "UnknownProfilePackageUse": "",
+ "UnknownProfilePackages": "",
"UnknownProfileStatus": "",
+ "UnknownProfileUse": "",
"UnnecessaryManifest": "warn",
"UnstableOnly": "",
"UnstatedIUSE": "err",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-10-04 8:44 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-10-04 8:44 UTC (permalink / raw
To: gentoo-commits
commit: 6967c0eb637b849a20352042da803bdeeaac1600
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 4 08:43:54 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 4 08:43:57 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6967c0eb
pkgcheck2html.conf.json: Enable staging for empty metadata.xml els
pkgcheck2html/pkgcheck2html.conf.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 77f4d8e..91ab448 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -9,7 +9,7 @@
"BadRestricts": "",
"CatBadlyFormedXml": "warn",
"CatInvalidXml": "warn",
- "CatMetadataXmlEmptyElement": "",
+ "CatMetadataXmlEmptyElement": "warn",
"CatMetadataXmlIndentation": "",
"CatMetadataXmlInvalidCatRef": "warn",
"CatMetadataXmlInvalidPkgRef": "warn",
@@ -50,7 +50,7 @@
"OldPackageUpdate": "warn",
"PkgBadlyFormedXml": "warn",
"PkgInvalidXml": "warn",
- "PkgMetadataXmlEmptyElement": "",
+ "PkgMetadataXmlEmptyElement": "staging",
"PkgMetadataXmlIndentation": "",
"PkgMetadataXmlInvalidCatRef": "warn",
"PkgMetadataXmlInvalidPkgRef": "warn",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-12-12 7:58 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-12-12 7:58 UTC (permalink / raw
To: gentoo-commits
commit: 1c157e943d9c985a5a3d925fe12e71bd8f7eb608
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 12 07:58:18 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec 12 07:58:18 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1c157e94
pkgcheck2html: MissingChksum is staging
pkgcheck2html/pkgcheck2html.conf.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 91ab448..46af4a4 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -35,7 +35,7 @@
"LaggingStable": "",
"MetadataError": "err",
"MismatchedPN": "warn",
- "MissingChksum": "warn",
+ "MissingChksum": "staging",
"MissingLicense": "err",
"MissingManifest": "err",
"MissingSlotDep": "",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-12-17 9:30 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-12-17 9:30 UTC (permalink / raw
To: gentoo-commits
commit: 8e52a5aa69f44a3ebaefec25fd6eb6ce9855285a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 17 09:30:40 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 17 09:30:40 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8e52a5aa
Sync pkgcheck2html.conf.json
pkgcheck2html/pkgcheck2html.conf.json | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 46af4a4..953fbc8 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -18,6 +18,7 @@
"CrappyDescription": "warn",
"DeprecatedEAPI": "",
"DeprecatedEclass": "",
+ "DirectorySizeViolation": "warn",
"DoubleEmptyLine": "warn",
"DroppedKeywords": "",
"DuplicateFiles": "",
@@ -30,6 +31,7 @@
"GLEP73Syntax": "warn",
"Glep31Violation": "warn",
"HttpsAvailable": "",
+ "InvalidKeywords": "err",
"InvalidPN": "err",
"InvalidUtf8": "err",
"LaggingStable": "",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-12-17 9:32 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-12-17 9:32 UTC (permalink / raw
To: gentoo-commits
commit: be3eb21558d0e98ee5400403aeafa3b16a79c581
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 17 09:31:48 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 17 09:31:48 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=be3eb215
pkgcheck2html: DirectorySizeViolation is actually staging
pkgcheck2html/pkgcheck2html.conf.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 953fbc8..deda713 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -18,7 +18,7 @@
"CrappyDescription": "warn",
"DeprecatedEAPI": "",
"DeprecatedEclass": "",
- "DirectorySizeViolation": "warn",
+ "DirectorySizeViolation": "staging",
"DoubleEmptyLine": "warn",
"DroppedKeywords": "",
"DuplicateFiles": "",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-12-17 10:51 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-12-17 10:51 UTC (permalink / raw
To: gentoo-commits
commit: 89bd414fe8cfb1c469f59dc7bc3f2e161055d22b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 17 10:50:37 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 17 10:51:06 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=89bd414f
pkgcheck2html: Add DeprecatedChksum
pkgcheck2html/pkgcheck2html.conf.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index deda713..853526e 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -16,6 +16,7 @@
"CatMissingMetadataXml": "warn",
"ConflictingChksums": "err",
"CrappyDescription": "warn",
+ "DeprecatedChksum": "staging",
"DeprecatedEAPI": "",
"DeprecatedEclass": "",
"DirectorySizeViolation": "staging",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-12-18 15:41 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-12-18 15:41 UTC (permalink / raw
To: gentoo-commits
commit: 77851020aa3f7d242cd72b8ef5d82545ba1470a1
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 18 15:41:01 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 18 15:41:01 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=77851020
pkgcheck2html: Fix template for errors & warnings
pkgcheck2html/output.html.jinja | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgcheck2html/output.html.jinja b/pkgcheck2html/output.html.jinja
index 80c5167..a18408c 100644
--- a/pkgcheck2html/output.html.jinja
+++ b/pkgcheck2html/output.html.jinja
@@ -17,13 +17,13 @@
{% for g, pkgs in errors %}
<li class="err heading">{{ g }}</li>
{% for pkg in pkgs %}
- <li class="err"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
+ <li class="err"><a href="#{{ pkg|join('/') }}">{{ pkg|join('/') }}</a></li>
{% endfor %}
{% endfor %}
{% for g, pkgs in warnings %}
<li class="warn heading">{{ g }}</li>
{% for pkg in pkgs %}
- <li class="warn"><a href="#{{ g|join('/') }}">{{ g|join('/') }}</a></li>
+ <li class="warn"><a href="#{{ pkg|join('/') }}">{{ pkg|join('/') }}</a></li>
{% endfor %}
{% endfor %}
{% for g, pkgs in staging %}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2017-12-22 22:28 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-12-22 22:28 UTC (permalink / raw
To: gentoo-commits
commit: 180dd0ce583d9b927cb5039b17208ea7c1764b0f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 22 22:27:51 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 22:27:51 2017 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=180dd0ce
pkgcheck2html: Sync config
pkgcheck2html/pkgcheck2html.conf.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 853526e..83e1f83 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -19,7 +19,7 @@
"DeprecatedChksum": "staging",
"DeprecatedEAPI": "",
"DeprecatedEclass": "",
- "DirectorySizeViolation": "staging",
+ "DirectorySizeViolation": "",
"DoubleEmptyLine": "warn",
"DroppedKeywords": "",
"DuplicateFiles": "",
@@ -62,7 +62,7 @@
"PortageInternals": "",
"RedundantVersion": "",
"RequiredUseDefaults": "",
- "SizeViolation": "staging",
+ "SizeViolation": "",
"StaleUnstable": "",
"StupidKeywords": "warn",
"TrailingEmptyLine": "warn",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2018-01-06 19:16 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2018-01-06 19:16 UTC (permalink / raw
To: gentoo-commits
commit: 0c0964c51ee0f1bc0bd99369f47aa8e684214afb
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 6 19:16:27 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 6 19:16:40 2018 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0c0964c5
pkgcheck2html: Sync conf
pkgcheck2html/pkgcheck2html.conf.json | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index 83e1f83..de1a184 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -49,6 +49,9 @@
"NonExistentDeps": "",
"NonexistentProfilePath": "err",
"NonsolvableDeps": "err",
+ "NonsolvableDepsInDev": "staging",
+ "NonsolvableDepsInExp": "staging",
+ "NonsolvableDepsInStable": "err",
"OldMultiMovePackageUpdate": "",
"OldPackageUpdate": "warn",
"PkgBadlyFormedXml": "warn",
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/
@ 2018-04-15 6:54 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2018-04-15 6:54 UTC (permalink / raw
To: gentoo-commits
commit: 1e095ee2257a81ded53d72bf2582729eab2f768d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 15 06:53:37 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 15 06:54:00 2018 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1e095ee2
pkgcheck: PkgMetadataXmlEmptyElement -> warn
pkgcheck2html/pkgcheck2html.conf.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgcheck2html/pkgcheck2html.conf.json b/pkgcheck2html/pkgcheck2html.conf.json
index de1a184..99b54bb 100644
--- a/pkgcheck2html/pkgcheck2html.conf.json
+++ b/pkgcheck2html/pkgcheck2html.conf.json
@@ -56,7 +56,7 @@
"OldPackageUpdate": "warn",
"PkgBadlyFormedXml": "warn",
"PkgInvalidXml": "warn",
- "PkgMetadataXmlEmptyElement": "staging",
+ "PkgMetadataXmlEmptyElement": "warn",
"PkgMetadataXmlIndentation": "",
"PkgMetadataXmlInvalidCatRef": "warn",
"PkgMetadataXmlInvalidPkgRef": "warn",
^ permalink raw reply related [flat|nested] 27+ messages in thread
end of thread, other threads:[~2018-04-15 6:54 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04 8:44 [gentoo-commits] proj/qa-scripts:master commit in: pkgcheck2html/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2018-04-15 6:54 Michał Górny
2018-01-06 19:16 Michał Górny
2017-12-22 22:28 Michał Górny
2017-12-18 15:41 Michał Górny
2017-12-17 10:51 Michał Górny
2017-12-17 9:32 Michał Górny
2017-12-17 9:30 Michał Górny
2017-12-12 7:58 Michał Górny
2017-10-02 15:26 Michał Górny
2017-10-02 14:54 Michał Górny
2017-10-02 14:54 Michał Górny
2017-09-03 20:04 Michał Górny
2017-08-08 21:33 Michał Górny
2017-08-04 21:50 Michał Górny
2017-07-05 11:28 Michał Górny
2017-06-19 18:45 Michał Górny
2017-06-19 16:14 Michał Górny
2017-05-30 21:48 Michał Górny
2017-05-14 6:53 Michał Górny
2017-05-13 9:53 Michał Górny
2017-05-11 12:12 Michał Górny
2017-03-04 10:25 Michał Górny
2017-01-27 20:09 Michał Górny
2017-01-14 16:25 Michał Górny
2016-12-04 8:53 Michał Górny
2016-12-04 8:50 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox