2 Commits
Author SHA1 Message Date
Zakk d06ff6a93f scripts: find the pull request after it is merged
pr-at-commit.sh searched only open pull requests, so a pull request
merged before the comment run of its last workflow finished kept the
"emerging" status line in the bot comment, as on #15346 and #15348.

It now also searches the 30 most recently updated closed pull requests
and accepts a merged one whose head is the commit. A rebase merge keeps
the pull request head, so upsert-comment-section.sh still finds it at
HEAD_SHA.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-22 22:20:26 +11:00
Zakk 06cf3c541b .github: report emerge elog in the pull request comment
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>
2026-10-22 09:34:26 +11:00