Skip to content

K2GO-443 feat(code-addons): add-ons gallery updater on the durable job engine - #627

Merged
luisguzman-adfa merged 3 commits into
mainfrom
feat/K2GO-443-addons-job-engine
Oct 3, 2026
Merged

luisguzman-adfa merged 3 commits into
mainfrom
feat/K2GO-443-addons-job-engine

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Add-ons gallery content updater moves from the fire-and-forget refresh wrapper to the durable job
engine: live progress (percent/speed), pause/resume/retry, and resilience to a network change or drop.
Only the heavy add-on binaries (.cgp + source tarballs) go through aria2 (verified by sha-256); the
mirror stages the small files (shell, catalog, icons, pages) with its Cloudflare clean and catalog base
rewrite. Incremental: unchanged files reuse by the catalog sha; a same-build catalog short-circuits as
up to date.

dash-node 1.3.12: code-addons is a job type (POST /code-addons/download, GET /code-addons/jobs/:id,
pause/resume/retry/cancel over the generic /:type/* surface, like build-assets). Runner
sockets/code_addons.exec.ts + the shared sockets/aria2-download.ts; mirror_addons.py keeps the content
work (--print-aria2-input stages the small files and emits the heavy aria2 input, with a #status marker
so a small-file-only change still swaps; --finalize-only verifies). One shared _stage core keeps the
bake and legacy-wrapper path unchanged.

App: AddonsDownloadService (foreground, extends the shared ContentDownloadServiceBase) + reworked
AddonsRefresh (determinate bar, speed, pause/resume, cancel); removes AddonsRefreshClient. ModuleActions
already routes code_addons to AddonsRefresh.start.

The older POST /addons/refresh (wrapper) stays for now.

Verified: dash-node typecheck, app compile, l10n, mirror self-test, double-pass review (fix: unique
notification id).

… engine (dash-node 1.3.12)

The gallery updater moves from the fire-and-forget wrapper to the durable job engine. Only the heavy
add-on binaries (.cgp + source tarballs) go through aria2 (resume / pause / retry, survives a network
change); the mirror stages the small files (shell, catalog, icons, pages) with its Cloudflare clean and
catalog base rewrite. mirror_addons.py splits into --print-aria2-input (stage + emit the heavy input,
with a #status marker so a small-file-only change still swaps) and --finalize-only (verify presence);
one shared _stage core keeps the bake / legacy-wrapper path unchanged.
…sh-wrapper client

AddonsDownloadService extends ContentDownloadServiceBase (K2GO-449 shared base), and AddonsRefresh now
drives it: a determinate bar with speed, pause/resume, cancel, injected after the trigger, re-attaching
when the sheet reopens. Removes AddonsRefreshClient (the POST-then-poll wrapper client). ModuleActions
already routes code_addons to AddonsRefresh.start.
Notification id 8 is also ForgejoSeedService and CloneShareService; an add-ons download and a forgejo
seed can be foreground at once, so give the add-ons service a free id (11).
@luisguzman-adfa
luisguzman-adfa merged commit cc35352 into main Oct 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant