Skip to content

issue: skip WebM tests that can't open on the shipped Electron - #343360

Merged
Bryan Chen (bryanchen-d) merged 1 commit into
mainfrom
copilot/vscode/skip-webm-feed-electron
Oct 21, 2026
Merged

Bryan Chen (bryanchen-d) merged 1 commit into
mainfrom
copilot/vscode/skip-webm-feed-electron

Conversation

@bryanchen-d

Copy link
Copy Markdown
Collaborator

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 cleanup
  • Issue reporter media decoding › does not invent a duration for a WebM recording without duration metadata
  • NativeRecordingService › only advertises and round-trips playable video/webm without OS capture: PipelineStatus::DEMUXER_ERROR_COULD_NOT_OPEN: FFmpegDemuxer: open context failed

The cause is that product builds test on the shipped Electron from the vscode-electron-prebuilt feed. On that build, Chromium's FFmpeg demuxer can't open a WebM container at all, even one that MediaRecorder just produced. MediaRecorder.isTypeSupported and canPlayType still 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, because test.skip returns 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:

  • media decoding: 38 passing, 2 pending
  • NativeRecordingService: 36 passing, 1 pending
  • media import: 39 passing
  • IssueFormService: 21 passing
  • IssueReporterOverlay: 43 passing

The 3 pending tests are the skipped ones. eslint is clean on both changed files.

Authored with Copilot

Copilot AI balanced review requested due to automatic review settings October 21, 2026 21:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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/webm variant in a parameterized NativeRecordingService test and guards .timeout() when skipped.
  • Skips the webm variant 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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryanchen-d

Copy link
Copy Markdown
Collaborator Author

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 DEMUXER_ERROR_COULD_NOT_OPEN, each linked to #343345, and keeps the ?.timeout() guard that #343355 is missing. Main stays red on Unit Tests (Electron) without it. Bryan can't approve because GitHub lists him as the author.

Co-authored with Copilot

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.

4 participants