Check EnableLongPaths registry value before adding

This adds a check to verify whether the EnableLongPaths registry value
already exists on the system prior to attempting to add it. In cases
where it already exists, we see the followign permissions failure on the bots:

    New-ItemProperty : Requested registry access is not allowed.
    At line:1 char:1
    + New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSy ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...trol\FileSystem:String) [New-ItemProperty], Securit
       yException
        + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.NewItemPropertyCommand

Bug: https://github.com/flutter/flutter/issues/82184
Change-Id: I447606a70da7607c7ce2a89742a9706af9960bb2
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/13340
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Chris Bracken <cbracken@google.com>
27 files changed
tree: 4696d65419cb68c9e0972ece3023ce2ab1fa5c09
  1. infra/
  2. recipe_modules/
  3. recipes/
  4. .gitignore
  5. .style.yapf
  6. AUTHORS
  7. branch_recipes.py
  8. LICENSE
  9. OWNERS
  10. README.md
  11. recipes.py
README.md

Flutter LUCI Recipes

This repository contains Flutter's LUCI recipes. For the LUCI infrastructure config, see flutter/infra on GitHub. Actual builds can be seen at ci.chromium.org.

Config

Tricium configurations recipes repo.

Recipe Branching for Releases

The script branch_recipes.py is used to generate new copies of the LUCI recipes for a beta release. See Recipe Branching for Releases for more information. For usage:

$ ./branch_recipes.py --help