Commit Graph
52 Commits
Author SHA1 Message Date
Zakk 3b3edd4462 .github: use one naming and formatting style across workflows
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>
2026-10-11 04:30:43 +11:00
Zakk 0ebff6fd8e .github, scripts: drop dead code and stale comments
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>
2026-10-11 04:26:16 +11:00
Zakk 8900587f7b .github: narrow token scopes and fix silent CI failures
Jobs inherited write scopes they never use, so each workflow now
defaults to contents: read and grants pull-requests: read or
packages: write only to the jobs whose GITHUB_TOKEN calls need them.
The autobump bump job keeps its own block.

Failures that read as success now fail the step: a failed gh call in
nvchecker-check.py no longer reads as "no issue" and opens a duplicate,
and fleet-keeper no longer reports "found 0" when listing repositories
or workflows fails.

emerge-targets.sh took =cat/foo-bar-1.0 for a version of cat/foo, so a
PR touching both dropped cat/foo; only a digit after the dash starts a
version.

setup-gentoo added the x86-64 binhost on arm64 as well; it is now
added on amd64 only.

mirror-to-codeberg trusted whatever ssh-keyscan returned while holding
a write key; the host key is now pinned and checked.

stage3 cleanup ran even when build was skipped on a fork schedule.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:26:16 +11:00
Zakk 45a903afc7 .github: start the daily bump round from one workflow
stage3, nvchecker and autobump each had a schedule of their own, and
GitHub starts each 5-8 hours late, so their order shifted from day to
day. daily.yml is now the only schedule: it calls stage3, then
autobump-env on the fresh stage3, and nvchecker in parallel; autobump
runs when daily completes and autobump-wait after it, as before.

The steps are reusable workflows rather than a workflow_run chain,
because workflow_run stops after three levels and autobump-wait would
already be the fourth.

- daily runs at 00:17 UTC, so autobump-env carries the date the bumps
  run on and autobump starts without building its image.
- autobump drops its 11:00 schedule: autobump-wait already dispatches
  it again once the missing bundles are ready.
- stage3, autobump-env and nvchecker keep workflow_dispatch; nvchecker
  run by hand still starts autobump.

Codeberg mirroring no longer runs on every branch deletion: merged
autobump branches queued dozens of runs a day, and the next push or the
daily run prunes them anyway.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 03:27:38 +11:00
Zakk ed7fcfd120 .github/workflows/nvchecker.yml: write repos.conf instead of eselect repository
eselect repository downloads repositories.xml from api.gentoo.org first.
On 2026-10-09 the runner resolved that host to IPv6 addresses only, could
not reach them, and the eix job failed before any check ran. Neither repo
needs the list: write their repos.conf entries directly and drop
app-eselect/eselect-repository from the job's dependencies.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-10 04:22:41 +11:00
Zakk f81f569807 .github/workflows/nvchecker.yml: keep active runs
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-08 03:12:55 +11:00
Zakk 46d0513c78 .github/workflows/nvchecker.yml: skip new versions Portage cannot parse
nvcmp --sort portage raises TypeError on a new version that Portage
cannot parse. On 2026-10-04 the tag mobile-v0.1.5 failed the whole job,
so the job opened no bump issue for any package.

scripts/nvchecker-check.py restores the old version of such an entry,
so nvcmp still compares the other packages, and opens one issue per
package and version that CCs the package maintainers. It also prints a
warning for each package whose upstream returned no version.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-05 20:35:32 +11:00
Zakk 756d956d1e .github/workflows: trim comments, drop autobump-selftest
Long inline shell and repeated explanations obscure the job sequence.
The engine already has its own selftest.

