Skip to content

fix(publish): fix 3 verify-minocis bugs found running it for real - #102

Merged
LukasHirt merged 1 commit into
mainfrom
feat/verify-minocis-fixes
Aug 29, 2026
Merged

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

Conversation

@LukasHirt

Copy link
Copy Markdown
Owner

Summary

Follow-up to #101. None of these were caught by unit tests — they only surface when actually running the bisection against Docker/real oCIS, which is exactly what happened when I used this to e2e-verify minOCIS across 31 real open owncloud/marketplace PRs.

  • Playwright ran the full browser matrix (chrome/firefox/webkit) instead of one project — a non-chrome project failing to launch reported every oCIS version as FAIL regardless of actual compatibility. Fixed: restrict to ProjectForScreenshots's project, same as screenshot capture.
  • Plain git checkout <branch> refused to switch once git-lfs filtering was active locally and the checkout carried any pre-#238 raw-blob file. Fixed: force the checkout (documented as always safe to hard-reset anyway).
  • pinExtensionSourceToRelease didn't pin support/, so an old release's original e2e test ran against today's shared page-object helpers — same version-skew bug already handled for the extension's own source, one directory over. New pinExtensionAndSupportToRelease pins both. Also fixed the underlying fixture-path bug this surfaced (an older test resolves a fixture path relative to process.cwd(), which is only correct when Playwright runs from the repo root — now invoked with cwd=mainCheckout + explicit --config, matching how upstream web-extensions' own CI actually runs it).

Test plan

  • go build ./..., go vet ./..., gofmt -l clean
  • go test ./... — full suite passes, including a new test (TestPinExtensionAndSupportToRelease_PinsBothPaths) covering the support/-pinning fix
  • Used this fixed build in production to e2e-verify/repair minOCIS across 31 real open PRs on owncloud/marketplace (5 extension series + one single-release extension) — every fix here was found and confirmed against real Docker/Playwright runs, not just theoretically

All three surfaced only by actually running verify-minocis against
Docker/real oCIS — none were caught by the unit tests, since none of them
are exercisable without real infra:

- checkExtensionAgainstOCIS ran the full chrome/firefox/webkit project
  matrix instead of one project. A non-chrome project failing to launch
  reported every single oCIS version as FAIL regardless of actual
  compatibility, since Playwright treats the whole run as failed if any
  project fails. Restricted to ProjectForScreenshots's project, same as
  screenshot capture already does, and for the same reason.

- VerifyMinOCIS's plain `git checkout <branch>` refused to switch once
  git-lfs filtering was active locally and the checkout still carried any
  pre-#238 file (a raw blob where .gitattributes now says LFS pointer) —
  git recomputes those as "locally modified" and blocks the switch. The
  checkout is documented as always safe to hard-reset, so force it.

- pinExtensionSourceToRelease only pinned packages/web-app-<appID>, not the
  shared support/ page objects an extension's own e2e spec imports. Running
  an old release's original test against today's support/ helpers is the
  same version-skew bug already described (and fixed) for the extension's
  own source — just one directory over. New
  pinExtensionAndSupportToRelease pins both together for
  checkExtensionAgainstOCIS; screenshot capture is unaffected since it
  writes a brand new spec at staging time and only ever needed the
  extension's own current source.

Also fixed the underlying fixture-path bug this surfaced: an older
extension test resolves `path.resolve('./support/filesForUpload/...')`
against process.cwd(), which is only correct when Playwright runs from the
repo root — not from the extension's own directory as checkExtension
AgainstOCIS did before. Now invoked with cwd=mainCheckout and an explicit
--config pointing at the extension, matching how upstream web-extensions'
own CI (`pnpm --filter ./packages/<app> test:e2e`) actually runs it.

Verified for real: used this fixed version to e2e-verify/repair minOCIS
across 31 open owncloud/marketplace PRs (5 extension series + one
single-release extension), catching and confirming real, per-release
compatibility floors rather than the carried-forward guess these PRs had
before.

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt self-assigned this Aug 29, 2026
@LukasHirt
LukasHirt merged commit d0073b4 into main Aug 29, 2026
3 checks passed
@LukasHirt
LukasHirt deleted the feat/verify-minocis-fixes branch August 29, 2026 16:36
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