[SDESK-7925] Fix broken build because in superdesk repo#5196
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR moves TypeScript type-checking out of the webpack dev-server build and into a dedicated npm run typecheck step that runs in CI, unblocking builds that were failing after upstream extension build changes.
Changes:
- Remove
ForkTsCheckerWebpackPlugin-based type-checking fromwebpack.config.js. - Add
tasks/typecheck.jsand wire it intonpm test; adjustlintto stop runningtscdirectly. - Fix surfaced TypeScript/style issues in a few in-tree extensions (e.g., date-fns import style and CSS logical properties).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| webpack.config.js | Removes webpack-time type-checking configuration. |
| tasks/typecheck.js | Adds a CI-run typecheck script covering core + in-tree extensions. |
| scripts/extensions/videoEditor/src/VideoTimeline/VideoTimeline.tsx | Switches inline positioning styles to logical properties (insetInlineStart). |
| scripts/extensions/videoEditor/src/VideoTimeline/BarIcon.tsx | Switches inline positioning style to logical property (insetBlockStart). |
| scripts/extensions/datetimeField/src/editor.tsx | Consolidates date-fns imports to named exports from date-fns. |
| package.json | Adds typecheck step into test and removes tsc from lint. |
| Gruntfile.js | Converts some grunt task callbacks to arrow functions (no functional change intended). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
petrjasek
approved these changes
May 29, 2026
The "Install Playwright Browsers" step (npx playwright install --with-deps) was hanging for hours on some shards. The --with-deps part runs apt-get, and on ubuntu-latest (now 24.04) needrestart throws an interactive prompt that blocks forever with no TTY. Changes: - Set DEBIAN_FRONTEND=noninteractive and NEEDRESTART_MODE=a so the apt step cannot block on a prompt. - Add timeout-minutes: 15 so a stuck install fails fast instead of burning the full job budget. - Install chromium only (the sole enabled project in playwright.config.ts) instead of all three browsers. - Cache ~/.cache/ms-playwright keyed on the @playwright/test version, so browser binaries are downloaded only on a cache miss. On a hit we still run install-deps (OS libs are not cached) but skip the download.
Playwright 1.58.x has a yauzl stream-destruction regression (microsoft/playwright#40747) that hangs the chromium zip extraction on Node 24.16.0 and later. Symptom: the Chrome download completes (100%), then the extraction worker dies and the parent waits forever on dead IPC pipes. We saw exactly that on the playwright-e2e (24, *, 2) shards: 17 seconds of apt, 2 seconds of Chrome download, then 15 minutes of silence until the step timeout fires. Node 22 shards completed fine because they ship Node 22.x, which is not affected. The fix landed upstream in @playwright/test 1.60.0 (merged May 9 2026). Bumping the dependency range from ~1.58.0 to ^1.60.0 picks it up; the lock file resolves to 1.60.0. Verified locally: playwright --version reports 1.60.0; playwright test --list parses the existing config and enumerates all 194 tests across 72 files with no failures.
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.
Purpose
To fix the broken build because of the changes on #5177
What has changed
typecheck(tasks/typecheck.js, included innpmtest and thereforeCI) type-checks core plus every in-tree extension, each against its own tsconfig.Belongs to: SDESK-7925