Repository navigation
feat(publish): verify minOCIS with e2e tests against real oCIS images - #101
Merged
Merged
Conversation
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>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extctl publishnow automatically confirms (or corrects) each staged extension'sminOCISby running its own e2e Playwright suite against realowncloud/ocisDocker 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).--skip-minocis-verifyflag to opt out at staging time.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 -lclean on all touched/new filesgo test ./...— full suite passes, including 13 new tests coveringBisectMinOCIS's seed fast-path/bisection/never-regress-below-seed behavior and Docker Hub tag filtering/paginationextctl publish --id <app-id>against a real staged extension with Docker available (not run in this session — no Docker/target checkout access here)