Repository navigation
fix(publish): fix 3 verify-minocis bugs found running it for real - #102
Merged
Merged
Conversation
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>
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
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/marketplacePRs.ProjectForScreenshots's project, same as screenshot capture.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).pinExtensionSourceToReleasedidn't pinsupport/, 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. NewpinExtensionAndSupportToReleasepins both. Also fixed the underlying fixture-path bug this surfaced (an older test resolves a fixture path relative toprocess.cwd(), which is only correct when Playwright runs from the repo root — now invoked withcwd=mainCheckout+ explicit--config, matching how upstream web-extensions' own CI actually runs it).Test plan
go build ./...,go vet ./...,gofmt -lcleango test ./...— full suite passes, including a new test (TestPinExtensionAndSupportToRelease_PinsBothPaths) covering the support/-pinning fix