docs(migration): youtube-generator is done, and what it found #12

Merged
poli0981 merged 1 commits from docs/youtube-generator-done into main 2026-11-25 21:03:54 +00:00
3 changed files with 63 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -476,7 +476,7 @@ None (2026-11-23). A new question goes into [`migration/README.md`](migration/RE
| 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 |
| 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 |
+3 -4
View File
@@ -37,7 +37,7 @@ For a repo without a guide, the same prompt works with only the runbook: §3.1 s
| `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) |
| `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) |
@@ -63,8 +63,7 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
| 13:23 | daily | pipdock · security-scan | 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: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 (ops caller) | proposed |
| 13:47 | daily | pipdock · ci-integration (nightly) | proposed |
| 13:49 | daily | free-games-itchio-list · refresh | live |
@@ -98,7 +97,7 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
| 15:41 | Mon | bookmarkmagic · qodana | proposed |
| 15:47 | Thu | youtube-auto-post · security | proposed |
| 15:49 | Tue | free-steam-games-list · security | live |
| 15:53 | Mon | youtube-generator · rust | proposed |
| 15:53 | Mon | youtube-generator · rust | live |
## Decisions that cover several repos
+59
View File
@@ -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/`.