Compare commits
39
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f29d4a7e85 | ||
|
|
73ae7fb17c | ||
|
|
d0c1d411d3
|
||
|
|
2fa31bb8ef | ||
|
|
fcf83b8a9e
|
||
|
|
826c9e65d5
|
||
|
|
31794691e2 | ||
|
|
4639777798 | ||
|
|
644d04df7d
|
||
|
|
82fcdd1096 | ||
|
|
6fd21bfab4 | ||
|
|
e6084f031e | ||
|
|
497fb914a1
|
||
|
|
b93b3711b3 | ||
|
|
1a3f5d92e0
|
||
|
|
32c41e9433
|
||
|
|
1add936767 | ||
|
|
388bff999a
|
||
|
|
327b92e67a
|
||
|
|
9ef75e0898 | ||
|
|
cb2d304168 | ||
|
|
2ec39d75ba | ||
|
|
8cd5f84859 | ||
|
|
5cd13da233 | ||
|
|
2692572401
|
||
|
|
5b967e417f | ||
|
|
e910cce543 | ||
|
|
37e6d7d729 | ||
|
|
1a4db37f03 | ||
|
|
c3f5b43459 | ||
|
|
f37627518e | ||
|
|
76f8a8a055
|
||
|
|
18f3d7d709 | ||
|
|
7ad3616f24
|
||
|
|
872107131f
|
||
|
|
c133a00dc7 | ||
|
|
a3660e46d8
|
||
|
|
6b8ddf4830 | ||
|
|
462f117f37 |
No files matched your search
@@ -86,7 +86,7 @@ jobs:
|
||||
run: |
|
||||
PACKAGER=""
|
||||
case "$REPO" in
|
||||
*autoclick*|*captureimg*|*randomizerMAC*|*HashTool*) PACKAGER="Velopack" ;;
|
||||
*autoclick*|*captureimg*|*randomizerMAC*|*HashTool*|*CommandForge*|*OmniDeck*|*frameledger*|*AppLedger*) PACKAGER="Velopack" ;;
|
||||
*youtube-generator*|*free-steam-games-list*|*free-games-itchio-list*) PACKAGER="Tauri" ;;
|
||||
*)
|
||||
if echo "$WF_NAME" | grep -qi 'tauri\|desktop'; then PACKAGER="Tauri"; fi
|
||||
|
||||
@@ -103,9 +103,13 @@ jobs:
|
||||
R2_BUCKET: poli0981-releases
|
||||
PUBLIC_BASE: https://releases.poli0981.dev
|
||||
ARTIFACT_DIR: _r2
|
||||
RCLONE_VERSION: v1.76.0
|
||||
RCLONE_SHA256_WINDOWS: 8b4fd2737ade4e70c057ef4a49deb7cffe94b0fb9d7587c189d149823f21a1dc # rclone-v1.76.0-windows-amd64.zip
|
||||
RCLONE_SHA256_LINUX: b00f00b3266c3764413afe599d3ec316f6f43b3e0ea8a0bc1d186d2133e46df7 # rclone-v1.76.0-linux-amd64.zip
|
||||
# Never name these RCLONE_*: rclone reads every RCLONE_<FLAG> variable as
|
||||
# that flag, and RCLONE_VERSION made `rclone version` die with "Invalid
|
||||
# value when setting --version from environment variable" (v2026.11.3,
|
||||
# free-steam-games-list android-v2.6.0: nothing was uploaded).
|
||||
PINNED_RCLONE_VERSION: v1.76.0
|
||||
PINNED_RCLONE_SHA256_WINDOWS: 8b4fd2737ade4e70c057ef4a49deb7cffe94b0fb9d7587c189d149823f21a1dc # rclone-v1.76.0-windows-amd64.zip
|
||||
PINNED_RCLONE_SHA256_LINUX: b00f00b3266c3764413afe599d3ec316f6f43b3e0ea8a0bc1d186d2133e46df7 # rclone-v1.76.0-linux-amd64.zip
|
||||
# rclone remote "r2" — env-only config, same scheme as the server backup script.
|
||||
# The access keys are added only on the upload steps.
|
||||
RCLONE_CONFIG_R2_TYPE: s3
|
||||
@@ -163,11 +167,11 @@ jobs:
|
||||
Write-Host "Feed files ($($feeds.Count)) -> uploaded last: $($seen.Keys -join ', ')"
|
||||
|
||||
$tmp = if ($env:RUNNER_TEMP) { $env:RUNNER_TEMP } else { [IO.Path]::GetTempPath() }
|
||||
$pkg = "rclone-$($env:RCLONE_VERSION)-windows-amd64"
|
||||
$pkg = "rclone-$($env:PINNED_RCLONE_VERSION)-windows-amd64"
|
||||
$zip = Join-Path $tmp "$pkg.zip"
|
||||
Invoke-WebRequest -UseBasicParsing -Uri "https://downloads.rclone.org/$($env:RCLONE_VERSION)/$pkg.zip" -OutFile $zip
|
||||
Invoke-WebRequest -UseBasicParsing -Uri "https://downloads.rclone.org/$($env:PINNED_RCLONE_VERSION)/$pkg.zip" -OutFile $zip
|
||||
$hash = (Get-FileHash -Algorithm SHA256 -LiteralPath $zip).Hash.ToLowerInvariant()
|
||||
if ($hash -ne $env:RCLONE_SHA256_WINDOWS) { Fail "rclone checksum mismatch: $hash" }
|
||||
if ($hash -ne $env:PINNED_RCLONE_SHA256_WINDOWS) { Fail "rclone checksum mismatch: $hash" }
|
||||
$dest = Join-Path $tmp 'rclone'
|
||||
Expand-Archive -LiteralPath $zip -DestinationPath $dest -Force
|
||||
$bin = Join-Path $dest $pkg
|
||||
@@ -266,9 +270,9 @@ jobs:
|
||||
echo "Feed files ($nfeeds) -> uploaded last: ${!seen[*]}"
|
||||
|
||||
tmp="${RUNNER_TEMP:-/tmp}"
|
||||
pkg="rclone-${RCLONE_VERSION}-linux-amd64"
|
||||
curl -fsSL --retry 3 -o "$tmp/$pkg.zip" "https://downloads.rclone.org/${RCLONE_VERSION}/$pkg.zip"
|
||||
echo "${RCLONE_SHA256_LINUX} $tmp/$pkg.zip" | sha256sum -c -
|
||||
pkg="rclone-${PINNED_RCLONE_VERSION}-linux-amd64"
|
||||
curl -fsSL --retry 3 -o "$tmp/$pkg.zip" "https://downloads.rclone.org/${PINNED_RCLONE_VERSION}/$pkg.zip"
|
||||
echo "${PINNED_RCLONE_SHA256_LINUX} $tmp/$pkg.zip" | sha256sum -c -
|
||||
if command -v unzip >/dev/null 2>&1; then
|
||||
unzip -q -o "$tmp/$pkg.zip" -d "$tmp"
|
||||
else
|
||||
|
||||
@@ -84,7 +84,7 @@ jobs:
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
if: ${{ inputs.package-manager != 'none' }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
@@ -156,7 +156,7 @@ jobs:
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
if: ${{ inputs.package-manager != 'none' }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
|
||||
@@ -116,7 +116,7 @@ jobs:
|
||||
"DOTNET_INSTALL_DIR=$(Join-Path $base 'dotnet')" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Setup .NET ${{ inputs.dotnet-version }}
|
||||
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
|
||||
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
|
||||
with:
|
||||
dotnet-version: ${{ inputs.dotnet-version }}
|
||||
|
||||
@@ -165,7 +165,7 @@ jobs:
|
||||
"DOTNET_INSTALL_DIR=$(Join-Path $base 'dotnet')" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Setup .NET ${{ inputs.dotnet-version }}
|
||||
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
|
||||
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
|
||||
with:
|
||||
dotnet-version: ${{ inputs.dotnet-version }}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Go (${{ inputs.go-version }})
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
|
||||
with:
|
||||
go-version: ${{ inputs.go-version }}
|
||||
check-latest: true
|
||||
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup JDK ${{ inputs.java-version }} (${{ inputs.distribution }})
|
||||
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
|
||||
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
|
||||
with:
|
||||
java-version: ${{ inputs.java-version }}
|
||||
distribution: ${{ inputs.distribution }}
|
||||
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Python ${{ inputs.lint-python-version }}
|
||||
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
||||
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
||||
with:
|
||||
python-version: ${{ inputs.lint-python-version }}
|
||||
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
||||
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
|
||||
@@ -156,7 +156,7 @@ jobs:
|
||||
|
||||
- name: Setup .NET
|
||||
if: ${{ inputs.dotnet-version != '' || inputs.dotnet-global-json-file != '' }}
|
||||
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
|
||||
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
|
||||
with:
|
||||
dotnet-version: ${{ inputs.dotnet-global-json-file == '' && inputs.dotnet-version || '' }}
|
||||
global-json-file: ${{ inputs.dotnet-global-json-file }}
|
||||
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Ruby ${{ inputs.ruby-version }}
|
||||
uses: ruby/setup-ruby@be3c7df29b3349ec6bcfc6b4792f1cf9f5237d18 # v1.343.0
|
||||
uses: ruby/setup-ruby@145243922b4465b78e04dd66294782c7de45901f # v1.345.0
|
||||
with:
|
||||
ruby-version: ${{ inputs.ruby-version }}
|
||||
bundler-cache: true # bundle install + cache automatically
|
||||
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
|
||||
@@ -311,7 +311,7 @@ jobs:
|
||||
"DOTNET_INSTALL_DIR=$(Join-Path $base 'dotnet')" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Setup .NET ${{ inputs.dotnet-version }}
|
||||
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
|
||||
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
|
||||
with:
|
||||
dotnet-version: ${{ inputs.dotnet-version }}
|
||||
|
||||
@@ -320,6 +320,9 @@ jobs:
|
||||
shell: bash
|
||||
env:
|
||||
SOLUTION: ${{ inputs.dotnet-solution }}
|
||||
# docker.gitea.com/runner-images ship no ICU, and .NET stops at start-up without it ("Couldn't find a
|
||||
# valid ICU package", seen 2026-11-26 on HashTool). A restore needs no cultures.
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: '1'
|
||||
run: |
|
||||
set -uo pipefail
|
||||
# shellcheck disable=SC2086
|
||||
|
||||
+16
-13
@@ -260,7 +260,7 @@ Open questions: <…>
|
||||
- Move all 13 reusable workflows to `.gitea/workflows/`. Gitea 1.27+ expands reusable workflows server-side (nested calls, inputs, outputs, matrix supported); cross-instance URLs are not supported.
|
||||
- Apply §3.2 rules to each. Drop macOS/Swift jobs (keep the files for future, disabled with a header comment).
|
||||
- Replace caller-side assumptions (`github.event.repository.*` fields that Gitea may not populate) with explicit `inputs`. **VERIFY** per workflow.
|
||||
- Tag releases of the ops repo (`vYYYY.MM.N`) and have callers pin the **commit SHA** of the tag. `v2026.11.1` (2026-11-23) predates the notifier fix; tag the next release after merging, and pin that.
|
||||
- Tag releases of the ops repo (`vYYYY.MM.N`) and have callers pin the **commit SHA** of the tag. Latest: **`v2026.11.5`** (2026-11-26, `b93b3711b3049a879cfdfd515f7e72c23864da8f`, signed): the release-pipeline notifier names the Velopack apps released from Gitea, and `security.yml` restores .NET on Docker runners without ICU. HashTool and CommandForge pin it; the other migrated repos stay on their tag until their next change.
|
||||
- How Gitea runs a called workflow (source): it expands the call on the server. `owner/repo/…@ref` reads that repo on this instance, never `DEFAULT_ACTIONS_URL`. `./…` inside a called workflow resolves to the called workflow's own repo and commit, so the ops reusables call each other with `./`. A job-level `if:` sees the caller's `github.event_name`. Called jobs get only the secrets in the caller's `secrets:` map, plus the job token.
|
||||
- `workflow_run` on Gitea (source): `workflow_run` has no `name` and no `head_commit`, and `head_branch` is empty for tag runs. Use `github.event.workflow.name`, `workflow_run.display_title` (the commit title) and the ref after `@` in `workflow_run.path`. The ops notifiers do.
|
||||
- `.gitea/workflows/ops-lint.yml` lints every workflow here (actionlint + shellcheck; `.github/actionlint.yaml` ignores only the Gitea features actionlint does not know) and the Python.
|
||||
@@ -317,7 +317,7 @@ Runner workflow `.gitea/workflows/renovate.yml` in the same repo: runs self-host
|
||||
|
||||
**github.com without a token** (nothing GitHub-specific, §3.6). With no github.com token, Renovate skips every `github-tags` / `github-releases` dependency as `github-token-required`, every action pin included. The fix has two parts, and needs both: `RENOVATE_GITHUB_TOKEN_WARN=false` lets those dependencies reach the lookup, and the preset's package rule sends it to `git-tags` (`git ls-remote`, with annotated tags resolved to their commit). The switch alone fails, because `github-tags` asks GitHub's GraphQL API, which refuses unauthenticated calls (403). Measured 2026-11-23 on ticktune's 7 workflows under `.gitea/workflows`: 38 of 38 action pins resolved, no call to `api.github.com`. Still not covered: a `github-releases` dependency fails, visibly on the Dependency Dashboard, and PRs get no release notes from GitHub. Actions pinned to a branch (`@<sha> # main`) go through `github-digest`, which needs the API too; the second rule reads the branch head over git (`git-refs`).
|
||||
|
||||
**Vulnerabilities.** OSV alerts open their own PRs, labelled `dependencies` + `security`, without the 3-day release age that holds every other npm, NuGet, crates.io and PyPI update; the Dependency Dashboard lists the open advisories.
|
||||
**Vulnerabilities.** OSV alerts open their own PRs, labelled `dependencies` + `security`, without the 3-day release age that holds every other npm, NuGet, crates.io, PyPI and pub.dev update (pub.dev joined on 2026-11-27, renovate-config #7, for MarkLens: the block above is the file as first shipped); the Dependency Dashboard lists the open advisories.
|
||||
|
||||
**Which repos.** Gitea autodiscovery lists the repos the bot owns or collaborates on, and Renovate keeps the ones it can push to. So add `renovate-bot` as a **Write** collaborator on each repo (`poli0981` is a user, not an org: there are no teams). Create the labels `dependencies` and `security` in each repo: Renovate drops a missing label silently. `maintainer/gitea-repo-setup.ps1` (ops repo) does both steps for every repo; run it with `-DryRun` first. Onboarding stays on. A repo the bot can see without a `renovate.json` gets a "Configure Renovate" PR that proposes `local>poli0981/renovate-config`, because Renovate finds the preset by this repo's name.
|
||||
|
||||
@@ -343,6 +343,7 @@ For uploads that are not done by `vpk` (Tauri, extension zips, other files).
|
||||
- Secrets: `R2_RELEASES_ACCESS_KEY_ID`, `R2_RELEASES_SECRET_ACCESS_KEY`. Variable: `R2_ACCOUNT_ID`.
|
||||
- Tool: rclone (pinned version, checksum verified), configured only through env vars, as in the server backup script:
|
||||
`RCLONE_CONFIG_R2_TYPE=s3`, `RCLONE_CONFIG_R2_PROVIDER=Cloudflare`, `RCLONE_CONFIG_R2_ENDPOINT=https://<account>.r2.cloudflarestorage.com`, `RCLONE_CONFIG_R2_REGION=auto`, `RCLONE_CONFIG_R2_NO_CHECK_BUCKET=true`, keys from secrets.
|
||||
No other variable may start with `RCLONE_`: rclone reads every `RCLONE_<FLAG>` as that flag, and the pin `RCLONE_VERSION` broke `rclone version` in v2026.11.3, before anything was uploaded. The pins are `PINNED_RCLONE_*` since v2026.11.4.
|
||||
- Steps: `rclone copy <versioned-dir> r2:poli0981-releases/<app>/` (never `sync`, never `delete`), then `rclone copyto` each feed file, then `curl -fsSI https://releases.poli0981.dev/<app>/<feed>` as a smoke test.
|
||||
- Runs on any tag (`refs/tags/*`, push or dispatch), not only `v*`: free-steam-games-list releases its apps from `desktop-v*` and `android-v*` tags (ops v2026.11.3). Feeds land at `<app>/<file name>`, so two feeds of one app need two names (`latest.json`, `android-latest.json`).
|
||||
- Permissions: `contents: read` only.
|
||||
@@ -353,7 +354,7 @@ Qodana CLI scan for any stack; replaces `JetBrains/qodana-action`.
|
||||
|
||||
- Inputs: `runs-on` (`ubuntu-latest` | `windows-latest`), `linter`, `config`, `project-dir`, `repository-root`, `working-directory` (where `package.json` and the lockfile are), `extra-args`, `package-manager` (`none` | `npm` | `pnpm`; installs with scripts off), `node-version` / `node-version-file`, `dotnet-version` / `dotnet-global-json-file`, `prepare-command`, `within-docker`, `artifact-name`. Secret: `QODANA_TOKEN`.
|
||||
- A project in a subdirectory passes `project-dir: <dir>` with `repository-root: .`; `extra-args` reaches `qodana scan` split on spaces (qodana-rust in Docker: `-u root -e CARGO_HOME=/data/cache/cargo`). Added in ops v2026.11.3 for free-steam-games-list's three projects.
|
||||
- Native mode by default. `within-docker: true` is for linters without one (`qodana-rust`): on `windows-latest` Docker Desktop runs the image (**VERIFY**).
|
||||
- Native mode by default. `within-docker: true` is for linters without one (`qodana-rust`): on `windows-latest` Docker Desktop runs the image (verified 2026-11-24 with free-steam-games-list's qodana-js and qodana-rust; the Rust image's apt and timeout traps are in [its guide](migration/free-steam-games-list.md)).
|
||||
- CLI pinned and SHA-256 verified; the report stays an artifact (no code-scanning UI); runs started by `renovate-bot` skip the job.
|
||||
|
||||
### 4.6 Tools and maintainer scripts in the ops repo
|
||||
@@ -380,8 +381,8 @@ Qodana CLI scan for any stack; replaces `JetBrains/qodana-action`.
|
||||
1. `vpk download s3 --channel win -o releases` (previous release, for delta packages; first release: ignore the "nothing found" result).
|
||||
2. `vpk pack -u <PackId> -v <version> -p <publish dir> -o releases …` (existing flags of the repo).
|
||||
3. `vpk upload s3 --channel win -o releases --keepMaxReleases 10`.
|
||||
- **VERIFY on the pilot:** that `vpk … s3` works against R2 with `--endpoint` only (if signing fails, try adding `--region auto`), and that the keys land under `<app>/`. If `vpk … s3` cannot talk to R2: `vpk download http --url https://releases.poli0981.dev/<app>` + `publish-r2.yml` (packages first, `releases.win.json`, `assets.win.json` and `RELEASES` last).
|
||||
- Public files: the stable-named installer and portable zip that `vpk pack` writes (`<PackId>-Setup.exe` / `<PackId>-Portable.zip`; some Velopack versions add `-win-`: copy the exact names from the pilot's `releases/` folder). Both are matched by the cache-bypass rule. Link them from README and the Gitea release notes.
|
||||
- **Verified 2026-11-26 on CommandForge** (vpk 1.2.161, [its guide](migration/commandforge.md)): `vpk … s3` works against R2 with the endpoint only (no region, default checksums), the objects land under `<app>/`, and vpk reads every option from `VPK_<OPTION>` environment variables. `vpk download s3` on an empty folder finds 0 releases and exits 0, so a dispatched dry run can check the credentials. `vpk upload s3` publishes the packages, Setup.exe and Portable.zip, then `releases.win.json` and `RELEASES` (`no-cache`); not `assets.win.json`. Fallback if it ever cannot talk to R2: `vpk download http --url https://releases.poli0981.dev/<app>` + `publish-r2.yml` (packages first, `releases.win.json` and `RELEASES` last).
|
||||
- Public files: the stable-named installer and portable zip that `vpk pack` writes, with the channel in the name: `<PackId>-win-Setup.exe` / `<PackId>-win-Portable.zip` (CommandForge, vpk 1.2.161). Both are matched by the cache-bypass rule. Link them from README and the Gitea release notes.
|
||||
- Other platforms later: Velopack makes a `.pkg` + portable `.zip` on macOS (needs a Mac; no macOS runner) and only a portable `.AppImage` on Linux. Feeds are `releases.osx.json` / `releases.linux.json`. All of these names are already covered by the cache-bypass rule (§1).
|
||||
- App code: `new UpdateManager("https://releases.poli0981.dev/<app>")` (HTTP source). Remove `GithubSource` usage and any GitHub token logic.
|
||||
- Qodana: native mode on Windows (§3.5).
|
||||
@@ -397,7 +398,7 @@ Qodana CLI scan for any stack; replaces `JetBrains/qodana-action`.
|
||||
- CI on `ubuntu-latest`: install, lint, typecheck, build, test.
|
||||
- Deploy job on `main`: `wrangler deploy` with `CLOUDFLARE_API_TOKEN`/`CLOUDFLARE_ACCOUNT_ID`. Disconnect Cloudflare's GitHub integration for the project (maintainer, dashboard).
|
||||
- Scheduled data refresh jobs (e.g. freeitchgames.win catalog): keep as a scheduled workflow, daily, inside 13:00–16:00 UTC (decided: delays when the PC is off are accepted). Update user-facing text that promises a time (e.g. "updated daily around 20:00–23:00 Vietnam time, may be delayed").
|
||||
- **RepoLens:** its data source was the GitHub API (GraphQL, with the suspended account's token). It moves to the Gitea REST API in its own change after the CI migration: [migration/repolens.md](migration/repolens.md).
|
||||
- **RepoLens:** its data source was the GitHub API (GraphQL, with the suspended account's token). It reads the Gitea REST API anonymously since 2026-11-26 (v1.6.0); what that took is in [migration/repolens.md](migration/repolens.md).
|
||||
|
||||
### 5.4 Chrome extension: WXT + Svelte 5 (BookmarkMagic)
|
||||
- CI on `ubuntu-latest`: build + zip. Store submission stays manual or uses store API secrets (repo-level).
|
||||
@@ -427,6 +428,7 @@ Qodana CLI scan for any stack; replaces `JetBrains/qodana-action`.
|
||||
- Events caused by the job token start no workflow: Gitea skips the Actions user, as GitHub skips `GITHUB_TOKEN` (scheduled workflows are still refreshed). A release or PR made by CI triggers nothing. `workflow_dispatch` through the API starts a run whoever calls it; the job token needs `actions: write` (source).
|
||||
- **A dispatched run writes no commit status** (measured 2026-11-24 on 28.4.0, poli0981-dev): statuses come from push and pull_request runs only. A bot PR that waits for a dispatched CI run (D5) never meets a required check, and merging is refused with 405 "Not all required status checks successful". Record the result yourself from a later job of the same run: `POST /repos/{owner}/{repo}/statuses/{sha}` `{state, context, target_url}` with the job token (`contents: write`), using a context the protection pattern matches (`CI / build (workflow_dispatch)` for `CI / build (*)`).
|
||||
- Steps and processes (measured 2026-11-24): a process a step starts in the background (`cmd &`) is gone when the next step starts, so start a server and run what needs it in the same step. In the job container `localhost` can resolve to ::1 for a server and to 127.0.0.1 for a client (Node's fetch): bind and call `127.0.0.1` explicitly. An action whose tarball holds paths that differ only in case cannot be unpacked (the runner's action cache sits on the Windows disk), e.g. `treosh/lighthouse-ci-action`; run its CLI with `npx` instead.
|
||||
- .NET on the runners (measured 2026-11-26, HashTool): the Docker images (`docker.gitea.com/runner-images`) have **no ICU**, and .NET stops at start-up without it. Jobs that need cultures (tests, an app's smoke test) `apt-get install libicu-dev` (the container runs as root); jobs that only restore, build or run tools set `DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1`. On the host-mode Windows runner, `shell: bash` may resolve to `System32\bash.exe` (WSL), there is no `python3`, and PowerShell cannot load `Microsoft.PowerShell.Archive` (`Compress-Archive` fails; use `[IO.Compression.ZipFile]`): write Windows steps in `pwsh`.
|
||||
- The job token reads any public repo of the instance; another private repo only with the owner's cross-repo Actions setting (source).
|
||||
- Run links `/{owner}/{repo}/actions/runs/{id}` take the run ID; old run-number links redirect (source).
|
||||
- Issue templates: Gitea reads `.gitea/ISSUE_TEMPLATE`, `.github/ISSUE_TEMPLATE` and `.github/issue_template` (source). GitLab only reads `.gitlab/issue_templates/*.md` and `.gitlab/merge_request_templates/*.md`.
|
||||
@@ -474,19 +476,20 @@ None (2026-11-23). A new question goes into [`migration/README.md`](migration/RE
|
||||
| softharbor | web | ☑ merged 2026-11-24 (Gitea #1, #2, #3) | ☑ | ☑ | ☑ | ☑ v1.5.0 deployed by the CI `deploy` job, Gitea release published by hand | ☑ | `17 13 * * *`, `59 13 * * *`, `43 14 * * 1`, `37 15 * * 2` |
|
||||
| poli0981-dev | web | ☑ merged 2026-11-24 (Gitea #1, #3) | ☑ | ☑ | ☑ | ☑ v2.4.0 deployed by the CI `deploy` job | ☑ | `13 14 * * 3` (security) |
|
||||
| tilepier | web | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed |
|
||||
| HashTool | dotnet | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| youtube-generator | web + tauri | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| HashTool | dotnet | ☑ merged 2026-11-26 (Gitea #2) | ☑ | ☑ | ☑ | ☑ 1.3.1 on R2 (`vpk upload s3` win + linux, rclone for `<version>/`), Gitea release by CI | ☑ | `43 13 * * 1` (security), `53 13 * * 4` (qodana) |
|
||||
| youtube-generator | web + tauri | ☑ merged 2026-11-26 (Gitea #2, #3, #4) | ☑ | ☑ | ☑ | ☑ v1.7.0 on R2, site deployed by the CI `deploy` job | ☑ | `37 13 * * 3` (security), `53 15 * * 1` (rust) |
|
||||
| youtube-auto-post | python | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed |
|
||||
| jsonPrism | web + tauri | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| MarkLens | flutter | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| jsonPrism | web + tauri | ☑ merged 2026-11-27 (Gitea #2) | ☑ (two Discord webhooks missing, see its guide) | ☑ | ☑ | ☑ v2.3.0 on R2, site deployed by the CI `deploy` job | ☑ | `19 13 * * 5` (security) |
|
||||
| MarkLens | flutter | ☑ merged 2026-11-27 (Gitea #2, #3) | ☑ | ☑ | ☑ | ☑ v1.1.0 on R2 with the `latest.json` feed, Gitea release by CI | ☑ | `23 15 * * 5` (security) |
|
||||
| captureimg | dotnet | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| QuoteAtlas | web + tauri | not on Gitea yet | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| AppLedger | dotnet | not on Gitea yet | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| WardSweep | rust + dotnet | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| free-steam-games-list | data + web + tauri | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| free-games-itchio-list | data + web + tauri | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| RepoLens | web | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed |
|
||||
| free-steam-games-list | data + web + tauri | ☑ merged 2026-11-24 (Gitea #1) | ☑ | ☑ | ☑ | ☑ v4.8.0 / apps 2.6.0 on R2 | ☐ | `3 13 * * *` (data-daily), `49 15 * * 2` (security) |
|
||||
| free-games-itchio-list | data + web + tauri | ☑ merged 2026-11-25 (Gitea #1) | ☑ | ☑ | ☑ | ☑ v4.7.0 on R2 | ☑ | `27 13 * * *` (update), `49 13 * * *` (refresh), `1 15 * * 3` (security) |
|
||||
| RepoLens | web | ☑ merged 2026-11-26 (Gitea #2) | ☑ | ☑ | ☑ | ☑ v1.6.0 deployed by the CI `deploy` job | ☑ private (2026-11-27) | `11 13 * * *` (smoke), `33 14 * * 2` (security) |
|
||||
| content | content (submodule of poli0981-dev) | ☑ main on Gitea 2026-11-24 | n/a | n/a | n/a | n/a | ☑ | none |
|
||||
| CommandForge | dotnet | ☑ merged 2026-11-26 (Gitea #2, #3) | ☑ | ☑ | ☑ | ☑ v2.3.0 on R2 (`vpk upload s3`), Gitea release by CI | ☑ | `11 14 * * 5` (security) |
|
||||
| any repo not listed (not inventoried) | | | | | | | | |
|
||||
|
||||
The cron slots themselves are registered in [migration/README.md](migration/README.md#cron-slots-utc--the-registry).
|
||||
|
||||
+22
-22
@@ -36,18 +36,19 @@ For a repo without a guide, the same prompt works with only the runbook: §3.1 s
|
||||
| `poli0981-dev` | web (Astro, Workers) + admin | **Done.** Merged 2026-11-24 (Gitea #1, #3); v2.4.0 deployed by the CI `deploy` job, admin publishing through Gitea | [poli0981-dev.md](poli0981-dev.md) |
|
||||
| `content` (`E:\content`) | content submodule of `poli0981-dev` | **Done** with it (2026-11-24) | [poli0981-dev.md](poli0981-dev.md#the-content-submodule-poli0981content-econtent) |
|
||||
| `tilepier` | web (SvelteKit, Workers) | not started | [tilepier.md](tilepier.md) |
|
||||
| `HashTool` (`E:\hash`) | Avalonia/.NET 10 + NativeAOT CLI, Velopack win/osx/linux | not started | [hashtool.md](hashtool.md) |
|
||||
| `youtube-generator` (`E:\youtube`) | web (Workers) + Tauri + Android | not started | [youtube-generator.md](youtube-generator.md) |
|
||||
| `HashTool` (`E:\hash`) | Avalonia/.NET 10 + NativeAOT CLI, Velopack win/linux (osx dropped) | **Done.** Merged 2026-11-26 (Gitea #2); 1.3.1 released to R2 | [hashtool.md](hashtool.md) |
|
||||
| `youtube-generator` (`E:\youtube`) | web (Workers) + Tauri + Android | **Done.** Merged 2026-11-26 (Gitea #2, #3, #4); v1.7.0 released to R2, the site deployed by the CI `deploy` job | [youtube-generator.md](youtube-generator.md) |
|
||||
| `youtube-auto-post` | Python bot on a schedule | not started | [youtube-auto-post.md](youtube-auto-post.md) |
|
||||
| `jsonPrism` | web + API (Workers) + Tauri + Android | not started | [jsonprism.md](jsonprism.md) |
|
||||
| `MarkLens` (`E:\marklens`) | Flutter desktop (Windows, Linux) | not started | [marklens.md](marklens.md) |
|
||||
| `jsonPrism` | web + API (Workers) + Tauri + Android | **Done.** Merged 2026-11-27 (Gitea #2); v2.3.0 released to R2, the site deployed by the CI `deploy` job | [jsonprism.md](jsonprism.md) |
|
||||
| `MarkLens` (`E:\marklens`) | Flutter desktop (Windows, Linux) | **Done.** Merged 2026-11-27 (Gitea #2, #3); v1.1.0 released to R2 with the `latest.json` update feed, the first Flutter repo; maintenance mode | [marklens.md](marklens.md) |
|
||||
| `captureimg` (`E:\capture\captureimg`) | .NET/WPF, Velopack | not started | [captureimg.md](captureimg.md) |
|
||||
| `QuoteAtlas` (`E:\qoute`) | web + Tauri + Android | **not on Gitea yet** (origin is still GitHub) | [quoteatlas.md](quoteatlas.md) |
|
||||
| `AppLedger` (`E:\appledger`) | .NET/WPF, Velopack, never released | **not on Gitea yet** (origin is still GitHub) | [appledger.md](appledger.md) |
|
||||
| `WardSweep` (`E:\wardsweep`) | Rust broker + .NET/WPF UI, Velopack | not started | [wardsweep.md](wardsweep.md) |
|
||||
| `free-steam-games-list` (`E:\2`) | Python data pipeline + SvelteKit on Workers + Tauri + Android | not started; **the site reads its data from GitHub** | [free-steam-games-list.md](free-steam-games-list.md) |
|
||||
| `free-games-itchio-list` (`E:\game`) | Python data pipeline + React on Workers + Tauri + Android | not started; the site is frozen at its last build | [free-games-itchio-list.md](free-games-itchio-list.md) |
|
||||
| `RepoLens` (`E:\repo`) | SvelteKit on Workers, data from the GitHub API | not started; **the site has no data source** | [repolens.md](repolens.md) |
|
||||
| `free-steam-games-list` (`E:\2`) | Python data pipeline + SvelteKit on Workers + Tauri + Android | **Done.** Data restored 2026-11-24 (49 GitHub-only data commits pushed, the Worker reads Gitea); migration merged as Gitea #1; v4.8.0 / apps 2.6.0 released to R2 | [free-steam-games-list.md](free-steam-games-list.md) |
|
||||
| `free-games-itchio-list` (`E:\game`) | Python data pipeline + React on Workers + Tauri + Android | **Done.** Catalog restored 2026-11-24 from the live site (+235 games); migration merged as Gitea #1; v4.7.0 released to R2 | [free-games-itchio-list.md](free-games-itchio-list.md) |
|
||||
| `RepoLens` (`E:\repo`) | SvelteKit on Workers, data from the Gitea API | **Done.** Merged 2026-11-26 (Gitea #2); deployed by the CI `deploy` job, v1.6.0; repository private on Gitea | [repolens.md](repolens.md) |
|
||||
| `CommandForge` (`E:\cmd`) | .NET/WPF, Velopack | **Done.** Merged 2026-11-26 (Gitea #2, #3); v2.3.0 released to R2, the first Velopack app there | [commandforge.md](commandforge.md) |
|
||||
| any repo not listed | — | not inventoried | run the inventory |
|
||||
|
||||
## Cron slots (UTC) — the registry
|
||||
@@ -56,21 +57,21 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
|
||||
|
||||
| Slot (UTC) | Days | Repo · workflow | Status |
|
||||
|---|---|---|---|
|
||||
| 13:03 | daily | free-steam-games-list · data-daily | proposed |
|
||||
| 13:11 | daily | RepoLens · production smoke | proposed |
|
||||
| 13:03 | daily | free-steam-games-list · data-daily | live |
|
||||
| 13:11 | daily | RepoLens · production smoke | live |
|
||||
| 13:17 | daily | softharbor · quarantine | live |
|
||||
| 13:19 | Fri | jsonPrism · security | proposed |
|
||||
| 13:19 | Fri | jsonPrism · security | live |
|
||||
| 13:23 | daily | pipdock · security-scan | proposed |
|
||||
| 13:27 | daily | free-games-itchio-list · update (ingest) | proposed |
|
||||
| 13:27 | daily | free-games-itchio-list · update (ingest) | live |
|
||||
| 13:31 | daily | renovate-config · renovate | live |
|
||||
| 13:37 | Wed | youtube-generator · security (ops caller) | proposed |
|
||||
| 13:41 | Tue | youtube-generator · security (local: actionlint, zizmor) | proposed |
|
||||
| 13:43 | Mon | HashTool · security (ops caller) | proposed |
|
||||
| 13:37 | Wed | youtube-generator · security (workflow lint + ops caller in one workflow; its 13:41 Tue slot was not needed) | live |
|
||||
| 13:43 | Mon | HashTool · security (local checks, workflow lint and the ops caller in one workflow; its 15:19 Tue slot was not needed) | live |
|
||||
| 13:47 | daily | pipdock · ci-integration (nightly) | proposed |
|
||||
| 13:49 | daily | free-games-itchio-list · refresh | proposed |
|
||||
| 13:53 | Thu | HashTool · qodana | proposed |
|
||||
| 13:49 | daily | free-games-itchio-list · refresh | live |
|
||||
| 13:53 | Thu | HashTool · qodana | live |
|
||||
| 13:59 | daily | softharbor · vt-recheck | live |
|
||||
| 14:07 | Sun | .github · weekly-digest | live |
|
||||
| 14:11 | Fri | CommandForge · security (workflow lint + ops caller in one workflow) | live |
|
||||
| 14:13 | Wed | poli0981-dev · security | live |
|
||||
| 14:17 | Mon | captureimg · docs (external links) | proposed |
|
||||
| 14:19 | Thu | pipdock · security (ops caller, D4) | proposed |
|
||||
@@ -78,27 +79,26 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
|
||||
| 14:27 | Mon | WardSweep · dependency audit | proposed |
|
||||
| 14:29 | daily | tilepier · e2e | proposed |
|
||||
| 14:31 | Thu | AppLedger · security | proposed |
|
||||
| 14:33 | Tue | RepoLens · security | proposed |
|
||||
| 14:33 | Tue | RepoLens · security | live |
|
||||
| 14:37 | Mon | ticktune · audit | live |
|
||||
| 14:41 | Fri | frameledger · security | proposed |
|
||||
| 14:43 | Mon | softharbor · link-check | live |
|
||||
| 14:47 | daily | youtube-auto-post · notify (YA1) | proposed |
|
||||
| 14:53 | Tue | pipdock · ci-integration (weekly fixtures) | proposed |
|
||||
| 14:59 | Sun | bookmarkmagic · security | proposed |
|
||||
| 15:01 | Wed | free-games-itchio-list · security | proposed |
|
||||
| 15:01 | Wed | free-games-itchio-list · security | live |
|
||||
| 15:03 | Thu | WardSweep · security (local, WS1) | proposed |
|
||||
| 15:07 | Thu | tilepier · security | proposed |
|
||||
| 15:11 | Sat | captureimg · security | proposed |
|
||||
| 15:13 | Mon | ticktune · qodana | live |
|
||||
| 15:19 | Tue | HashTool · security (local: licences, actionlint, zizmor) | proposed |
|
||||
| 15:23 | Fri | MarkLens · security | proposed |
|
||||
| 15:23 | Fri | MarkLens · security (workflow lint + ops caller in one workflow) | live |
|
||||
| 15:29 | Wed | ticktune · security | live |
|
||||
| 15:33 | Sun | QuoteAtlas · security | proposed |
|
||||
| 15:37 | Tue | softharbor · security | live |
|
||||
| 15:41 | Mon | bookmarkmagic · qodana | proposed |
|
||||
| 15:47 | Thu | youtube-auto-post · security | proposed |
|
||||
| 15:49 | Tue | free-steam-games-list · security | proposed |
|
||||
| 15:53 | Mon | youtube-generator · rust | proposed |
|
||||
| 15:49 | Tue | free-steam-games-list · security | live |
|
||||
| 15:53 | Mon | youtube-generator · rust | live |
|
||||
|
||||
## Decisions that cover several repos
|
||||
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
# CommandForge — migration guide
|
||||
|
||||
> Written 2026-11-26 against `main` @ `ea60d58` (local clone `E:\cmd`, Gitea `poli0981/CommandForge`). Profile: .NET 10 WPF (`net10.0-windows`, `.slnx`), Velopack (channel `win`, ReadyToRun publish with an elevated helper next to the app), releases from GPG-signed annotated tags (runbook §5.1). Maintenance mode. It had no guide before its session: the inventory ran in it. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-26**, the first Velopack app released to R2. The migration merged as Gitea #2 (`f59bc54`, 12
|
||||
commits, with the release commit), tagged and released as **v2.3.0**: Velopack feed and packages on
|
||||
`releases.poli0981.dev/commandforge/`, `2.3.0/SHA256SUMS` and a CycloneDX SBOM next to them, a Gitea release with the
|
||||
notes and links, announced through the ops `announce-release.yml` (pinned at ops v2026.11.4, `c133a00`). #3 corrected
|
||||
two docs details the release showed; #4 moved the ops pins to v2026.11.5, whose notifier names CommandForge a Velopack
|
||||
app. Renovate's onboarding PR #1 was closed: #2 adds `renovate.json`. What the move found:
|
||||
|
||||
- **`vpk … s3` works against R2 as the runbook guessed** (vpk 1.2.161): `VPK_BUCKET`, `VPK_PREFIX=commandforge/`,
|
||||
`VPK_ENDPOINT=https://<account>.r2.cloudflarestorage.com` and the keys, no region, default checksums. vpk reads every
|
||||
option from `VPK_<OPTION>` (checked locally against a dead endpoint first). `vpk download s3` on the empty folder
|
||||
logged "Found 0 release(s) in remote file … No full / applicable release was found" and exited 0, so a dispatched
|
||||
**dry run** (build, pack, SBOM, checksums, the download; no upload) checks the R2 credentials before the first tag.
|
||||
`vpk upload s3` sent the full package, Portable.zip and Setup.exe, then `releases.win.json` and `RELEASES`
|
||||
(`no-cache`), in 8 s. It does **not** publish `assets.win.json`, which `vpk pack` writes locally. The public names
|
||||
carry the channel: `CommandForge-win-Setup.exe`, `CommandForge-win-Portable.zip`. The workflow keeps one retry with
|
||||
`--disableChecksumValidation` in case R2 ever refuses the SDK's checksums; it was not needed.
|
||||
- **Release layout**: a local `release.yml`, not `reusable-desktop-csharp.yml`, because `scripts/pack.ps1` publishes
|
||||
ReadyToRun and checks that the elevated helper is in the publish folder. `scripts/release-assets.ps1` (runs locally
|
||||
too) writes the CycloneDX SBOM (`cyclonedx` 6.3.2 as a local tool, `.slnx` supported, test projects left out,
|
||||
build-only packages kept with scope `excluded`), `SHA256SUMS` and the notes from CHANGELOG.md. `SHA256SUMS` lists
|
||||
only what the version ships (Setup, Portable, its packages, the SBOM), not the feed files that vpk rewrites on every
|
||||
upload: that was the bug of the GitHub-era `checksums.txt`. The ops `publish-r2.yml` puts `<version>/` up after
|
||||
vpk; then `gitea-release-action`, then the announcer. The tag must equal `<Version>` in `Directory.Build.props`.
|
||||
- **Downloaded and compared after the release**: Setup.exe, Portable.zip, the full package and the SBOM all match
|
||||
`SHA256SUMS`, and the feed's SHA-256 of the full package matches too. Every public file answers 200 with
|
||||
`cf-cache-status: DYNAMIC`, the versioned ones included (the edge does not cache this folder today).
|
||||
- **VirusTotal**: the optional step found `VT_API_KEY` although the repository has no such secret, so it is a
|
||||
user-level secret; the scan and its links in the notes worked.
|
||||
- **Report a bug** opens `gitlab.com/poli0981/CommandForge/-/issues/new?issue[title]=…&issue[description]=…` with the
|
||||
Bug template's sections answered (no `issuable_template`: a template would replace the description). GitLab
|
||||
redirects `issues/new` to `work_items/new` and keeps both fields (checked signed in, nothing submitted). A test keeps
|
||||
the app's sections equal to `.gitlab/issue_templates/Bug.md`, another fails if any source file links to
|
||||
`github.com/poli0981`. The legal texts the app links (EULA, LICENSE, DISCLAIMER, PRIVACY) open on Gitea's
|
||||
`/src/branch/main/…`; the terms version stays the same (as FG5: same request, another host).
|
||||
- **Installs of 2.2.0 and older** asked GitHub (`GithubSource`) and see 404 ("No release feed was found"): they need
|
||||
2.3.0 once by hand. The notes, README, UPDATES and CHANGELOG say so (runbook §7 item 5).
|
||||
- **CI on the single runner** (`anon-win`, all labels, one job at a time): the PR's 11 checks took ~17 min, the
|
||||
release ~4 min. Qodana's CLI in native mode on Windows reported zero problems, as the action did; gitleaks found
|
||||
nothing over the full history; osv-scanner has no lockfile to read (the repo has no `packages.lock.json`; the
|
||||
NuGetAudit restore covers NuGet). Until #2 merged, Gitea listed the GitHub-era `.github/workflows` of `main`.
|
||||
- **Branch protection on `main`** (D6): no push, no force push, status checks `Build / build (*)` and
|
||||
`Build / package (*)` (Gitea lists both `(pull_request)` and `(push)` contexts). Merge commits made in the UI are
|
||||
unsigned ("no key available to sign"), so signed commits are not required.
|
||||
- **Logs and runs without a token**: `GET /repos/{owner}/{repo}/actions/runs/{id}/jobs` and
|
||||
`/commits/{sha}/status` answer; `GET …/actions/runs` and the API's job-log route answer 401. From the signed-in
|
||||
browser, `/{owner}/{repo}/actions/runs/{run}/jobs/{job id}/logs` returns the raw log.
|
||||
- **On the PC**: Git for Windows' ssh was refused by Gitea (`Permission denied (publickey)`) while the Windows
|
||||
OpenSSH agent holds the key: push with `GIT_SSH_COMMAND=C:/Windows/System32/OpenSSH/ssh.exe`. GPG signing failed
|
||||
with "sending fd … to keyboxd: Input/output error" until `gpgconf --kill keyboxd`.
|
||||
|
||||
## Decided (2026-11-26)
|
||||
|
||||
- D1 (SonarCloud and `dotnet-sonarscanner` removed; SonarAnalyzer stays as a Roslyn analyzer), D2 (no triage
|
||||
workflow existed), D6, D7 (attestations, Scorecard, dependency review, the GitHub SBOM go; a CycloneDX SBOM is
|
||||
generated in the build and uploaded under `<version>/`), D11 (Discussions links removed).
|
||||
- **CF1 — release workflow local**, as above; manual runs on a branch are dry runs.
|
||||
- **CF2 — VirusTotal stays optional**, skipped without `VT_API_KEY`.
|
||||
|
||||
## Workflows (`.github/workflows` → `.gitea/workflows`)
|
||||
|
||||
| File | Before | Now |
|
||||
|---|---|---|
|
||||
| `build.yml` | build/test/format + package smoke on `windows-latest`, `actions/cache`, upstream `upload-artifact` | Moved; tool-cache SDK, the PC's NuGet cache (no `actions/cache`), Gitea artifact action |
|
||||
| `codeql.yml` | CodeQL C# + actions, cron `37 14 * * 1` | **Deleted** → `security.yml`: actionlint + shellcheck job and the ops `security.yml` (`dotnet: true`, `dotnet-runs-on: windows-latest`, `dotnet-solution: CommandForge.slnx`), cron **`11 14 * * 5`** |
|
||||
| `sonarcloud.yml`, `scorecard.yml` (cron `25 6 * * 1`), `dependency-review.yml` | | **Deleted** (D1, D7) |
|
||||
| `qodana.yml` | `qodana-action`, token check job | Caller of `reusable-qodana.yml` (`windows-latest`, `dotnet-global-json-file`, `prepare-command: dotnet build …`) |
|
||||
| `release.yml` | `vpk download/upload github`, attestations, `gh` SBOM/checksums/notes, VirusTotal | CF1 |
|
||||
| `announce-release.yml`, `notify-ci-failure.yml` | ops callers `@c3e118a` (old path), `secrets: inherit` | ops v2026.11.4 + `ops_ref`, secrets by name; new `notify-release-pipeline.yml` |
|
||||
|
||||
`.github/dependabot.yml` → deleted; `renovate.json` (majors need Dashboard approval, no `Microsoft.Extensions.**` /
|
||||
`dotnet-sdk` majors, Velopack + vpk together). `.gitlab/issue_templates` (Bug, Feature request, Command, Translation,
|
||||
Accessibility) and the MR template added; `.github/ISSUE_TEMPLATE` kept for Gitea.
|
||||
|
||||
## Secrets
|
||||
|
||||
Repository: `DISCORD_CI_WEBHOOK`, `DISCORD_RELEASES_WEBHOOK`, `DISCORD_RELEASE_PIPELINE_WEBHOOK`, `QODANA_TOKEN`.
|
||||
User level: R2 keys + `R2_ACCOUNT_ID`, `VT_API_KEY`. Dropped: `SONAR_TOKEN`.
|
||||
|
||||
## Hand-off extras
|
||||
|
||||
Qodana Cloud: set the project's VCS URL to `https://git.poli0981.dev/poli0981/CommandForge.git` (maintainer).
|
||||
@@ -4,6 +4,47 @@
|
||||
|
||||
The site still serves its last build, but nothing reaches it: Workers Builds pulled from GitHub, the admin and the Worker's cron write through a GitHub App, and the pipeline has not run since the account went. CLAUDE.md's "GitHub Actions", "Worker" and gotchas 17–18 explain the moving parts.
|
||||
|
||||
**Done 2026-11-25.** The data restore went to `main` first; the migration merged as Gitea #1 (`8776c61`) and was
|
||||
released as **v4.7.0** (desktop + Android on R2). [free-steam-games-list](free-steam-games-list.md)'s notes
|
||||
apply here too (the bot token's Repository permission, Renovate and npm lockfiles, the dhi.io pin for qodana-rust,
|
||||
one runner, a waiting run cancelled by a third); what this repo added:
|
||||
|
||||
- **Gitea's `main` was a week behind and no clone had the rest**: it had been pushed from `E:\game`, whose last
|
||||
GitHub fetch was 2026-11-16, while GitHub's pipeline committed until 11-22. The live site still served the
|
||||
Workers Build of GitHub `d6e1fd9`, and its readable catalog JSON (only for `Origin: tauri://localhost`) is
|
||||
`JSON.stringify` of the repo files: rewritten with the pipeline's own `json_io.dumps` it is byte-identical (the
|
||||
catalog has no floats), so `data_game/` and `scripts/deleted_games.json` were restored from it (+235 games, −6;
|
||||
6,298). Proof: a local build reproduced the live `manifest-v1.json` exactly (pack names are content hashes),
|
||||
and every asset of that build existed on the live site (no code commit lost). Not recoverable:
|
||||
`scripts/state/*` and `temp_link.json` of 16–22 Nov; D1 had no item stuck in `queued`, so nothing needed
|
||||
re-adding. A site that bundles its data can be its own backup when the build is deterministic.
|
||||
- **One `release.yml`** replaced `release_desktop.yml` + `release_android.yml` (one `v*` tag → Windows host,
|
||||
`ubuntu-22.04` Docker, Android Docker → `SHA256SUMS` → `publish-r2.yml` → a draft). A `workflow_dispatch` on
|
||||
`main` builds without uploading; the dry run was green on its first try, after the maintainer's rustup was
|
||||
reinstalled (free-steam's last note).
|
||||
- **D16 works**: `commit_push.sh` writes `deploy=true` when the pushed commit touched the catalog, and the data
|
||||
workflows dispatch `deploy.yml` with the job token (`bash/dispatch.sh`). A run with only state changes
|
||||
dispatches nothing.
|
||||
- **The Worker's first cron on the new code** (04:23Z, 11-25) auto-approved 100 games in one `[auto]` commit as
|
||||
`poli0981-bot` (`automation_last_run`: no errors); that push started `update.yml`, whose ingest (+98 games,
|
||||
6,396) dispatched `deploy.yml`, and the site served that commit at 05:12Z.
|
||||
- **Publishing the draft announced nothing (FG4 does not hold as written)**: Gitea credits `release: published`
|
||||
to the release's publisher, which stays the Actions user that created the draft, even when the maintainer
|
||||
clicks Publish; so, as for any job-token event, no workflow started. `announce-release.yml` was dispatched
|
||||
with the tag instead, and the release process says so now. Every repo whose release workflow leaves a draft
|
||||
for the maintainer has the same gap.
|
||||
- **Qodana**: Rust goes through the reusable's `extra-args` (v2026.11.3), as gotcha 49 asks. qodana-python flagged
|
||||
the bodies of two `isinstance` guards in the pipeline as unreachable because their parameters were annotated
|
||||
`str`; annotated as `object`, the guards stay. gitleaks: 5 non-secrets (the GPG fingerprint in CLAUDE.md twice,
|
||||
two Access audience tags, the old extension's OpenPGP.js) in `.gitleaksignore`.
|
||||
- **A command-line merge is not marked merged**: `git merge --no-ff` + push left Gitea #1 open, because the
|
||||
repository's "autodetect manual merge" setting is off; it was closed by hand with the merge SHA. Renovate's
|
||||
onboarding PR (#2), opened before `renovate.json` reached `main`, was closed too; its preview proposed JDK 25
|
||||
for the Android job, so `renovate.json` keeps `java-jdk` majors manual.
|
||||
- **The single runner**: the deploy after the merge waited ~85 minutes behind other repositories' jobs
|
||||
(01:07 → 02:32Z), and an hourly `deploy-status.yml` run queued before the merge still ran after its file was
|
||||
gone (a queued run keeps its workflow).
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- **FG1 — the Worker (D12, D13).** `repo.ts` + `github.ts`: the GitHub App and GraphQL `createCommitOnBranch` + `expectedHeadOid` → the Gitea contents API with the `poli0981-bot` token and each file's `sha` as the lock; `commitWithRetry` rebuilds from the new head on a refusal, as now (**VERIFY** the refusal, README D12). Reads at head (`scripts/state/ingest_outcomes.json` for reconcile, `scripts/temp_link.json`, the chunks the admin edits): Gitea raw or `GET /repos/{owner}/{repo}/raw/{path}?ref=main`, which return the bytes as they are (no base64, no mojibake). A bot commit to `scripts/temp_link.json` starts `update.yml`, as the App's did. The Worker's Cron Trigger (`23 */4 * * *`) stays on Cloudflare.
|
||||
@@ -17,13 +58,13 @@ The site still serves its last build, but nothing reaches it: Workers Builds pul
|
||||
|
||||
| File | Do |
|
||||
|---|---|
|
||||
| `update.yml` | FG3 cron; dispatch `deploy.yml` after a data commit (FG2); `concurrency: ingest` with `queue: max` (**VERIFY**, README) |
|
||||
| `update.yml` | FG3 cron; dispatch `deploy.yml` after a data commit (FG2); `concurrency: ingest` (Gitea ignores `queue: max`: dropped) |
|
||||
| `refresh.yml` | FG3 cron; Gitea artifact actions for the patch; dispatch `deploy.yml` after apply (FG2) |
|
||||
| `force_update.yml` | Move; its dispatch of `refresh.yml` goes through the Gitea API (job token, `actions: write`) |
|
||||
| `notify-failure.yml` | Move; the "failed Cloudflare build" case now comes from `deploy.yml` |
|
||||
| `deploy-status.yml` | **Delete** (FG3) with `bash/cf_build_status.sh` |
|
||||
| `python-ci.yml`, `webapp-ci.yml` | Move (hash-locked pip, `npm ci --ignore-scripts`) |
|
||||
| `qodana.yml` | Callers of `reusable-qodana.yml`: TypeScript (native, `project-dir: webapp`, `package-manager: npm`), Python (native, `prepare-command` builds `.venv` and appends `QODANA_PYTHON_PATH=…` to `$GITHUB_ENV`). Rust needs `-u root -e CARGO_HOME=…` (gotcha 49), which the reusable cannot pass yet: it leaves Qodana unless the ops repo adds an `extra-args` input |
|
||||
| `qodana.yml` | Callers of `reusable-qodana.yml`: TypeScript (native, `project-dir: webapp`, `package-manager: npm`), Python (native, `prepare-command` builds `.venv` and appends `QODANA_PYTHON_PATH=…` to `$GITHUB_ENV`). Rust (`windows-latest`, `within-docker`) passes `-u root -e CARGO_HOME=…` (gotcha 49) through the reusable's `extra-args` (v2026.11.3) |
|
||||
| `sonarcloud.yml` | **Delete** (D1) with `sonar-project.properties`; gotcha 41 and the coverage notes for Sonar go from CLAUDE.md |
|
||||
| `release_desktop.yml`, `release_android.yml` | FG4 |
|
||||
| `announce-release.yml`, `notify-release-pipeline.yml` | ops callers at `c3e118a` → `.gitea/workflows/<x>.yml@<ops-sha>` with `ops_ref` (that fixes the "checks out its script from `main`" note) |
|
||||
|
||||
@@ -4,6 +4,79 @@
|
||||
|
||||
**This is an incident, not only a migration.** The Worker reads every shard from `raw.githubusercontent.com/poli0981/free-steam-games-list/main`, which answers 404 since the suspension (checked 2026-11-23): the site serves only what its caches still hold. The admin writes through a GitHub App, the activity feed and the desktop update feed read GitHub, and the pipeline has not run since the account went. CLAUDE.md is long and load-bearing: the session reads its Pipeline and Worker sections before touching anything.
|
||||
|
||||
**Done 2026-11-24.** The data fix went to `main` first (the Worker reads Gitea, deployed by hand with wrangler);
|
||||
the migration merged as Gitea #1 and was released as **v4.8.0 "Moving Day" / apps 2.6.0**. What the move found:
|
||||
|
||||
- **Gitea's `main` was 49 commits behind GitHub**: the import predated five days of pipeline commits
|
||||
(2026-11-17 to 11-22, about 110 auto-approved games among them). The clone's `github/main` still had them; they
|
||||
were fast-forwarded onto Gitea before anything else. Compare the forge copy with the last fetched GitHub ref
|
||||
before trusting an import.
|
||||
- **The Tauri updater key was lost with the account** (its private half lived only in GitHub's Actions secrets),
|
||||
so 2.6.0 ships a new one: installed desktop apps <= 2.5.2 cannot verify an update and must install 2.6.0 by
|
||||
hand (the old feed `/api/updates/desktop` answers 204 for good; 2.6.0 asks
|
||||
`/api/updates/desktop/v2/{target}/{arch}/{current_version}`). FS3's "installed apps keep updating" did not hold;
|
||||
for the other Tauri repos, check first that the signing key exists outside GitHub.
|
||||
- **R2 layout as built** (publish-r2 puts feeds at `<app>/<name>`): `desktop/<version>/…` and `latest.json`,
|
||||
`android/<version>/free-steam-games-list-<version>.apk`, `free-steam-games-list-latest.apk`,
|
||||
`android-latest.json`. Ops v2026.11.3 was cut for this repo: publish-r2 on any tag (its guard required
|
||||
`refs/tags/v*`, so `desktop-v*`/`android-v*` skipped the upload), `android-v` tags in notify-release-pipeline,
|
||||
and `working-directory` / `repository-root` / `extra-args` in reusable-qodana (subdirectory projects, Rust's
|
||||
`-u root`).
|
||||
- **Gitea cancels a waiting run** when a third joins its concurrency group (`models/actions/run.go`; `queue: max`
|
||||
is ignored), and stops any task after three hours. FS2's single daily workflow is the answer; every job's
|
||||
timeout is <= 170, and the rotation caps were scaled to the guide's budgets.
|
||||
- **Steam answers by the caller's country**: the jobs now run from Vietnam, so appdetails, store pages and the
|
||||
search send `cc=us`, as GetItems did.
|
||||
- **Workers Builds** had already lost its Git connection; `deploy.yml` deploys. Old `.github/workflows` ran on
|
||||
Gitea for the hours between the data fix and the merge (CodeQL and SonarCloud failed, no data job ran).
|
||||
- **qodana-rust's image is a Docker Hardened Image** (both `2026.2-eap` and `2026.3-eap`): its libraries are
|
||||
installed as `<v>+dhi0`, which sorts above the `<v>+deb13u0+dhi0` its own repository dhi.io ships, so every
|
||||
`-dev` package of a Tauri bootstrap reads as a downgrade and apt stops ("held broken packages"). The bootstrap
|
||||
in `web/src-tauri/qodana.yaml` pins dhi.io at 1001 and passes `--allow-downgrades`; any Tauri repo with a
|
||||
qodana-rust bootstrap needs the same two lines. Opening the Cargo project then took ~9 minutes in Docker
|
||||
Desktop on the PC, past the linter's default 10-minute limit on a cold cache:
|
||||
`properties: {qd.rust.configuration.timeout.minutes: "25"}`. The 2026.3-eap linter also misreads
|
||||
`tauri::generate_context!()` (`RsUnresolvedPath`, `RsTypeCheck` in `src/lib.rs`, excluded there with the
|
||||
reason). qodana-js and qodana-rust both ran in Docker Desktop on `windows-latest` (runbook §4.5's VERIFY
|
||||
holds); a download of the linter can fail with "unexpected EOF": re-run the failed job.
|
||||
- gitleaks found 8 non-secrets in the history (Access audience tags, the analytics token, a vendored OpenPGP.js
|
||||
regex), kept in `.gitleaksignore`; osv-scanner needed floors in the unpinned `requirements-dev.txt`, which it
|
||||
resolves by itself.
|
||||
- **publish-r2 at v2026.11.3 could not upload at all**: its pin `RCLONE_VERSION` is read by rclone as `--version`,
|
||||
and `rclone version` died before the first file. Fixed in **v2026.11.4** (`PINNED_RCLONE_*`, runbook §4.4). A
|
||||
release workflow runs the workflow file of its own tag, so `desktop-v2.6.0` / `android-v2.6.0` (nothing
|
||||
published from them) were moved, with the maintainer's OK, to the commit that pins v2026.11.4.
|
||||
- **The Windows build uses the maintainer's own rustup** (host mode): its `stable` had lost `bin\rustdoc.exe`, and
|
||||
`dtolnay/rust-toolchain` could neither update nor roll back ("failure removing component ... rustdoc.exe").
|
||||
A placeholder file and `rustup update stable` repaired it (1.99.1 -> 1.100.0).
|
||||
- **gitleaks' full-history fetch** (a ~164 MB pack) ran at ~12 MB/min inside the job container in the afternoon,
|
||||
against its 15-minute limit (twice timed out, once finished with seconds left), while the host and a bare
|
||||
container fetched it in under 40 s. Re-run on a timeout; if it keeps happening, raise the job's timeout.
|
||||
- **One runner is not enough once Renovate starts**: its first run after the merge opened pull requests across the
|
||||
repos, and the queue reached 80+ jobs (D15's second runner). Scheduled data jobs and releases wait their turn.
|
||||
- **The site's service worker answered Access's sign-in callback** (`/cdn-cgi/access/authorized`) from its
|
||||
offline shell, so `/admin` could not be signed in to from a browser that had the worker (pre-existing; fixed
|
||||
in Gitea #2 by adding `/cdn-cgi/` to `navigateFallbackDenylist`). Any PWA behind Cloudflare Access needs it.
|
||||
- **The Worker's bot token had the wrong permission**: `poli0981-bot` is a Bot account, which cannot sign in, so
|
||||
its tokens live in Site Administration → User Accounts → the bot, where each token's permissions are listed and
|
||||
every category starts at No access. The Worker's (`push2`) had `write:user` only: Gitea accepted it (a made-up
|
||||
token gets 401) and refused every repository call with 403, the public repository's reads included, so
|
||||
auto-approve, the Pipeline page and the Remove page all failed. Cure: a token with Repository at Read and
|
||||
write, as the Worker's `GITEA_BOT_TOKEN`; Gitea #6 makes the admin show Gitea's reason, not a bare 403. Check
|
||||
a Worker's token on that page, not only by its name.
|
||||
- **Renovate cannot update an npm lockfile without a github.com token**: the slim image installs Node on demand
|
||||
(`binarySource=install`), looking it up in `containerbase/node-prebuild`'s releases through GitHub's API;
|
||||
unauthenticated, that was rate-limited ("No tool releases found"), so the Tauri group's PR (#4) carried
|
||||
`Cargo.lock` only, with an artifact error on `web/package-lock.json`. Every npm repository meets it. In
|
||||
`renovate-config`: a read-only github.com token for those lookups, or the full image with
|
||||
`binarySource=global`.
|
||||
- **Kotlin's security update (#3, 1.9.25 → 2.4.20) is held**: Kotlin 2.2+ refuses the `kotlinOptions {}` block
|
||||
in `gen/android/app/build.gradle.kts`, and pull-request CI never builds the APK, so it would break only at the
|
||||
next `android-v` tag. It needs the `compilerOptions` migration and a real Android build.
|
||||
- **`rustup.exe` vanished from the maintainer's `~/.cargo/bin`** on 2026-11-25, after the release builds;
|
||||
`cargo`, `rustc` and the rest are symlinks to it, so they stopped too, on the host and for host-mode jobs.
|
||||
Reinstalling rustup restores them; the toolchains in `~/.rustup` stay.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- **FS1 — the Worker's sources (D12, D13).**
|
||||
|
||||
@@ -2,6 +2,42 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `8af82be` (local clone `E:\hash`, Gitea `poli0981/HashTool`). Profile: Avalonia 12 / .NET 10 app (`CheckHash`) + NativeAOT CLI (`hashtool`), Velopack on Windows, macOS and Linux (runbook §5.1). Maintenance mode since 1.3.0. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-26.** The migration merged as Gitea #2 (fast-forward to `c26a857`, 17 commits, with the release commit
|
||||
and the fixes the first runs asked for), and **1.3.1** was released to `releases.poli0981.dev/hashtool/` by the
|
||||
dispatched Release workflow. Renovate's onboarding PR #1 was closed (#2 adds `renovate.json`). What the move found:
|
||||
|
||||
- **The runner's Ubuntu images have no ICU.** Every .NET process died at start-up ("Couldn't find a valid ICU
|
||||
package"). Jobs that run the tests or the app install `libicu-dev`; jobs that only restore, build or run tools set
|
||||
`DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1`. The ops `security.yml` NuGetAudit job had the same problem on its default
|
||||
`ubuntu-latest`; fixed in ops v2026.11.5, which HashTool pins since #3 (its NuGetAudit job runs on the default
|
||||
`ubuntu-latest` again).
|
||||
- **Avalonia 12.2's XAML compiler names generated types and methods with U+0001.** Microsoft.CodeCoverage's Cobertura
|
||||
writer cannot put that into XML: all tests passed, then the test host crashed (exit -532462766). A plain
|
||||
`dotnet test` does not show it; CI's `--coverage` does. `eng/coverage.config` limits coverage to HashTool.Core, the
|
||||
only module the gate measures.
|
||||
- **Host-mode PowerShell cannot load `Microsoft.PowerShell.Archive`**, so `Compress-Archive` fails;
|
||||
`[IO.Compression.ZipFile]::CreateFromDirectory` works. `CheckHash.exe` is a GUI-subsystem program: PowerShell waits
|
||||
for it only through `Start-Process -Wait`. `shell: bash` is avoided on the host (`System32\bash.exe` is WSL) and so
|
||||
is `python3` (only `python` exists).
|
||||
- **Qodana through the ops reusable** (CLI, newer `qodana-dotnet`) rates `HashAlgorithmName.MD5` critical
|
||||
(`CsharpUsingCryptographyHashAlgorithmNameMD5`) and failed the gate; HashTool offers MD5 as a checksum, so the
|
||||
inspection is ignored for `HashFunction.cs`. Qodana Cloud only accepts VCS URLs on github.com, gitlab.com and
|
||||
bitbucket.org: the HASH project points at the GitLab mirror (`https://gitlab.com/poli0981/HashTool.git`), not Gitea.
|
||||
- **Release path.** Releases stay dispatch-based (`version`, `publish`; tags without `v`), so the ops `publish-r2.yml`
|
||||
(tag refs only) does not apply: the publish job uploads `hashtool/<version>/` (CLI archives, CycloneDX SBOMs,
|
||||
`SHA256SUMS`) with rclone pinned and checked like `publish-r2.yml`, then `vpk upload s3` publishes `linux` from
|
||||
Docker and `win` from the host. The Gitea release job creates the tag (`target_commitish`). vpk 1.2.161 names the
|
||||
Linux build `HashTool.AppImage` and also writes `RELEASES-linux`. The upgrade gate is off (HT2: the 1.1.3 portables
|
||||
were GitHub assets and are not on R2); `tests/Compat/LegacyClient` stays for a possible bridge release.
|
||||
- A transient DNS failure on the PC (`builds.dotnet.microsoft.com` not found during setup-dotnet) failed one job; a
|
||||
re-run passed. A full PR round (CI, Security, Qodana, Release dry run) took ~30 min on the single runner.
|
||||
- **Branch protection on `main`** (D6): no push, no force push, administrators included; required checks
|
||||
`CI / ci-ok (*)`, `Security / vulnerable-packages (*)`, `Security / licenses (*)`, `Security / workflow-lint (*)`,
|
||||
`Reusable / Security / Secrets (gitleaks) (*)`, `Reusable / Security / Dependencies (osv-scanner) (*)`,
|
||||
`Reusable / Security / .NET (NuGetAudit) (*)`.
|
||||
- The notifier `notify-release-pipeline.yml` reports a dispatched run with the branch (`main`) as its tag: Gitea's
|
||||
`workflow_run` payload carries no dispatch inputs.
|
||||
|
||||
The repo's CLAUDE.md and docs/RELEASING.md bind the session: Velopack invariants (pack id `HashTool`, channels `win`/`osx`/`osx-x64`/`linux`, exe `CheckHash`, tags **without** `v`), workflow rules (SHA pins, `persist-credentials: false`, per-job permissions, no `${{ }}` inside `run:`), `ci-ok` as the single required check, and **never run a built `Setup.exe`/`.pkg` on the maintainer's machine**. On Gitea, `windows-latest` *is* the maintainer's machine (host mode), so that last rule now applies to CI too.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
@@ -2,6 +2,56 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `9923c4c`. Profile: React/Vite web app + API Worker on Cloudflare (`jsonprism.poli0981.dev`) + Tauri 2 desktop (no updater) + Android APK (runbook §5.2, §5.3). Maintenance mode. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-27.** The migration, the dependency refresh and the release commit merged together as Gitea #2
|
||||
(`aab4b89`, 7 commits); the CI `deploy` job put the site live and **v2.3.0** went to R2 (Windows, Linux, Android; no
|
||||
macOS, D9). Renovate's onboarding PR (#1) was closed: #2 adds `renovate.json` with this repo's rules. What the move
|
||||
found:
|
||||
|
||||
- **Gitea's `main` matched `github/main`** (`9923c4c`, the 2.2.1 release): nothing to restore. Until #2 merged, the
|
||||
GitHub-era `maintenance-triage.yml` still ran from `main` on `pull_request_target` (owner PRs: skipped).
|
||||
- **The runner did not come up at logon**: the scheduled task "Gitea Runner" started before Docker Desktop and the
|
||||
daemon exited with "Docker Engine socket not found and docker_host config was invalid" (07:08 local); queued jobs
|
||||
of every repo waited until `Start-ScheduledTask 'Gitea Runner'` once Docker was up (the first retry, a few seconds
|
||||
later, still failed). With capacity 1, #2's first checks waited ~30 min behind free-games-itchio-list's ingest and a
|
||||
RepoLens PR.
|
||||
- **SSH push refused, HTTPS works**: `ssh://git@git.poli0981.dev:2222/…` answers "Permission denied (publickey)"
|
||||
from the agent's shell on the PC, while `https://git.poli0981.dev/…` pushes through Git Credential Manager (one
|
||||
transient "Failed to authenticate user" on a branch delete, fine on retry). The session pushed by URL and left the
|
||||
`origin` remote as it was.
|
||||
- **Two Discord secrets were not carried over**: the repo had `DISCORD_RELEASES_WEBHOOK` and `DISCORD_REPO_WEBHOOK`
|
||||
but not `DISCORD_CI_WEBHOOK` or `DISCORD_RELEASE_PIPELINE_WEBHOOK` (youtube-generator has both).
|
||||
`discord_notify.py` exits 1 without its webhook, so the release-pipeline notifier fails after every tag run until
|
||||
they exist; `DISCORD_PING_ROLE_ID` is optional.
|
||||
- **Renovate's onboarding preview** showed two proposals this repo cannot take: `ubuntu` 26.04 (it reads `runs-on:`
|
||||
labels with the `github-runners` datasource, but the labels are the PC runner's) and JDK 25. `renovate.json`
|
||||
disables `github-runners`, `node`/`java-jdk`, and the `gradle`/`gradle-wrapper` managers (the committed Tauri
|
||||
Android project). The OSV alert it raised, kotlin-gradle-plugin 1.9.25 → 2.4.20 (CVE-2026-53914, moderate,
|
||||
unsafe deserialization of the Kotlin build cache), waits for Tauri's template with the reason in `renovate.json`;
|
||||
the release job never shares or restores a build cache.
|
||||
- **Security on the first run**: Opengrep, osv-scanner and cargo-deny passed after the refresh (`url` 2.5.9,
|
||||
`cookie` 0.18.3 taken; the six Tauri-stack advisories nobody fixes yet in `src-tauri/osv-scanner.toml`, as
|
||||
youtube-generator). gitleaks found one non-secret, the Web Analytics beacon token in `src/lib/analytics.ts`, in
|
||||
`.gitleaksignore`. `npm audit`: 0 — typescript-eslint 8.74 moved to minimatch 11, which closed the last GitHub-era
|
||||
alert (GHSA-g3hv-75wg-m249).
|
||||
- **Release dry run from the branch** (web route `POST /{owner}/{repo}/actions/run?workflow=release.yml`,
|
||||
`ref=refs/heads/chore/gitea-migration`, as youtube-generator): verify, Windows (~6 min on the host), Linux
|
||||
(`ubuntu-22.04`, ~9 min) and Android (~7 min, SDK + NDK 27.2 installed in the job) all green on the first try.
|
||||
Unlike youtube-generator, this repo's committed `gen/android` `BuildTask.kt` runs the **npm** Tauri CLI, so no
|
||||
`cargo install tauri-cli` is needed. The APK's signer certificate SHA-256 is `fef0029e…b645`; the keystore on the PC
|
||||
(`E:\jsonprism-release.jks`) is PKCS12 with alias `jsonprism`, which `keytool` will not list without its password,
|
||||
so the maintainer should confirm it matches the 2.2.1 APK's.
|
||||
- **Production smoke as a reusable**: `production-smoke.yml` is `workflow_call` + `workflow_dispatch`, and `ci.yml`'s
|
||||
`smoke` job calls it with `uses: ./.gitea/workflows/production-smoke.yml` after `deploy`, the pattern
|
||||
free-games-itchio-list uses for its notifier. The first `deploy` (run 795) put `aab4b89` live; the same checks by
|
||||
hand passed while the `smoke` job still queued behind Qodana.
|
||||
- **The keystore alias is a secret, so the logs hide the app's name**: `ANDROID_KEY_ALIAS` is `jsonprism`, and the
|
||||
runner masks secret values in the run's logs, so even the `assemble` job (which gets no secret) shows `***` for
|
||||
"jsonprism" (`releases.poli0981.dev/***/2.3.0/…`). The files and notes are right; only the logs read oddly.
|
||||
- **One runner, many queues**: the PR's Qodana Rust run (Docker Desktop, cold cache) would have held the `deploy` job
|
||||
for ~25 minutes after the merge; it was cancelled, since the push to `main` runs the same scan.
|
||||
- **GnuPG on the PC**: the first signed commit failed with "sending fd … to keyboxd: Input/output error" although the
|
||||
signature was made; `gpgconf --kill keyboxd` fixed it.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- D3: a deploy job with `wrangler deploy`, and `production-smoke.yml` runs after it. D9: no macOS bundles. D10: the Android SDK is installed in the job. D11: `pages-redirect.yml` and `announce-discussion.yml` go.
|
||||
|
||||
@@ -2,6 +2,61 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `2d33b1c` (local clone `E:\marklens`, Gitea `poli0981/MarkLens`). Profile: Flutter desktop app (Windows installer via Inno Setup, Linux package), with an in-app update check. Docs 11 and 14 describe packaging and CI. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-27**, the first Flutter repo. The migration merged as Gitea #2 (9 commits) and #3 stacked on it (the
|
||||
remote-badge fix, Flutter 3.50.1, maintenance mode and the release commit), both by fast-forward in the UI (every
|
||||
commit stays signed); tagged and released as **v1.1.0**: the four artefacts and `SHA256SUMS` under
|
||||
`releases.poli0981.dev/marklens/1.1.0/`, the update feed `marklens/latest.json` uploaded last, a Gitea release with the
|
||||
notes and links, published (not a draft). Renovate's onboarding PR #1 was closed: #2 adds `renovate.json`. #4 ticked
|
||||
the release checklist. What the move found:
|
||||
|
||||
- **Flutter has no setup action that fits host mode.** `subosito/flutter-action`'s steps are `shell: bash`, which on
|
||||
the host-mode Windows runner can resolve to WSL's `bash.exe`. `tool/ci/install-flutter.{sh,ps1}` download the
|
||||
pinned archive from `storage.googleapis.com`, check a SHA-256 pinned in `tool/ci/flutter.env` (copied from Google's
|
||||
`releases_<os>.json`, not fetched beside the archive), and unpack it into `$RUNNER_TOOL_CACHE` (else
|
||||
`%LOCALAPPDATA%\gitea-runner\toolcache`): once per version, never system-wide on the PC. A release passes
|
||||
`--fresh`/`-Fresh` (job temp dir, no shared cache). The PC has `LongPathsEnabled=1`, which the SDK needs (its
|
||||
deepest relative path is ~186 characters). Flutter runs as root in the Docker jobs with only a warning.
|
||||
- **The Linux floor is a runner label again.** The GitHub release built the `.deb` and AppImage with `docker run -v
|
||||
"$PWD:/src"` inside the job; from inside the runner's own container that mounts a host path, not the checkout.
|
||||
`runs-on: ubuntu-22.04` *is* the build machine here (the runner's image), so the job installs
|
||||
`tool/linux/Dockerfile`'s packages there and a repo test holds the label and the Dockerfile's `FROM` together. The
|
||||
goldens, made in an `ubuntu:24.04` container, match byte for byte on the runner's `ubuntu-24.04` image.
|
||||
- **Renovate would have moved the floor.** The onboarding PR listed "update dependency ubuntu to v26" (the
|
||||
Dockerfiles' base images), and the `github-runners` datasource proposes newer `runs-on` labels. MarkLens's
|
||||
`renovate.json` disables both for Ubuntu: 22.04 is its glibc floor, 24.04 its goldens' image. **Any repo that pins
|
||||
an Ubuntu label on purpose (youtube-generator's `ubuntu-22.04` floor) wants the same rule**; a candidate for the
|
||||
preset. Also local: `constraints.flutter` (the SDK Renovate's lockfile updates install), and holds on
|
||||
`desktop_drop` < 0.9 (a `cross_file` wall) and `window_manager` < 0.6 (a nativeapi rewrite, held by decision).
|
||||
**pub joined the preset's 3-day release-age rule** (renovate-config #7): pub.dev reports `published`.
|
||||
- **The update feed (D8).** `tool/release/release_files.py` writes `latest.json` — `{app, version, tag, published,
|
||||
page, files[{name, url, sha256, size}], sha256sums}` — and the release notes from CHANGELOG. The app reads
|
||||
`version` and `page`, and opens `page` only on `git.poli0981.dev` / `releases.poli0981.dev` (the GitHub version
|
||||
opened any `html_url`). The Gitea release is published, not a draft: the banner links to it, and a draft is a 404
|
||||
for everyone else. So the tag is the release decision, and the person's checks moved before it (doc 15).
|
||||
`latest.json` answers with `cf-cache-status: DYNAMIC`.
|
||||
- **First CI run, two reds, neither in the code.** gitleaks (full history) flagged `sonar.projectKey=…` in the
|
||||
deleted `sonar-project.properties` as `generic-api-key`; `.gitleaksignore` records that fingerprint, as softharbor's
|
||||
does. The golden job died in `apt-get` on one failed DNS lookup of `archive.ubuntu.com` from the runner's Docker
|
||||
network; every `apt-get` now runs with `-o Acquire::Retries=5`. osv-scanner reads `pubspec.lock` (green).
|
||||
- **The tag run lost its Windows artifact** to `Failed to CreateArtifact … Request timeout` (all 5 attempts) after a
|
||||
good build; nothing had been published, and "Re-run failed jobs" finished the chain with the Linux artifact kept.
|
||||
- **Timings on the single runner**: a PR round ~25 min once it starts (`CI` + `Security`); the release rehearsal's
|
||||
build jobs 6 min (Windows, host) and 4.7 min (Linux), assemble 30 s. A PR stacked on another was the cheaper
|
||||
path: the lower PR's runs were cancelled and the upper one's CI covered both before both fast-forwarded.
|
||||
- **Enabling Actions on 28.4.0** is Settings → Actions → General → "Enable Repository Actions" (not in the Advanced
|
||||
settings list; `/settings/actions` 404s until it is on).
|
||||
- **Branch protection on `main`** (D6): no push, no force push, administrators included; required checks
|
||||
`CI / ci-ok (*)`, `Security / workflow-lint (*)`, `Reusable / Security / Secrets (gitleaks) (*)`,
|
||||
`Reusable / Security / Dependencies (osv-scanner) (*)`. Default merge style: fast-forward only.
|
||||
- **Installs of 1.0.0–1.0.2** ask `api.github.com/repos/poli0981/MarkLens/releases/latest`, now 404, silently by
|
||||
design: README, SECURITY.md, the CHANGELOG and the release notes tell them to install 1.1.0 once by hand.
|
||||
- **WinGet is paused**: winget-pkgs PRs come from a GitHub fork, and the pending 1.0.1 submission (#439835) points at
|
||||
dead GitHub downloads. `tool/winget/` is unchanged.
|
||||
- **Contacts**: CLAUDE.md said to leave `{{CONTACT_EMAIL}}` for the maintainer; this guide decided
|
||||
`security@`/`code@poli0981.dev`, and the runbook wins for migration topics. Reported in #2; CLAUDE.md updated.
|
||||
- **Not done**: no Discord announcement (MarkLens has no Discord webhooks; three secrets and one
|
||||
`announce-release.yml` caller would add it); the listings (SoftHarbor, poli0981.dev) still link GitHub.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- **D8 — the update check:** a `latest.json` (version + download URLs) at `releases.poli0981.dev/marklens/latest.json`, uploaded last by each release (a `*.json` name, so the cache is bypassed); `update_service.dart` reads it. Not the Gitea API: the app stays off the forge, like every other app. `legal/PRIVACY.md` names the new host: it is a privacy statement, not just a doc.
|
||||
|
||||
@@ -2,7 +2,57 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `ed91e72` (local clone `E:\repo`, Gitea `poli0981/repolens`). Profile: SvelteKit 3 on one Cloudflare Worker (`repolens.poli0981.dev`), a showcase of the maintainer's repositories read from the GitHub API, with a Cron Trigger (`*/10 * * * *`) that warms the cache. Maintenance mode since v1.5.0. Shared decisions: [README](README.md).
|
||||
|
||||
**The site has no data source.** Every repo it shows came from GitHub's GraphQL API with `GITHUB_TOKEN_READ`, a token of the suspended account; bug reports opened GitHub issues with `GITHUB_TOKEN_ISSUES`; the webhook was GitHub's. Restoring it is a website incident, which maintenance mode takes.
|
||||
**Done 2026-11-26.** The migration merged as Gitea #2 (fast-forward to `35b5926`, 9 commits: CI, Renovate, RL1–RL4,
|
||||
templates, docs), the CI `deploy` job put it live (version `475c73d8`, custom domain and the `*/10` cron applied),
|
||||
and **v1.6.0** followed with the dependency refresh (Gitea #3, #4). The site reads Gitea again: 24 public repos, the
|
||||
production smoke 7/7. Renovate's onboarding PR #1 was closed (#2 adds `renovate.json`). What the move found:
|
||||
|
||||
- **The repository went private on Gitea** (the owner's choice: `LICENSE` carries an internal relicensing note that
|
||||
must not be public). Outside contributions arrive by e-mail. Renovate and the runner keep working (`renovate-bot`
|
||||
is a collaborator). **Its GitLab push mirror** (added 2026-11-27, also where the confidential bug reports land) was
|
||||
created **public**, which exposed the private source and that note; it was switched to private the same day. For a
|
||||
private Gitea repo, check the mirror's visibility right after creating it.
|
||||
- **Anonymous reads (D13) settled the VERIFY items:** `GET /repos/{o}/{r}/licenses` answers (the list and repo objects
|
||||
carry `licenses` too, which can include `README`); `GET …/actions/runs` answers 401 without a token, so the build
|
||||
badge reads the head commit's statuses (`GET …/commits/{sha}/status`, anonymous, one per job, latest per context,
|
||||
`target_url` relative). `GET …/actions/tasks` is anonymous as well.
|
||||
- **No ETag, no rate-limit headers** (`Cache-Control: max-age=0, private` on every answer). RepoLens keeps each
|
||||
sub-resource with a validator instead: the repo's `updated_at` (any push moves it, Renovate's branches included)
|
||||
or the head sha. A quiet list refresh is one request; a cold one 1 + 4 per repo.
|
||||
- **No `pushed_at`:** the default branch's head commit time is the last push. Times carry the committer's offset
|
||||
(`+07:00`): normalise to UTC before comparing ISO strings. Stars and forks are always 0 without registration (hidden),
|
||||
and there are no deployments or language colours.
|
||||
- **Webhook (RL3):** Gitea signs with `X-Gitea-Signature` (hex HMAC-SHA256, no prefix) and also sends GitHub-style
|
||||
headers (read from `services/webhook/deliver.go`). The system webhook form (Site Administration → Integrations →
|
||||
Webhooks → System Webhooks) names the events Create, Delete, Push, Repository, Release, **Statuses** and
|
||||
**Workflow Run**. Gitea sends no ping, rename, transfer or visibility events.
|
||||
- **Bug reports (RL2, D14):** `GITLAB_TOKEN_ISSUES` is optional on purpose: without it the endpoint answers 503 and the
|
||||
dialog offers `code@` (no deploy waits on a GitLab token). The token set on 2026-11-26 has the **Guest** role: GitLab
|
||||
files a Guest's confidential issue but silently drops its labels, so Reporter is the role to pick. It **expires
|
||||
2027-11-26** (RepoLens docs/11 §H).
|
||||
- **System webhook (live 2026-11-27, admin hook #1):** system hooks have no Test Delivery button, so the first real
|
||||
events checked it (`npx wrangler tail repolens --format json --search webhook`): a push and two commit statuses of
|
||||
free-games-itchio-list answered `202`, refreshed the list and the detail in ~2.5 s with 13 requests, and the burst's
|
||||
later deliveries rode along.
|
||||
- **e2e in the job container:** binding `wrangler dev` and Playwright to `127.0.0.1` (runbook §6) was enough; chromium
|
||||
and webkit both ran. One PR's CI took ~10 minutes on the single runner (verify 55 s, e2e 2 min 44 s, Qodana
|
||||
2 min 48 s).
|
||||
- **Merging in the UI:** "Fast-forward only" keeps the signed commits; a UI merge commit is unsigned. Until #2 merged,
|
||||
`main`'s GitHub-era `maintenance-triage.yml` still ran on the PR (`pull_request_target` reads the base branch).
|
||||
- **Branch protection (D6):** no push, no force push; required `CI / verify (*)`, `CI / e2e (*)`,
|
||||
`Security / npm-audit (*)`, `Reusable / Security / Secrets (gitleaks) (*)`,
|
||||
`Reusable / Security / Dependencies (osv-scanner) (*)`.
|
||||
- **adapter-cloudflare 9** builds through `@cloudflare/vite-plugin` and refuses a `main` in `wrangler.jsonc`: RepoLens's
|
||||
`withScheduled` cron entry needs a redesign before it can move (left on 8.0.3). Other SvelteKit Workers with a
|
||||
Cron Trigger will meet the same wall.
|
||||
- **On the PC:** GPG signing failed with "sending fd … to keyboxd" until `gpgconf --kill keyboxd` of **Gpg4win** (git's
|
||||
`gpg.program`), not Git Bash's `gpgconf`.
|
||||
- **Done by the maintainer by 2026-11-27:** the GitLab project + `GITLAB_TOKEN_ISSUES`, the system webhook +
|
||||
`GITEA_WEBHOOK_SECRET`, the dead `GITHUB_*` Worker secrets deleted. **Still open:** disconnecting Workers Builds,
|
||||
Qodana Cloud's VCS URL, and every repo's description/website/topics on Gitea (all empty after the import; RepoLens
|
||||
shows them once set).
|
||||
|
||||
**Before the move:** the site had no data source. Every repo it showed came from GitHub's GraphQL API with `GITHUB_TOKEN_READ`, a token of the suspended account; bug reports opened GitHub issues with `GITHUB_TOKEN_ISSUES`; the webhook was GitHub's. Restoring it is a website incident, which maintenance mode takes.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
|
||||
@@ -2,6 +2,65 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `d7e2876` (local clone `E:\youtube`, Gitea `poli0981/youtube-generator`). Profile: YTDescGen, React/Vite web app on Cloudflare Workers (`ytgenerator.stream`, Turnstile gate) + Tauri 2 desktop (no updater) + Android APK (runbook §5.2, §5.3). Maintenance mode. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-26.** The migration merged as Gitea #2 (`6c0614d`), the dependency fold as #3 and the release
|
||||
commit as #4; tagged and released as **v1.7.0** (Windows, Linux, Android on R2; no macOS, D9). The website deploys
|
||||
from the CI `deploy` job. What the move found:
|
||||
|
||||
- **Gitea's `main` matched `github/main`** (`d7e2876`): nothing to restore. Until #2 merged, the GitHub-era
|
||||
`.github/workflows` still ran on Gitea for PRs (`maintenance-triage.yml` ran from `main` on `pull_request_target`);
|
||||
harmless, gone with the merge. Renovate's onboarding PR (#1) was closed: #2 adds `renovate.json` with this repo's
|
||||
rules (majors via the Dependency Dashboard, Tauri's npm packages and crates in one group, i18next held below
|
||||
26.7 for the bundle budget, the TypeScript aliases and runtimes by hand, glib and Tauri's Gradle template off).
|
||||
- **The runner queue**: #2's checks waited ~1.5 h behind free-games-itchio-list's `refresh` scan (13:49 UTC) and the
|
||||
catalog jobs after it; every push to a PR re-queues its whole check set at the back. D15's Docker-only runner would
|
||||
have taken the ubuntu jobs. Expect an evening PR to take hours.
|
||||
- **Release dry run from a branch**: Gitea's "Run workflow" menu lists only the workflows of the default branch, so a
|
||||
new `release.yml` cannot be dispatched from the UI before it merges. The web route works from the maintainer's
|
||||
signed-in browser: `POST /{owner}/{repo}/actions/run?workflow=release.yml` with `ref=refs/heads/<branch>` and the
|
||||
page's `_csrf` (no token needed). A dispatched run writes no commit status (runbook §6); watch it with
|
||||
`GET /repos/{owner}/{repo}/actions/runs/{id}/jobs`, which answers without a token for a public repo.
|
||||
- **The committed Android project calls the cargo CLI**: `src-tauri/gen/android` is in git here (not generated in the
|
||||
job, as in the catalog repos), and its `buildSrc/.../BuildTask.kt` runs `cargo tauri android android-studio-script`.
|
||||
The npm CLI alone fails in Gradle with "no such command: `tauri`"; the job installs `tauri-cli` at exactly the npm
|
||||
CLI's version (`cargo install tauri-cli --version "=<package.json version>" --locked`) and builds with
|
||||
`cargo tauri android build --apk` (universal APK, signed by Gradle through `keystore.properties`).
|
||||
- **The keystore secret was missing on Gitea**: `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` and
|
||||
`ANDROID_STORE_PASSWORD` had been carried over, `ANDROID_KEYSTORE_BASE64` had not. The keystore was still on the PC
|
||||
(`ytdescgen-release.jks`), so the maintainer added it and the APK keeps its signing key (certificate SHA-256
|
||||
`a099a450…`): installed apps update in place. Check all four before a Tauri repo's first Android release.
|
||||
- **gitleaks**: one non-secret, the Cloudflare Web Analytics beacon token (public in every page) in
|
||||
`build-plugins/web-only.ts` and its test, in `.gitleaksignore`.
|
||||
- **osv-scanner and cargo-deny on the first run**: six RustSec advisories with patch releases (url 2.5.9, cookie
|
||||
0.18.3, tokio 1.51.6, rustix 1.1.6, event-listener 5.4.2, anyhow 1.0.103), taken with `cargo update -p --precise`.
|
||||
The Tauri-stack advisories nobody fixes yet (glib 0.18, the zbus crates, proc-macro-error, chrono) are in
|
||||
`src-tauri/osv-scanner.toml` only: cargo-deny's default scopes (`unmaintained = "workspace"`, unsound likewise)
|
||||
never meet them, and listing them in `deny.toml` just prints `advisory-not-detected` warnings.
|
||||
- **qodana-rust 2026.3-eap, once its bootstrap worked** (dhi.io pin, 25-minute timeout, as free-steam-games-list),
|
||||
reported 9 critical problems rustc and clippy do not have: `20 * 1024 * 1024` in a `u64` const read as a
|
||||
`Duration` (RsTypeCheck), `file.metadata()` then `file.take()` read as a use after move (RsBorrowChecker), a
|
||||
`usize` read as a `toml_parser::Span`, and unresolved macro paths. RsTypeCheck, RsBorrowChecker and RsUnresolvedPath
|
||||
are the linter's copy of the compiler; they are excluded project-wide, since `rust.yml` builds with rustc and
|
||||
clippy `-D warnings`. Write the bootstrap's `printf '…\n…'` with an editor, not through a shell heredoc: the `\n`
|
||||
escapes became real newlines once and the YAML stopped parsing.
|
||||
- **Local tooling without Docker**: actionlint + shellcheck (pinned binaries, as ops-lint) and zizmor `--offline`
|
||||
from a hash-locked `.github/requirements-ci.txt` (also `reuse`), compiled on Windows for the Linux job with
|
||||
`uv pip compile --generate-hashes --python-platform x86_64-manylinux_2_28`. The PR title check is bash on the
|
||||
event payload (`amannn/action-semantic-pull-request` asks GitHub's API).
|
||||
- **The deploy job** proves a deploy without passing the Turnstile gate: it reads the new entry chunk from
|
||||
`dist/index.html` and waits for `https://ytgenerator.stream/assets/<chunk>.js` to answer 200 (assets are public).
|
||||
`setup-node` logs "API rate limit exceeded" while fetching its version manifest from GitHub without a token, then
|
||||
falls back; harmless.
|
||||
- **Gitea's artifact service timed out twice** ("Failed to CreateArtifact … Request timeout", five attempts): Opengrep's
|
||||
SARIF upload on `main`, and the v1.7.0 tag's Windows installers after a good build. "Re-run failed jobs" re-ran the
|
||||
job and the skipped `assemble` → `publish` → `release` chain in the same run, with the Linux and Android artifacts
|
||||
of the first attempt still there; R2 then got all six files, `SHA256SUMS` and the APK alias.
|
||||
- **The release itself**: draft checked (all 8 links 200 with `curl -I`), short highlights added, published in the UI;
|
||||
`announce-release.yml` dispatched with `tag=v1.7.0` (publishing CI's draft fires nothing, as in FG4) posted to both
|
||||
Discord webhooks (HTTP 204).
|
||||
- **Legal text**: TERMS and PRIVACY name the Gitea releases page and `releases.poli0981.dev` (Cloudflare, named in
|
||||
the policy) instead of GitHub; not a material change, so the consent version stays 2 (as FG5). The in-app links
|
||||
(About, "Report a bug") open Gitea and the GitLab mirror (Bug template); Wiki, Discussions and GitHub Sponsors went.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- D3: a deploy job with `wrangler deploy` on `main` pushes. D9: no macOS bundles. D10: the Android SDK is installed in the job. D11: `pages-migration.yml` goes with `migration-page/`.
|
||||
|
||||
Reference in new issue
Block a user