Because one failed issue update must not cancel the others, disable
matrix fail-fast. An empty eix result must produce an empty package map.
Pin the push action because the dependency-table job grants it write
access.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-02 01:54:16 +10:00
Zakk 0b26e19d66 .github/workflows/autobump.yml: prepare vendor bundles before bumping
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>
2026-10-01 01:16:59 +10:00
Zakk b92b5b22a7 .github/workflows/nvchecker.yml: use portage version compare
1. 因為 oldver 是樹裡的 Gentoo 版本,而 nvcmp 預設的 PEP440 比較器不認識 `_p` 和 `_rc`,會把
   `dev-util/cmakerc` 樹上的 `2.0.1_p20230725` 判成舊於上游的 `2.0.1`,讓 issues-bumper 開出
   降級的 bump issue,所以改用 nvchecker 2.22 起提供的 `--sort portage`。
2. 因為這個 job 跑在 ubuntu-latest 上,沒有 portage 模組時該比較器會在第一次比較就丟
   NotImplementedError,所以 pip 依賴一併加上 `portage`。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-08-15 17:58:31 +10:00
Zakk e8b421919b nvchecker: surface a failing pipe in the nvcmp step
因为写成 echo "nvcmp=$(...)" 时退出码来自 echo,管道里任一环失败都会被吞掉,
只留下空的 nvcmp= 到展开 matrix 时才暴露,所以把赋值单独一行,配合
set -o pipefail 在失败处直接中止。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-07-30 16:10:48 +10:00
Zakk 848bc914c4 nvchecker: read the tree version from the newest release, not 9999
因为 eix 的 bestversion 会选中 live ebuild —— 9999 不带 KEYWORDS,没有东西可以
拒绝它 —— 把这些包记成比上游任何版本都新,nvcmp --newer 从此不再报告它们,所以
改走 availableversions 并取最后一个非 live 版本,eix 本就按升序排。

只有 live ebuild 的包不再出现在表里;它没有可供上游领先的发行版本,也都没有
追踪条目。

