Skip to content

Sanity tests for Linux - #290072

Merged
Dmitriy Vasyura (dmitrivMS) merged 7 commits into
mainfrom
dev/dmitriv/sanity-tests
Jan 24, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 7 commits into
mainfrom
dev/dmitriv/sanity-tests

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Jan 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #279402

Added Linux containers for supported platforms.
Updated tests to run and pass on all targets.

Copilot AI review requested due to automatic review settings January 24, 2026 01:09
@vs-code-engineering

vs-code-engineering Bot commented Jan 24, 2026 •

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ladislau Szomoru (@lszomoru)

Matched files:

  • build/azure-pipelines/common/sanity-tests.yml
  • build/azure-pipelines/product-sanity-tests.yml

@vs-code-engineering vs-code-engineering Bot added this to the January 2026 milestone Jan 24, 2026

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.

Pull request overview

This PR adds comprehensive Linux container support for sanity tests across multiple distributions and architectures. The changes refactor the test infrastructure to use capability-based test selection, allowing tests to run on appropriate platforms automatically.

Changes:

  • Introduced capability detection system to automatically determine which tests can run on the current platform
  • Added 8 Linux distribution container definitions (Alpine, CentOS, Debian 10/12, Fedora, openSUSE, Red Hat, Ubuntu) with support for amd64, arm64, and arm32 architectures
  • Refactored test registration from platform-based conditionals to capability-based filtering
  • Migrated to ES modules (type: "module" in package.json, .js extensions in imports)
  • Added platform-specific runner scripts and Docker container orchestration
  • Expanded Azure Pipelines test matrix to cover 30+ platform/architecture combinations

Reviewed changes

Copilot reviewed 30 out of 31 changed files in this pull request and generated 30 comments.

Show a summary per file
File Description
test/sanity/tsconfig.json Updated to ES2022 modules with bundler resolution, enabled noUnusedParameters
test/sanity/src/detectors.ts New file implementing platform capability detection (OS, architecture, package managers, desktop, browser)
test/sanity/src/context.ts Major refactoring: options object, capability-based testing, unified entry point methods, Linux package management
test/sanity/src/main.ts Updated to use new TestContext API with options object and capability detection
test/sanity/src/index.ts Added ES module support with import.meta.url, forced exit after test completion
test/sanity/src/uiTest.ts ES module imports, adjusted timeouts for test reliability
test/sanity/src/*.test.ts Converted from platform conditionals to capability-based test registration
test/sanity/scripts/.sh/.cmd New platform-specific runner scripts for Windows, macOS, Ubuntu, and Docker
test/sanity/containers/*.dockerfile Docker container definitions for 8 Linux distributions
test/sanity/containers/entrypoint.sh Common container entrypoint with X11 and D-Bus setup
test/sanity/package.json Added "type": "module", moved TypeScript to devDependencies, removed postinstall
build/azure-pipelines/*.yml Renamed parameters to camelCase, expanded test matrix to 30+ jobs
test/sanity/README.md Comprehensive documentation of scripts, containers, and CI/CD pipeline
Files not reviewed (1)
  • test/sanity/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)

test/sanity/src/uiTest.ts:107

  • Removed a 1000ms timeout after the 'File: Save' command, which might cause race conditions if the file hasn't finished saving before the next test operation. If this was removed because it's no longer needed, consider adding a comment explaining why, or verify that there's proper waiting logic elsewhere.
		await this.runCommand(page, 'File: Save');

Comment thread test/sanity/src/context.ts Resolved
Comment thread test/sanity/src/context.ts Resolved
Comment thread test/sanity/tsconfig.json Resolved
Comment thread test/sanity/src/context.ts Resolved
Comment thread test/sanity/scripts/run-docker.sh Resolved
Comment thread test/sanity/src/uiTest.ts Resolved
roblourens
roblourens previously approved these changes Jan 24, 2026
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the dev/dmitriv/sanity-tests branch January 24, 2026 02:49
Osvaldo Ortega (osortega) pushed a commit that referenced this pull request Jan 25, 2026
Added Linux containers for supported platforms.
Updated tests to run and pass on all targets.
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate sanity testing

3 participants