autobump-rb now prints the reason after opening a draft PR, such as
"only amd64 was built". Copy it into the issue's status comment, so
whoever reads the issue sees why the PR waits for review.
Signed-off-by: Zakk <zakk@gentoozh.org>
AUTOBUMP_JUDGE is set nowhere, so every escalation already goes to a
human; remove autobump-judge.sh and the judge path in
autobump-sweep.py, whose only other entry, the --accept-surface retry,
ran on a judge verdict alone. Behaviour with the variable unset is
unchanged.
Also drop debug output (echo pkgs, targets, cat make.conf), the 130
exit branch that only renamed the generic one, the unused
AUTOBUMP_STATUS_BACKOFF override, and comments that described the
shell autobump-sweep.py replaced or named the wrong caller.
Signed-off-by: Zakk <zakk@gentoozh.org>
- select_issues: fetch up to 1000 open issues. The 200 limit now counts every
open issue before the [nvchecker] title filter, so more open issues would
push nvchecker issues out of the window.
- run_worker: annotate an item that raised, such as a missing bundle snapshot,
with ::error so the skipped bump shows on a green run.
- find_status_comment_id: match only bot comments, and take the first id
because --jq prints one per page with a match.
- autobump-trial.sh: skip a target whose overlay.toml entry autobump-args.py
refuses instead of building it with default flags.
Signed-off-by: Zakk <zakk@gentoozh.org>
The wait job slept 60 seconds because the issue search index lags issue
creation. The sweep now lists open issues without --search and keeps the
[nvchecker] titles with jq, so a new issue is listed at once and plan
carries the nvchecker gate itself.
Signed-off-by: Zakk <zakk@gentoozh.org>
The bundle controller now also sees opted-in packages without a bundle key, and a transient 404 on a per-version deps artifact is listed under waits in the shard delta, so autobump-wait can wait for that artifact instead of the next scheduled run.
Signed-off-by: Zakk <zakk@gentoozh.org>
Shared checkouts left later packages waiting on tracked modifications. Give each
attempt its own job while retaining eight concurrent workers. Cap planned attempts at
the matrix limit, including explicit issue lists.
Signed-off-by: Zakk <zakk@gentoozh.org>
The sweep adds AUTOBUMP_ASSIGNEE (gentoo-zh-bot by default) to the issue
before it runs the engine, so the issue list shows which versions autobump
is already working on. The assignment stays when a PR is opened and is
removed after an escalation, a deferral or a crash.
Signed-off-by: Zakk <zakk@gentoozh.org>
nvchecker dispatched gentoo-deps bundles as soon as it saw a new version, but
autobump could reach the bump before the bundle was released; the 404 then ended as
an escalation or used up the transient retries.
The plan job now runs the bundle controller, autobump-rb's bin/bundles.py, for every
open issue whose package has `deps` or `bundle` in overlay.toml, opted in or not. It
dispatches a missing bundle at most three times per bundle and version, holds the
package back until the bundle is ready, and escalates after four observations. The
engine reads the snapshot through --bundle-status to tell a pending bundle from a
wrong file name.
`deps` names the gentoo-deps generator language, from which the controller derives
the repository, workflow, release tag and inputs; a producer with its own workflow,
as in gentoo-zh-drafts, takes the full `bundle` form. bundles.yml runs the same
controller to check or prepare a package's bundles by hand.
The nvchecker dispatch job and gentoo-deps-dispatcher.toml are removed, so only one
path dispatches bundles.
Signed-off-by: Zakk <zakk@gentoozh.org>
A rerun keeps GITHUB_RUN_ID and changes only GITHUB_RUN_ATTEMPT, so its
attempt lines matched the first run's, collect dropped them as
duplicates and the transient cap did not advance. A rerun's attempt now
carries its attempt number; a first attempt writes the same token as
before.
Signed-off-by: Zakk <zakk@gentoozh.org>
The reason pattern stopped at the first ")", so a reason carrying its
own parentheses reached the issue cut short, e.g. "(404/403". The
engine closes the reason with "); evidence: <dir>", so match up to
that instead.
Signed-off-by: Zakk <zakk@gentoozh.org>
An escalation records the bump as done, and DONE is keyed by version, so a fix in
the engine only reaches the package on its next release. --retry runs the named
issues again; it needs their numbers, so a re-run cannot sweep the whole queue by
accident.
Portage names an elog "<cat>:<pn>-<ver>:<timestamp>.log". GitHub refuses a colon in
an artifact path, so the upload step failed and took a finished bump's job red with
it - the bump itself had already succeeded. The copy replaces the characters an
artifact cannot carry, and the upload no longer fails the job: evidence is for
reading afterwards.
An attempt line now carries the run it came from, so two sweeps on one day both count
while the same delta delivered twice does not: collect de-duplicated them and the retry
cap never advanced, so a package that fails every run was retried forever instead of
reaching a maintainer.
The engine's verdict is read off its own "!!" abort line. Portage writes
"!!! Couldn't download" into the same stream, and a build log line saying "destination
path ... already exists" was recorded as "the overlay is already at this version" - a
permanent result for a transient failure.
Also: a child's output may hold bytes that are not UTF-8 and a finished bump was thrown
away decoding them; gh's exit status is honoured, so an auth or rate-limit failure is
not reported as an unparseable issue title; one package is planned once per run,
whatever version each issue names, instead of two engines racing in one package
directory; issue numbers given by hand are all attempted, as the single-job path
already did; a defer that gave up keeps its evidence; and an engine that died before
printing an evidence path no longer archives the whole checkout.
The per-run cap dated from one job working through the queue in sequence. With
the queue sharded across workers a day's issues finish in one run, so default to
no cap and keep the input for capping a run by hand.
A deferred bump said one line and dropped the rest: the engine's output was cut
to its last four lines and the issue comment carried 25 lines of escalations.txt,
so build.log and the tree/surface diffs never reached anyone. Print the engine
output whole, put every evidence file in the comment (cut, never summarised) and
upload the evidence directory as a run artifact.