From 872107131f9440c0e765b698c12baca4e1aeac6f Mon Sep 17 00:00:00 2001 From: poli0981 Date: Tue, 24 Nov 2026 21:14:42 +0700 Subject: [PATCH 1/2] docs(migration): free-steam-games-list is done MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tracker (§8), the guide status and the cron registry mark the repo as migrated (Gitea #1, v4.8.0 / apps 2.6.0 on R2, data-daily and security live), and its guide records what the move found: Gitea's main was 49 commits behind GitHub, the Tauri updater key went with the account, publish-r2 and notify-release-pipeline needed the ops v2026.11.3 fixes, Gitea cancels a waiting run when a third joins its group and stops tasks after 3 h, Steam answers by country, and qodana-rust's hardened image needs a dhi.io pin and 25 minutes. §4.5's Docker Desktop VERIFY holds. Co-Authored-By: Claude Opus 5.5 --- docs/GITEA-MIGRATION.md | 4 +-- docs/migration/README.md | 6 ++-- docs/migration/free-steam-games-list.md | 39 +++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/docs/GITEA-MIGRATION.md b/docs/GITEA-MIGRATION.md index f863f06..f757d41 100644 --- a/docs/GITEA-MIGRATION.md +++ b/docs/GITEA-MIGRATION.md @@ -354,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: ` 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 @@ -484,7 +484,7 @@ None (2026-11-23). A new question goes into [`migration/README.md`](migration/RE | 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-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 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed | | RepoLens | web | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed | | content | content (submodule of poli0981-dev) | ☑ main on Gitea 2026-11-24 | n/a | n/a | n/a | n/a | ☑ | none | diff --git a/docs/migration/README.md b/docs/migration/README.md index c9272ff..c0aa2ce 100644 --- a/docs/migration/README.md +++ b/docs/migration/README.md @@ -45,7 +45,7 @@ For a repo without a guide, the same prompt works with only the runbook: §3.1 s | `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-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 | 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) | | any repo not listed | — | not inventoried | run the inventory | @@ -56,7 +56,7 @@ 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:03 | daily | free-steam-games-list · data-daily | live | | 13:11 | daily | RepoLens · production smoke | proposed | | 13:17 | daily | softharbor · quarantine | live | | 13:19 | Fri | jsonPrism · security | proposed | @@ -97,7 +97,7 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3 | 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:49 | Tue | free-steam-games-list · security | live | | 15:53 | Mon | youtube-generator · rust | proposed | ## Decisions that cover several repos diff --git a/docs/migration/free-steam-games-list.md b/docs/migration/free-steam-games-list.md index 0764596..84a91fa 100644 --- a/docs/migration/free-steam-games-list.md +++ b/docs/migration/free-steam-games-list.md @@ -4,6 +4,45 @@ **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 `/`): `desktop//…` and `latest.json`, + `android//free-steam-games-list-.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 `+dhi0`, which sorts above the `+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. + ## Decided (2026-11-23) - **FS1 — the Worker's sources (D12, D13).** -- 2.54.1 From 7ad3616f242b1de58681f3fb8bd80a70e4710210 Mon Sep 17 00:00:00 2001 From: poli0981 Date: Wed, 25 Nov 2026 06:48:36 +0700 Subject: [PATCH 2/2] docs(migration): free-steam-games-list, what the release and the first day found The rclone pin and the moved app tags, the Windows rustup, gitleaks' slow fetch in job containers, one runner against Renovate's first run, the service worker in front of Access's callback, the bot token with write:user only, Renovate's npm lockfiles without a github.com token, Kotlin's held security update, and rustup.exe gone from the host. Co-Authored-By: Claude Opus 5.5 --- docs/migration/free-steam-games-list.md | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/migration/free-steam-games-list.md b/docs/migration/free-steam-games-list.md index 84a91fa..d6d3a53 100644 --- a/docs/migration/free-steam-games-list.md +++ b/docs/migration/free-steam-games-list.md @@ -42,6 +42,40 @@ the migration merged as Gitea #1 and was released as **v4.8.0 "Moving Day" / app - 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) -- 2.54.1