Repository navigation
ci: pin matrix-js-sdk to lockfile commit to avoid layered.sh clone #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
32679c8
e7bc13c
28c6671
4061e45
8ebbbc9
4c15406
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,7 +84,7 @@ | |
| "lodash": "npm:lodash-es@4.18.1", | ||
| "maplibre-gl": "^5.0.0", | ||
| "matrix-encrypt-attachment": "^1.0.3", | ||
| "matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop", | ||
| "matrix-js-sdk": "github:matrix-org/matrix-js-sdk#33e4db98814edb1e100ac8b9721cf84de998f429", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. The Docs job now fails with ENOENT (also confirmed on the PR's CI). The Docs job on this PR dies with: right after the The culprit is Fix options, simplest first: point it at A useful habit: when you
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done: 28c6671 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3. Two smaller things that the pin quietly changes. a) The b) Neither of these blocks the PR on its own. I am flagging them so you see the full blast radius of a one-line dependency change, and so we can decide together whether to fix them here or in a follow-up.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3a Done: 4061e45 For 3b, I suggest fixing it together with the TypeScript check, since it can only be validated once that job passes again. I have registered it on the Basecamp card “[CI] Static Analysis quebrado: TypeScript”, so it will be addressed there (resolving olm types by package name instead of the nested path).
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3b Done: c58c695, in fix-crypto-wasm-types. Instead of resolving olm's types by package name, I removed the dead include from That branch also declares |
||
| "matrix-widget-api": "^1.16.1", | ||
| "memoize-one": "^6.0.0", | ||
| "mime": "^4.0.4", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. This pin breaks every Jest suite (confirmed on the PR's CI).
Look at the
Jest (Element Web) (1)job on this PR:Test Suites: 357 failed, 357 total / Tests: 0 total, and the first error isOn
developtwo weeks ago the same job was 13 failed / 344 passed, so this is new.Why does it happen? The fork imports the SDK's TypeScript sources (
matrix-js-sdk/src/...), so Jest must transpile them. Jest decides what to transpile usingtransformIgnorePatternsinapps/web/jest.config.ts#L51. That pattern says "ignore everything undernode_modules/.pnpm/except this allowlist". Before your change the SDK was a symlink to a git checkout outside.pnpm, so the pattern never matched it and it got transformed. Now the SDK lives inside.pnpm/matrix-js-sdk@https+++codeload.../, the pattern matches, and Jest hands raw TypeScript to Node.Fix: add
matrix-js-sdkto that negative-lookahead allowlist (the.pnpmdirectory name starts withmatrix-js-sdk@, so the plain name is enough). Then runpnpm testlocally inapps/webbefore pushing. Watching a test count go from 0 to ~340 passing is the kind of evidence you want to quote in the PR description.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: e7bc13c