docs(migration): free-games-itchio-list is done, and what it found #9

Merged
poli0981 merged 1 commits from docs/free-games-itchio-list-done into main 2026-11-25 05:52:14 +00:00
3 changed files with 48 additions and 7 deletions

No files matched your search

+1 -1
View File
@@ -485,7 +485,7 @@ None (2026-11-23). A new question goes into [`migration/README.md`](migration/RE
| AppLedger | dotnet | not on Gitea yet | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
| WardSweep | rust + dotnet | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | 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 |
| 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 | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed |
| content | content (submodule of poli0981-dev) | ☑ main on Gitea 2026-11-24 | n/a | n/a | n/a | n/a | ☑ | none |
| any repo not listed (not inventoried) | | | | | | | | |
+4 -4
View File
@@ -46,7 +46,7 @@ For a repo without a guide, the same prompt works with only the runbook: §3.1 s
| `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 | **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) |
| `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 GitHub API | not started; **the site has no data source** | [repolens.md](repolens.md) |
| any repo not listed | — | not inventoried | run the inventory |
@@ -61,13 +61,13 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
| 13:17 | daily | softharbor · quarantine | live |
| 13:19 | Fri | jsonPrism · security | proposed |
| 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:47 | daily | pipdock · ci-integration (nightly) | proposed |
| 13:49 | daily | free-games-itchio-list · refresh | proposed |
| 13:49 | daily | free-games-itchio-list · refresh | live |
| 13:53 | Thu | HashTool · qodana | proposed |
| 13:59 | daily | softharbor · vt-recheck | live |
| 14:07 | Sun | .github · weekly-digest | live |
@@ -85,7 +85,7 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
| 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 |
+43 -2
View File
@@ -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) |