Repository navigation
issue: skip WebM tests that can't open on the shipped Electron - #343360
Conversation
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
Right now the WebM variant is skipped unconditionally for all environments. If WebM demuxing works… · New The same long rationale/issue link for the WebM demux failure is duplicated across multiple skips… · New The same long rationale/issue link for the WebM demux failure is duplicated across multiple skips… · New
What changed in this PR
Skips a small set of WebM-related Electron unit tests that fail in product builds due to the shipped Electron’s inability to demux WebM, keeping CI green while the underlying Electron/FFmpeg gap is tracked.
Changes:
- Conditionally skips the
video/webmvariant in a parameterizedNativeRecordingServicetest and guards.timeout()when skipped. - Skips the
webmvariant in a parameterized “media decoding” test and skips one additional WebM-specific duration test.
| File | Description |
|---|---|
| src/vs/workbench/contrib/issue/test/electron-browser/nativeRecordingService.test.ts | Skips WebM parameter case and avoids .timeout() crash when using test.skip. |
| src/vs/workbench/contrib/issue/test/browser/issueReporterMedia.test.ts | Skips the failing WebM cases in media decoding tests pending the tracked issue. |
Review effort: Lite
Product builds test on the Electron from the `vscode-electron-prebuilt` feed. There, Chromium can't open any WebM container (`PipelineStatus::DEMUXER_ERROR_COULD_NOT_OPEN: FFmpegDemuxer: open context failed`), including a clip MediaRecorder just produced. After #343343, three tests still require WebM to decode and keep main red on every OS (def 111 run 487783). Skip only those, linking #343345. Also make the recording test's `.timeout` safe when it's skipped: `test.skip` returns nothing in this runner. Co-authored-by: Copilot <[email protected]>
5aeed2f to
767c2ba
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
Optional chaining on the test return value makes failures easier to miss (e.g., if the runner ever… · New Optional chaining on the test return value makes failures easier to miss (e.g., if the runner ever… · New The same long rationale is duplicated in multiple places. To reduce drift and make future updates… · New The same long rationale is duplicated in multiple places. To reduce drift and make future updates… · New
3 resolved since last review
Review effort: Lite
|
Giuseppe Cianci (@Giuspepe) could you approve this follow-up to #343343? It skips exactly the three WebM cases that still fail on the shipped (feed) Electron with
|


Follow-up to #343343. Main is still red in product builds (ADO def 111) on
Unit Tests (Electron)on all 3 OSes. The def 111 validation of #343343's head, 487783, fixed all 10 casing tests, but 3 WebM tests still fail on Linux, Windows and macOS:Issue reporter media decoding › decodes real webm or explicitly rejects an unsupported container or codec, with complete cleanupIssue reporter media decoding › does not invent a duration for a WebM recording without duration metadataNativeRecordingService › only advertises and round-trips playable video/webm without OS capture:PipelineStatus::DEMUXER_ERROR_COULD_NOT_OPEN: FFmpegDemuxer: open context failedThe cause is that product builds test on the shipped Electron from the
vscode-electron-prebuiltfeed. On that build, Chromium's FFmpeg demuxer can't open a WebM container at all, even one thatMediaRecorderjust produced.MediaRecorder.isTypeSupportedandcanPlayTypestill report support, so the encoder/decoder checks in #343343 don't catch it.Change (test-only): this skips exactly those 3 tests, using only the WebM case where a test is parameterized. Each skip has a comment that quotes the demuxer error and links #343345, where the likely user-facing gap is tracked. It also adds a
?.timeout()guard, becausetest.skipreturns nothing in this runner and would otherwise crash the file at load.Giuseppe Cianci (@Giuspepe), please approve this, or push an equivalent if you'd prefer a different shape. The goal is to keep tonight's 23:00 UTC insider green.
Validation: I ran the issue-reporter suites locally in Electron:
NativeRecordingService: 36 passing, 1 pendingIssueFormService: 21 passingIssueReporterOverlay: 43 passingThe 3 pending tests are the skipped ones. eslint is clean on both changed files.