Repository navigation
Sanity tests for Linux - #290072
Merged
Merged
Sanity tests for Linux#290072
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ladislau Szomoru (@lszomoru)Matched files:
|
Contributor
There was a problem hiding this comment.
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');
roblourens
previously approved these changes
Jan 24, 2026
Dmitriy Vasyura (dmitrivMS)
disabled auto-merge
January 24, 2026 01:38
roblourens
approved these changes
Jan 24, 2026
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.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #279402
Added Linux containers for supported platforms.
Updated tests to run and pass on all targets.