Skip to content

feat(publish): verify minOCIS with e2e tests against real oCIS images - #101

Merged
LukasHirt merged 1 commit into
mainfrom
feat/verify-minocis-e2e
Aug 28, 2026
Merged

LukasHirt merged 1 commit into
mainfrom
feat/verify-minocis-e2e

Conversation

@LukasHirt

@LukasHirt LukasHirt commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • extctl publish now automatically confirms (or corrects) each staged extension's minOCIS by running its own e2e Playwright suite against real owncloud/ocis Docker images, bisecting over every stable version Docker Hub actually has, before the value is ever committed — addresses extensions: minOCIS looks generator-defaulted, not per-release owncloud/marketplace#240 (minOCIS silently carrying forward, unverified, from a release's first version to every later one).
  • Seeded from the existing heuristic guess, so the common case (floor hasn't moved) costs exactly one Docker bring-up/teardown cycle, not a full bisection.
  • Best-effort: a Docker/infra failure, or the extension failing against every available oCIS image, logs a warning and falls back to the unverified heuristic rather than aborting the submission.
  • New --skip-minocis-verify flag to opt out at staging time.
  • New extctl publish verify-minocis <app-id>[@<version>] command to (re-)run the same verification later on an already-staged submission.

Test plan

  • go build ./...
  • go vet ./...
  • gofmt -l clean on all touched/new files
  • go test ./... — full suite passes, including 13 new tests covering BisectMinOCIS's seed fast-path/bisection/never-regress-below-seed behavior and Docker Hub tag filtering/pagination
  • Manual: run extctl publish --id <app-id> against a real staged extension with Docker available (not run in this session — no Docker/target checkout access here)

ResolveMinOCIS's "reuse from the previous release" tier was documented as
carrying forward an "already-approved" value, but nothing ever re-approved
it in practice — it just propagated unexamined from release to release.
That's owncloud/marketplace#240: minOCIS staying constant across an
extension's entire version range regardless of what a newer release
actually requires.

`extctl publish` now runs the extension's own e2e Playwright suite against
real owncloud/ocis Docker images before minOCIS is ever committed, bisecting
over every stable oCIS version Docker Hub actually has to find the lowest
one the tests pass against (seeded from the heuristic guess, so the common
case of an unchanged floor costs one Docker cycle, not several). Best-effort
like screenshot capture: a Docker/infra failure or the extension failing
against every available image falls back to the unverified heuristic value
with a warning rather than aborting the submission. Opt out with
--skip-minocis-verify.

`extctl publish verify-minocis <app-id>` re-runs the same verification later
on an already-staged submission (skipped at staging time, or the tests
changed since).

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt self-assigned this Aug 28, 2026
@LukasHirt
LukasHirt merged commit 14779cd into main Aug 28, 2026
3 checks passed
@LukasHirt
LukasHirt deleted the feat/verify-minocis-e2e branch August 28, 2026 09:18
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