|
|
|
@@ -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/`.
|
|
|
|
|