Skip to content

ci: enable e2e test CI on Windows#293

Merged
branchseer merged 21 commits intomainfrom
11-05-ci_enable_e2e_test_on_windows_ci
Nov 9, 2025
Merged

ci: enable e2e test CI on Windows#293
branchseer merged 21 commits intomainfrom
11-05-ci_enable_e2e_test_on_windows_ci

Conversation

@branchseer
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member Author

branchseer commented Nov 5, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer force-pushed the 11-05-ci_enable_e2e_test_on_windows_ci branch from 040642d to 369c7d5 Compare November 5, 2025 14:17
@branchseer branchseer changed the title update ci: enable e2e test CI on Windows Nov 5, 2025
@branchseer branchseer force-pushed the 11-05-ci_enable_e2e_test_on_windows_ci branch 3 times, most recently from 4d841fb to bb2f497 Compare November 6, 2025 04:08
@branchseer branchseer changed the base branch from 11-04-ci_fix_windows_ci_issues to graphite-base/293 November 6, 2025 05:54
@branchseer branchseer force-pushed the 11-05-ci_enable_e2e_test_on_windows_ci branch from bb2f497 to 6a0ae96 Compare November 6, 2025 05:55
@graphite-app graphite-app bot changed the base branch from graphite-base/293 to main November 6, 2025 05:56
@branchseer branchseer force-pushed the 11-05-ci_enable_e2e_test_on_windows_ci branch from 6a0ae96 to a51de37 Compare November 6, 2025 05:56
@branchseer branchseer mentioned this pull request Nov 7, 2025
branchseer and others added 9 commits November 8, 2025 16:54
Add "ignoredPlatforms": ["win32"] to snap tests that use builtin vite commands (not `vite run`). These tests use commands like `vite install`, `vite lint`, `vite build`, `vite test`, `vite lib`, `vite fmt`, `vite dev`, `vite cache clean`, and `vite doc` which need to be skipped on Windows CI.

Modified 18 test cases to exclude Windows platform.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add "ignoredPlatforms": ["win32"] to snap tests that have echo scripts in their package.json. The echo command behaves differently on Windows (different syntax and behavior), causing these tests to fail or produce incorrect results.

Modified 7 test cases:
- associate-existing-cache
- cache-miss-command-change
- exit-code
- individual-cache-for-adt-args
- plain-terminal-ui
- task-no-trailing-newline
- test-nested-tasks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	packages/tools/src/snap-test.ts
@branchseer branchseer force-pushed the 11-05-ci_enable_e2e_test_on_windows_ci branch from a51de37 to 2d4844c Compare November 8, 2025 09:09
@branchseer branchseer force-pushed the 11-05-ci_enable_e2e_test_on_windows_ci branch from 71640c6 to a9ce16d Compare November 8, 2025 09:55
@branchseer branchseer marked this pull request as ready for review November 8, 2025 11:09
Copilot AI review requested due to automatic review settings November 8, 2025 11:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 support for Windows in snap tests by implementing timeouts for test execution and marking most existing tests to be skipped on Windows. The main changes include adding a 30-second timeout mechanism for test commands, ensuring the process exits properly after tests complete, and marking tests as Windows-incompatible where needed.

Key changes:

  • Implemented a 30-second timeout for test command execution with proper handling
  • Added explicit process.exit(0) after test completion to handle pending timed-out steps
  • Updated Rust dependencies to use a feature branch of vite-task for Windows compatibility
  • Marked 70+ existing snap tests to be skipped on Windows platform
  • Added one new test case (vite-task-smoke) that runs on all platforms
  • Updated CI workflow to include Windows in test matrix

Reviewed Changes

Copilot reviewed 87 out of 88 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/tools/src/snap-test.ts Added timeout mechanism and process exit handling for test runner
packages/cli/snap-tests/vite-task-smoke/* New test case demonstrating task runner caching functionality
packages//snap-tests//steps.json Added ignoredPlatforms configuration to skip tests on win32
Cargo.toml Updated vite_task dependencies to feature branch for Windows support
Cargo.lock Updated dependency checksums and versions
.github/workflows/ci.yml Added Windows to test matrix with separate execution path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 8, 2025 11:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 95 out of 96 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member Author

branchseer commented Nov 9, 2025

Merge activity

  • Nov 9, 9:44 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Nov 9, 9:44 AM UTC: @branchseer merged this pull request with Graphite.

@branchseer branchseer merged commit 08631e2 into main Nov 9, 2025
11 checks passed
@branchseer branchseer deleted the 11-05-ci_enable_e2e_test_on_windows_ci branch November 9, 2025 09:44
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.

3 participants