Files
wekan/.github
Lauri Ojansivu b156505430 Snap: ask the Snap Store whether SNAP_AUTH works, before building anything.
v10.53 built the amd64 snap, the arm64 snap and both variant snaps - forty
minutes of runner time across four jobs - and then every one of them died at
the upload with the same red X, because the credential was not usable. Nothing
before that point had asked the store anything: the per-job check only tested
that the secret is non-empty and longer than 100 characters, which a revoked or
long-expired credential also is.

snapcraft whoami is the question, asked once, in a job that snap-native,
snap-launchpad and snap-variants all wait for. It costs about a runner-minute,
it answers from the store itself, and its answer distinguishes the causes that
a failure at upload time cannot:

  cannot be parsed  the secret is not an exported login at all - mangled,
                    truncated, or the terminal OUTPUT of export-login instead
                    of the file it wrote. The store was never asked.
  expired           it WAS valid. An exported login lasts one year by default,
                    so a credential that worked for a year stops without
                    anything having changed. This is the cause the upload-time
                    message never mentioned, and the likeliest one when every
                    arch fails identically.
  401 / 403         readable, but without the ACL for this snap name.

It also checks the credential covers all three snap names this release
publishes. One exported for `wekan` alone lets snap-native succeed and
snap-variants fail, which reads as two unrelated bugs; `packages: no
restrictions` covers everything and passes.

The credential is never echoed - only what the store said about it. The whoami
call runs with `set +e` on purpose: `set -e` would kill the step at the failure,
before the case statement that says which failure it was.

build-sandstorm publishes no snap, so it does NOT wait for this - the first
version of the change made it wait, because it happened to have the same needs
line.

Thanks to xet7 !
2026-07-31 12:07:41 +03:00
..
2026-06-21 20:41:30 +03:00
2025-11-02 06:15:08 +02:00