Skip to content
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

devops: support FF_CHECKOUT_PATH to customize browser checkout #4607

Merged

Conversation

aslushnikov
Copy link
Collaborator

TL;DR:

Firefox build fails since checkout is deeply nested and hits max arg
size on windows.

Problem

  1. We're trying to setup a windows-based github self-hosted runner in the
    playwright-internal repo.
  2. Commands on Windows are mandated to have total arguments length
    less then 32767 characters.
  3. On windows, github self-hosted runner framework puts repository
    checkout at c:\w\playwright-internal\playwright-internal
  4. Our scripts create a checkout at
    c:\w\playwright-internal\playwright-internal\browser_patches\firefox\checkout
  5. One of the scripts in Firefox buildsystem tries to execute a command,
    passing lots of absolute paths to various webidl's
  6. The command fails due to restriction in (2)

Solution

This patch introduces a new variable FF_CHECKOUT_PATH that is
respected by all browser-related scripts. This way we'll be able
to checkout firefox to c:\firefox and avoid hitting long arguments
limit.

**Preamble**

1. We're trying to setup a windows-based github self-hosted runner in the
  playwright-internal repo.
1. Commands on Windows are mandated to have total arguments length
  less then 32767 characters.
1. On windows, github self-hosted runner framework puts repository
checkout at `c:\w\playwright-internal\playwright-internal`
1. Our scripts create a checkout at
`c:\w\playwright-internal\playwright-internal\browser_patches\firefox\checkout`
1. One of the scripts in Firefox buildsystem tries to execute a command,
passing lots of absolute paths to various webidl's
1. The command fails due to restriction in (2)

**Problem**

Firefox build fails since checkout is deeply nested and hits max arg
size on windows.

**Solution**

This patch introduces a new variable `FF_CHECKOUT_PATH` that is
respected by all browser-related scripts. This way we'll be able
to checkout firefox to `c:\firefox` and avoid hitting long arguments
limit.
@aslushnikov aslushnikov merged commit 6fe7d9c into microsoft:master Dec 5, 2020
@aslushnikov aslushnikov deleted the support-ff-checkout-path-variable branch December 5, 2020 02:46
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.

1 participant