Commit Graph
3 Commits
Author SHA1 Message Date
Zakk d42a62a2fa scripts: rework the pkgcheck report comment
Compare findings without the version, so a finding that a bump carries over from the
previous ebuild is no longer reported as new. Group new findings by level and list
the existing ones, because a flat list did not show which findings break the package.
Fail the report check on a new error-level finding. Mark the scan unfinished when
pkgcheck fails, which previously read as a clean report, and scan with --config no,
because the exit keywords in metadata/pkgcheck.conf made a NonexistentDeps finding
look like a failed scan.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-22 09:34:26 +11:00
Zakk 471c387b74 scripts: stop the pkgcheck report from passing unfinished or hidden findings
A failed `pmaint sync` or `pmaint regen` left empty report files, and the
comment counted zero new findings and posted good. The scan now leaves a
complete marker and the comment reports a scan that did not finish.

New findings were keyed by package, keyword and version, so a second
finding of the same keyword in an existing version was taken for the old
one. They are now compared by their message without line numbers, counted
as a multiset.

The marker lookup only takes comments written by a bot, so a user comment
that quotes the marker is not edited.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-09 11:09:43 +11:00
Zakk ed5071f22d .github/workflows: pkgcheck: comment scan results for changed packages
因为仓库级扫描只在 NonexistentDeps 上失败,所以改动的 ebuild 上 warning 级别的问题
不会让 CI 变红。

因为 pkgcheck 会 source 它扫描的 ebuild,等于执行 PR 里的代码,所以扫描只拿只读
token,评论由 workflow_run 另起一个不检出该代码的任务发出。

因为包里原有的问题会淹没 PR 引入的那几条,所以基线分支也扫一遍,评论只列新增的。
2026-07-29 22:40:59 +10:00