另外命令替换会吞掉管道里的失败、只留下空的 nvcmp=,错误要到展开 matrix 时才
暴露,所以加上 set -o pipefail;空的 include 不是合法的 matrix,issues-bumper
补上 deps-dispatch 已有的那个判断。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-07-30 16:10:48 +10:00
Zakk 62d838a137 .github/workflows/nvchecker: auto-dispatch on-demand deps generators 2026-07-25 00:19:38 +10:00
Puqns67 2408a73754 ci: nvchecker: remove trigger on push 2026-07-24 20:42:26 +08:00
Zakk 0fd5a9c546 .github: run emerge-webrsync with --no-pgp-verify
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-07-24 16:51:27 +10:00
Zakk 69606d54ed Update repository metadata after rename to gentoo-zh/overlay
The overlay was transferred from microcai/gentoo-zh to the gentoo-zh
organization and then renamed to gentoo-zh/overlay. Point the in-repo
references (repo.xml, README, nvchecker workflow) at the new location, and
add MIGRATION.md and a repository news item so users can update their sync
URL.
2026-07-05 05:12:51 +08:00
peeweep f7b98c1293 switch to new organization and domain
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2026-07-03 12:10:01 +08:00
dependabot[bot] 111425d7b9 build(deps): bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-22 19:23:50 +08:00
peeweep bf8e1f07f4 .github/workflows: nvchecker: update binhost conf
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2026-04-13 16:32:41 -07:00
peeweep 6f71fc1393 .github/workflows: nvchecker/pkgcheck: eselect gentoo git
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2026-01-22 06:29:42 +08:00
dependabot[bot] ed954fc99e build(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 20:12:26 +08:00
peeweep dcd500fcd7 .github/workflows: nvchecker: fix use single quote
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2025-10-16 21:19:05 +08:00
peeweep 4177f8ab06 .github/workflows: nvchecker: use stage3 docker image 2025-10-16 21:00:46 +08:00
dependabot[bot] 99578d90b1 build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-19 08:05:15 +08:00
jinqiang zhang 15a1d6a30c .github/workflows: nvchecker: use new bumpbot 2025-03-24 19:00:04 +08:00
jinqiang zhang 1bcabeb23a .github/workflows: nvchecker: use matrix and GraphQL api 2025-03-22 19:34:55 +08:00
jinqiang zhang 6f719d6eb8 .github/workflows: nvchecker: remove sed old_ver.json 2024-11-26 16:17:40 +08:00
jinqiang zhang bf2212f012 .github/workflows: nvchecker: update ACCEPT_KEYWORDS
accept non-amd64 keywords (for app-emulation/la-ow-syscall and app-emulation/liblol)
2024-11-03 09:14:11 +08:00
jinqiang zhang 695cd3fbe3 .github/workflows: nvchecker: remove sed new_ver.json 2024-10-26 22:43:11 +08:00
peeweep e48f5d3aea .github/workflows: nvchecker: fix sed old_ver.json
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2024-08-24 15:41:02 +08:00
peeweep 9c748c4f7b .github/workflows: remove _p from nvchecker old_ver
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2024-08-24 14:22:20 +08:00
dependabot[bot] cd9da73033 build(deps): bump actions/github-script from 4 to 7
Bumps [actions/github-script](https://github.com/actions/github-script) from 4 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-02 06:13:07 +08:00
dependabot[bot] 3d007232e9 build(deps): bump actions/checkout from 2 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-02 06:12:57 +08:00
peeweep c85b9bdd7a actions: nvchecker: fix node-version
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2024-06-02 06:08:01 +08:00
peeweep 48e68abc6b .github/workflows: nvchecker: not special node-version anymore
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2024-06-01 22:17:01 +08:00
peeweep 0227428cba actions: nvchecker: add GENTOO_ZH_NVCHECKER_PAT description
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2024-04-27 13:23:21 +08:00
Yongxiang Liang a8cb99b2b9 .github/workflows: fixed output
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
2024-01-16 00:27:32 +08:00
Yongxiang Liang fc34abcae2 .github/workflows: fix path
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
2024-01-15 23:48:57 +08:00
Yongxiang Liang a0a4175227 .github/workflows: fix path in name normalization
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
2024-01-15 23:11:09 +08:00
Yongxiang Liang 8aa85ec60b .github/workflows: nvchecker add version normalization
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
2024-01-15 23:03:35 +08:00
peeweep a47f159b0c actions: nvchecker: use GENTOO_ZH_NVCHECKER_PAT as github secret
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2023-04-01 15:07:52 +08:00
peeweep 3a4d55e0fc actions: nvchecker: only run in main repository
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2023-03-21 01:51:09 +08:00
peeweep 5f5b3fcdd3 actions: nvchecker: fix task not stopped when API rate limited
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
2023-01-29 20:52:52 +08:00
peeweep 4f025f7048 fix: duplicate issues created by nvchecker action
Issues #2002 and #2003 are repeatedly created by nvchecker actions triggered
by two pushes in a short period of time, so `cancel-in-progress` should be used.

And also closes: #2003 when this pr merged.

Signed-off-by: peeweep <peeweep@0x0.ee>
2022-04-10 07:27:06 +08:00
peeweep 99cdc04131 actions: nvchecker: catch warning 2022-03-02 13:33:31 +08:00
peeweep 0dfdc9e20e actions: nvchecker: support @github_account in body
Write github_account k/v into .github/workflows/overlay.toml, support
string and array.

Example:

string:

["x11-misc/picom-jonaburg"]
source = "github"
github = "jonaburg/picom"
use_latest_tag = true
prefix = "v"
github_account = "peeweep"

array:

["x11-misc/picom-jonaburg"]
source = "github"
github = "jonaburg/picom"
use_latest_tag = true
prefix = "v"
github_account = ["peeweep"]
2022-03-01 19:24:15 +08:00
peeweep ed0f32b07f actions: nvchecker: rewrite update issues step 2022-02-28 18:08:38 +08:00
Yongxiang Liang 3a6389242e nvchecker: rewrite with container 2022-02-27 22:16:56 +08:00
梁永祥 dc07844f34 nvchecker action: fixed script syntax 2022-02-27 00:54:47 +08:00
梁永祥 fcb1696375 update nvchecker issue template 2022-02-26 18:29:27 +08:00