The emerge job failed on any saved elog, so warn elog from eclasses,
such as CONFIG_CHECK without kernel sources in the CI container, failed
pull requests whose package was fine. The job now fails only on QA and
error elog. Portage also saves log elog now, and every target's elog is
uploaded and reported in a new section of the pkgcheck report comment,
so reviewers still see the warnings and post-install notes. When
dependency resolution or the emerge fails, the section shows the last
lines of its output, because the elog alone does not show the cause. The
build.log of each package that failed is uploaded as an artifact and
linked from its row.
pkgcheck-comment now also handles the requested event of pkgcheck and
emerge-on-pr, so each section shows that its run is in progress, and
removes the elog section when a push leaves no emerge targets. Because
runs of both sections and of older pushes edit the same comment at once,
upsert-comment-section.sh writes only while the pull request head is
still the run's commit, and reads the comment back to write again when
another run overwrote its section.
Signed-off-by: Zakk <zakk@gentoozh.org>
The required_checks ruleset already blocks the merge for everyone: pr-rules
is a required check and the ruleset has no bypass actors. Closing on top of
that only forced a new pull request for a fixable description. Keep one
comment that names the problems, update it on each run, and delete it once
the rules pass. pr-rules now also triggers the comment job, so editing the
description clears it without a push.
Signed-off-by: Zakk <zakk@gentoozh.org>
Contributors delete the template, so reviewers cannot see whether
pkgcheck ran or AI was used. The boxes stay optional because not every
contributor can run pkgcheck with --net and the AI box applies only when
AI was used. The autobump bot does not fill in the template and is
skipped.
The commit rules move from pkgcheck into the same workflow, because both
checks read the pull request rather than the ebuilds and must rerun when
the description is edited, which pkgcheck should not.
pkgcheck-comment now also closes a pull request without the template,
and its reply lists the commit and template problems in separate
sections.
Signed-off-by: Zakk <zakk@gentoozh.org>
Workflow names now match their file stems, so the Actions list and the
files read the same; generate-deps-relation-r1.yml becomes
deps-table.yml after the branch it maintains. Steps are lowercase and
verb-first, every step is named, and the autobump-rb checkout has one
name everywhere.
Also use 4-space step indentation, fromJSON, bare if: expressions,
github.actor for every ghcr login, uppercase env names, and the
GITHUB_REPOSITORY and GITHUB_REPOSITORY_OWNER variables the runner
already sets instead of REPO and OWNER copies. No behaviour changes.
Signed-off-by: Zakk <zakk@gentoozh.org>
pkgcheck-comment closes a pull request only after pkgcheck has finished,
and its check is not attached to the pull request, so a maintainer could
merge before it ran. A commits job in pkgcheck fails on the same rules
and can be required before merging. Both read the rules from
scripts/commit-rules.sh.
Signed-off-by: Zakk <zakk@gentoozh.org>
The reply listed what a commit missed but left the rules vague and gave
no example, so a contributor could not tell how to fix the commits. It
now lists the rules with examples and the commands that fix them.
Signed-off-by: Zakk <zakk@gentoozh.org>
pr-text.md asks every subject to start with what it changes, every
commit to carry Signed-off-by, and a branch rebased without merge
commits. Nothing checked it, so subjects such as "bump version" and
"Update <path>.ebuild" reached master.
pkgcheck-comment already runs with a write token for every pull request
and resolves its number, so it closes one whose commits miss any of
these, replying with each commit, what it misses and how to fix it.
Reverts keep git's default subject.
Signed-off-by: Zakk <zakk@gentoozh.org>
Because the engine returns to master, restore the dispatched ref so
every trial target uses the selected scripts. Reuse the worker image
because it already supplies the trial setup and tools.
A skipped report job leaves no artifact, so skip its download and comment
instead of failing the comment workflow. Select a marker across all
comment pages because per-page lookup can return several comment IDs.
Signed-off-by: Zakk <zakk@gentoozh.org>