Skip to content

[CI] Handle failure to download Playwright dependencies #9493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 23, 2025

This PR implements caching for Playwright dependencies in GitHub Actions workflows to prevent repeated downloads and handle network failures gracefully.

Changes

  1. Added Caching Mechanism

    • Created a reusable workflow (setup-playwright-cache.yml) that caches Playwright dependencies per OS
    • Added daily scheduled workflow (cache-playwright-deps.yml) to refresh the cache
    • Modified run-tests.yml to use cached dependencies
  2. Improved Reliability

    • Added retry mechanism with exponential backoff for dependency downloads
    • Enabled enhanced NuGet retry settings to handle transient network issues
    • Set cache keys based on OS and date for proper invalidation
  3. Configuration

    • Cache refreshes daily to ensure dependencies stay updated
    • Added manual workflow trigger to force cache refresh when needed
    • Implemented OS-specific caching for Windows, macOS, and Ubuntu

This should prevent test failures due to timeouts when downloading Playwright dependencies by only downloading once per day per OS and using cached versions for all test runs.

Fixes #9257.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] [CI] Handle failure to download Playwright dependencies [CI] Handle failure to download Playwright dependencies May 23, 2025
@Copilot Copilot AI requested a review from radical May 23, 2025 21:15
Copilot finished work on behalf of radical May 23, 2025 21:15
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.

[CI] Handle failure to download Playwright dependencies
2 participants