<commit_before>{
  "variables": {
    "pipeline_prefix": "local-testing-",
    "hashed_pipeline_prefix": "0b7ad56c-671b-5244-9f36-01f92928abf8",
    "geode_docker_image": "unset",
    "gcp_project": "unset",
    "gcp_network": "default",
    "gcp_subnetwork": "default",
    "use_internal_ip": "false",
    "java_build_version": "8",
    "packer_ttl": ""
  },
  "builders": [
    {
      "image_name": "{{user `hashed_pipeline_prefix`}}wgb-{{timestamp}}",
      "image_family": "{{user `pipeline_prefix`}}windows-geode-builder",
      "type": "googlecompute",
      "project_id": "{{user `gcp_project`}}",
      "network": "{{user `gcp_network`}}",
      "subnetwork": "{{user `gcp_subnetwork`}}",
      "source_image_family": "{{ user `base_family`}}",
      "disk_size": "100",
      "machine_type": "n1-standard-4",
      "communicator": "winrm",
      "winrm_username": "geode",
      "winrm_insecure": true,
      "winrm_use_ssl": true,
      "state_timeout": "10m",
      "metadata": {
        "windows-startup-script-cmd": "winrm quickconfig -quiet & net user /add geode & net localgroup administrators geode /add & winrm set winrm/config/service/auth @{Basic=\"true\"}"
      },
      "zone": "us-central1-a",
      "tags": ["packer"],
      "omit_external_ip": false,
      "use_internal_ip": "{{user `use_internal_ip`}}",
      "labels": {
        "time-to-live": "{{user `packer_ttl`}}",
        "instance_type": "packer"
      }
    }
  ],
  "provisioners": [
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "Install-WindowsFeature Containers"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force",
        "Install-Module DockerMsftProvider -Force",
        "Install-Package Docker -ProviderName DockerMsftProvider -Force",
        "New-Item \"C:\\ProgramData\\Docker\\config\\daemon.json\" -Force",
        "Set-Content \"C:\\ProgramData\\Docker\\config\\daemon.json\" '{\"registry-mirrors\": [\"https://mirror.gcr.io\"]}'",
        "Set-Service wuauserv -StartupType Disabled",
        "Stop-Service wuauserv"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "choco install -y git cygwin cyg-get adoptopenjdk11",
        "Move-Item \"C:\\Program Files\\AdoptOpenJDK\\jdk-11*\" c:\\java11",
        "choco install -y jdk8 -params 'installdir=c:\\\\java8tmp;source=false'",
        "Move-Item \"C:\\java8tmp\" c:\\java8",
        "choco install -y openssh --version 192.168.3.11 /SSHServerFeature",
        "refreshenv",
        "$OldPath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name PATH).Path",
        "$NewPath = $OldPath + ';' + 'c:\\Program Files\\Git\\bin' + ';' + 'c:\\tools\\cygwin\\bin'",
        "Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name PATH -Value $NewPath",
        "refreshenv",
        "cyg-get rsync"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "winrm set winrm/config/service '@{AllowUnencrypted=\"true\"}'",
        "New-NetFirewallRule -DisplayName sshd -Direction inbound -Action allow -Protocol tcp -LocalPort 22",
        "New-NetFirewallRule -DisplayName \"Docker containers\" -LocalAddress 172.16.17.32/8 -Action allow -Direction inbound",
        "New-Service -name sshd -description 'OpenSSH sshd server' -binarypathname 'c:\\Program Files\\OpenSSH-Win64\\sshd.exe' -startuptype automatic",
        "write-output '>>>>>>>>>> Modify sshd config to comment use of administrators authorized key file <<<<<<<<<<'",
        "(Get-Content \"C:\\Program Files\\OpenSSH-Win64\\sshd_config_default\") -replace '(Match Group administrators)', '#$1' -replace '(\\s*AuthorizedKeysFile.*)', '#$1' | Out-File \"C:\\Program Files\\OpenSSH-Win64\\sshd_config_default\" -encoding UTF8"
      ]
    },
    {
      "type": "powershell",
      "inline": [

        "write-output '>>>>>>>>>> Cloning geode repo <<<<<<<<<<'",
        "& 'c:\\Program Files\\Git\\bin\\git.exe' clone -b develop --depth 1 https://github.com/apache/geode.git geode",
        "pushd geode",
        "$Env:JAVA_HOME = 'C:\\java8'",
        ".\\gradlew.bat --no-daemon resolveDependencies",
        "popd",

        "write-output '>>>>>>>>>> Killing all java processes <<<<<<<<<<'",
        "kill -name java -force -ErrorAction ignore",
        "Start-Sleep 10",

        "write-output '>>>>>>>>>> List remaining java processes for debug purposes <<<<<<<<<<'",
        "ps -Name java -ErrorAction ignore",

        "write-output '>>>>>>>>>> Final cleanup <<<<<<<<<<'",
        "rm -force -recurse geode"
      ]
    },
    {
      "type": "windows-restart",
      "restart_timeout": "30m"
    },
    {
      "type": "powershell",
      "inline": [
        "GCESysprep -NoShutDown"
      ]
    }
  ]
}
<commit_msg>Fix for chocolatey TLS deprecations in CI. (#4669)<commit_after>{
  "variables": {
    "pipeline_prefix": "local-testing-",
    "hashed_pipeline_prefix": "0b7ad56c-671b-5244-9f36-01f92928abf8",
    "geode_docker_image": "unset",
    "gcp_project": "unset",
    "gcp_network": "default",
    "gcp_subnetwork": "default",
    "use_internal_ip": "false",
    "java_build_version": "8",
    "packer_ttl": ""
  },
  "builders": [
    {
      "image_name": "{{user `hashed_pipeline_prefix`}}wgb-{{timestamp}}",
      "image_family": "{{user `pipeline_prefix`}}windows-geode-builder",
      "type": "googlecompute",
      "project_id": "{{user `gcp_project`}}",
      "network": "{{user `gcp_network`}}",
      "subnetwork": "{{user `gcp_subnetwork`}}",
      "source_image_family": "{{ user `base_family`}}",
      "disk_size": "100",
      "machine_type": "n1-standard-4",
      "communicator": "winrm",
      "winrm_username": "geode",
      "winrm_insecure": true,
      "winrm_use_ssl": true,
      "state_timeout": "10m",
      "metadata": {
        "windows-startup-script-cmd": "winrm quickconfig -quiet & net user /add geode & net localgroup administrators geode /add & winrm set winrm/config/service/auth @{Basic=\"true\"}"
      },
      "zone": "us-central1-a",
      "tags": ["packer"],
      "omit_external_ip": false,
      "use_internal_ip": "{{user `use_internal_ip`}}",
      "labels": {
        "time-to-live": "{{user `packer_ttl`}}",
        "instance_type": "packer"
      }
    }
  ],
  "provisioners": [
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "Install-WindowsFeature Containers"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force",
        "Install-Module DockerMsftProvider -Force",
        "Install-Package Docker -ProviderName DockerMsftProvider -Force",
        "New-Item \"C:\\ProgramData\\Docker\\config\\daemon.json\" -Force",
        "Set-Content \"C:\\ProgramData\\Docker\\config\\daemon.json\" '{\"registry-mirrors\": [\"https://mirror.gcr.io\"]}'",
        "Set-Service wuauserv -StartupType Disabled",
        "Stop-Service wuauserv"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12",
        "Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "$ErrorActionPreference = \"Stop\"",
        "Set-ExecutionPolicy Bypass -Scope Process -Force",
        "choco install -y git cygwin cyg-get adoptopenjdk11",
        "Move-Item \"C:\\Program Files\\AdoptOpenJDK\\jdk-11*\" c:\\java11",
        "choco install -y jdk8 -params 'installdir=c:\\\\java8tmp;source=false'",
        "Move-Item \"C:\\java8tmp\" c:\\java8",
        "choco install -y openssh --version 192.168.3.11 /SSHServerFeature",
        "refreshenv",
        "$OldPath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name PATH).Path",
        "$NewPath = $OldPath + ';' + 'c:\\Program Files\\Git\\bin' + ';' + 'c:\\tools\\cygwin\\bin'",
        "Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name PATH -Value $NewPath",
        "refreshenv",
        "cyg-get rsync"
      ]
    },
    {
      "type": "powershell",
      "inline": [
        "winrm set winrm/config/service '@{AllowUnencrypted=\"true\"}'",
        "New-NetFirewallRule -DisplayName sshd -Direction inbound -Action allow -Protocol tcp -LocalPort 22",
        "New-NetFirewallRule -DisplayName \"Docker containers\" -LocalAddress 172.16.17.32/8 -Action allow -Direction inbound",
        "New-Service -name sshd -description 'OpenSSH sshd server' -binarypathname 'c:\\Program Files\\OpenSSH-Win64\\sshd.exe' -startuptype automatic",
        "write-output '>>>>>>>>>> Modify sshd config to comment use of administrators authorized key file <<<<<<<<<<'",
        "(Get-Content \"C:\\Program Files\\OpenSSH-Win64\\sshd_config_default\") -replace '(Match Group administrators)', '#$1' -replace '(\\s*AuthorizedKeysFile.*)', '#$1' | Out-File \"C:\\Program Files\\OpenSSH-Win64\\sshd_config_default\" -encoding UTF8"
      ]
    },
    {
      "type": "powershell",
      "inline": [

        "write-output '>>>>>>>>>> Cloning geode repo <<<<<<<<<<'",
        "& 'c:\\Program Files\\Git\\bin\\git.exe' clone -b develop --depth 1 https://github.com/apache/geode.git geode",
        "pushd geode",
        "$Env:JAVA_HOME = 'C:\\java8'",
        ".\\gradlew.bat --no-daemon resolveDependencies",
        "popd",

        "write-output '>>>>>>>>>> Killing all java processes <<<<<<<<<<'",
        "kill -name java -force -ErrorAction ignore",
        "Start-Sleep 10",

        "write-output '>>>>>>>>>> List remaining java processes for debug purposes <<<<<<<<<<'",
        "ps -Name java -ErrorAction ignore",

        "write-output '>>>>>>>>>> Final cleanup <<<<<<<<<<'",
        "rm -force -recurse geode"
      ]
    },
    {
      "type": "windows-restart",
      "restart_timeout": "30m"
    },
    {
      "type": "powershell",
      "inline": [
        "GCESysprep -NoShutDown"
      ]
    }
  ]
}

{'fraction_non_alphanumeric': 0.18876364286992306, 'fraction_numerical': 0.015566290928609769, 'mean_word_length': 2.691875825627477, 'pattern_counts': {'":': 104, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5933672', 'n_tokens_mistral': 3852, 'n_tokens_neox': 3707, 'n_words': 701}