The v13.20 and v13.21 runs uploaded wekan_13.21_amd64.snap again and again,
each time answered "Error checking upload uniqueness", and never released
it. The cause: snapcraft 9 renamed list-revisions to revisions, and the old
name only prints that and fails, so the script never found the revision the
store already had, and the store takes a file only once. On the dashboard
the wekan and wekan-gantt-gpl 13.21 revisions are "Can't be released:
ReviewQueued" - held for the store's manual review, greyed out on the web
too.
Now:
- the store's revisions are read with `snapcraft revisions` (the old name
for an older snapcraft), and a revision the store has is released, never
uploaded again;
- a file is uploaded once by default; after "Error checking upload
uniqueness" the store's revision is released, or reported as held with
how to ask for the review;
- every release goes to each channel on its own, so one the store refuses
does not keep the revision out of the others, and each refusal is an
error line in the log;
- after a release's files, the newest revision of every architecture the
store has is released to every channel too
(releases/snap-store-release-newest.sh), whatever the GitHub release
holds - a revision approved later is released by the next run;
- a release with no wekan-ondra or wekan-gantt-gpl snap gets them made from
its wekan snaps (releases/snap-rename.sh), as Release All Missing does;
- the release-time upload (snap-upload-retry.sh) still retries a
uniqueness error (on v10.78 a store glitch), and when it outlasts the
retries reports the file as held instead of failing the build.
Release All and Release All Missing both end by calling this workflow, so
the same steps run in all three. tests/snapStorePush.test.cjs and
tests/snapUploadProcessingBudget.test.cjs drive the scripts with a fake
snapcraft that answers as snapcraft 9 does.
Thanks to xet7 !
The Push Snap to Store run for v13.20 failed three ways:
- wekan-ondra and wekan-gantt-gpl: "no assets match the file pattern". The
snap-variants job uploaded them to the store but never attached them to
the GitHub Release. It does now (github-release-upload.sh, on always()
after its verify step).
- wekan: the store answered "Error checking upload uniqueness", a store-side
failure, and snap-store-push.sh then waited two hours for a revision that
upload never made. It now uploads again after a store failure (5xx,
uniqueness), waits only when the store is really processing or already has
the file, and fails at once on any other refusal.
- It ran on workflow_run and took "the latest release", which was v13.20.
Release All now ends with a snap-store job that calls the workflow
(workflow_call) for the tag it released, after snap-native,
snap-launchpad and snap-variants.
Release All Missing:
- expected-assets.sh lists the snaps: wekan on six architectures, the two
variants on amd64 and arm64.
- A missing variant snap is made from the release's own wekan snap by
releases/snap-rename.sh, which changes only name and title in
meta/snap.yaml - what snap-variants changes - and attached; then the
release's snaps are pushed to the store.
- With no version, a scan job (releases/release-missing-scan.sh) checks the
newest releases and starts one run per release missing something.
- What it cannot build no longer fails the plan, which skipped every build
that could have been made; the done job is red for it at the end.
tests/snapStorePush.test.cjs: the retry and the immediate refusal, both
workflows, the rename and the scan, with fake snapcraft, squashfs and gh.
Thanks to xet7 !
Admin Panel / People / Cloud and the Cloud Panel (73db2a28c3) are removed from
WeKan, with their methods, route, menu item, docs and tests. Many domains from
one Weddy is a Weddy feature: there every domain's WeKan is in one process,
where Node.js WeKan containers would have to work together, which gets
complicated. It is written in Go in caddy-wekan-plugin.
The translations of its strings stay: WeKan, Weddy and the rest use the same
WeKan translations.
Thanks to xet7 !
The Caddyfile example used `root /path`, which tests/caddyfileExamplesV2.test.cjs
rightly reads as Caddy v1. Weddy's wekan option is now `data`, and WeKan runs
inside Weddy in Go - no bundle, no WEDDY_TENANT - so the page says so, and that
the Cloud Panel's files are written by hand or by a Meteor WeKan until its Go
pages are done.
Thanks to xet7 !
Weddy (wekan/caddy-wekan-plugin) runs a WeKan for every domain, each in its own
directory - files/domains/<domain>/files/db/ for its database - and starts
the first domain's WeKan with WEDDY_CLOUD_DIR, every customer's with
WEDDY_TENANT=true.
- Admin Panel / People / Cloud, only in that first WeKan and only for a site
admin (a per-tenant admin's whitelisted menu never has it): Cloud Panel
Domain, e.g. cloud.wekan.team, and SuperAdmin Username, a username or
e-mail address.
- /cloud, the Cloud Panel, where the SuperAdmin is taken at the Cloud Panel
Domain: Settings with the left menus Domains and CloudFlare, in the Admin
Panel's layout. Domains is a table page - Domain, Customer name, Customer
email address, Billing email address, Start Date, End Date and the TLS
Weddy got - with a form to add and edit. CloudFlare is a write-only API
key field.
- server/methods/cloudPanel.js checks in every method again that the caller is
the SuperAdmin and the request's Host is the Cloud Panel Domain - not
X-Forwarded-Host, which a client could send itself. The collections are not
published. Every change writes WEDDY_CLOUD_DIR/domains.json for Weddy; the
key goes to cloudflare.json, mode 0600, and is never sent back.
- models/lib/cloudPanel.js has the rules, shared by client and server; its
domain rule is the same as Weddy's, since the name becomes a directory.
- Customers' WeKans show none of it.
The 15 new strings are added as pending Transifex, written in Finnish, and
translated into every other locale. Low-confidence translations: ace ak an ay
ba bho bi bm bo bua chr co csb cv dz ee ff fj fo fur gn gv haw hsb ht ig iu
kl kok ks kw lg lld mai mi nah nap nd nso oc om pap qu rm rn rup rw sah sc scn
se sm sn so ss st szl tig tlh tn to tpi ts uz-AR ve ve-CC ve-PP vo wa wa-RR
wal wo wuu-Hans yi zgh. Transifex translations replace them when they arrive.
tests/cloudPanel.test.cjs: the rules with their negatives, and the security
properties the source keeps. The node suites pass, 2160 of 2160. The
templates are not compiled here (no Jade compiler in this sandbox); a Meteor
build checks them. docs/Platforms/FOSS/Weddy/Cloud-Panel.md is the design.
Thanks to xet7 !