Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 0 additions & 98 deletions .buildkite/pipeline-windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,101 +11,3 @@ steps:
& "C:\Program Files\Git\bin\bash.exe" .\tests\validate_get_libc_version_format
agents:
queue: windows

- group: ":windows: install_windows_10_sdk Tests"
steps:
- label: ":windows: install_windows_10_sdk Tests - Version file with valid format and version"
command: |
"19041" | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 -ExpectedExitCode 0
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with valid format and version"

- label: ":windows: install_windows_10_sdk Tests - Version file with one new line"
command: |
"19041`n" | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 -ExpectedExitCode 0
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with one new line"

- label: ":windows: install_windows_10_sdk Tests - Version file with more than one new line"
command: |
"19041`n`n" | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 -ExpectedExitCode 0
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with more than one new line"

- label: ":windows: install_windows_10_sdk Tests - Version file with leading whitespaces"
command: |
" 19041" | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 -ExpectedExitCode 0
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with leading whitespaces"

- label: ":windows: install_windows_10_sdk Tests - Version file with trailing whitespaces"
command: |
"19041 " | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 -ExpectedExitCode 0
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with trailing whitespaces"

- label: ":windows: install_windows_10_sdk Tests - Version file with a word"
command: |
"not an integer" | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 `
-ExpectedExitCode 1 `
-ExpectedErrorKeyphrase "Expected an integer"
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with a word"

- label: ":windows: install_windows_10_sdk Tests - Missing version file"
command: |
.\tests\test_install_windows_10_sdk.ps1 `
-ExpectedExitCode 1 `
-ExpectedErrorKeyphrase "No Windows 10 SDK version file found at .windows-10-sdk-version"
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with a word"

- label: ":windows: install_windows_10_sdk Tests - Version file with version number that is not in the allowed list"
command: |
"12345" | Out-File .windows-10-sdk-version
.\tests\test_install_windows_10_sdk.ps1 `
-ExpectedExitCode 1 `
-ExpectedErrorKeyphrase "Invalid Windows 10 SDK version: 12345"
agents:
queue: windows
notify:
- github_commit_status:
context: "install_windows_10_sdk Tests - Version file with version number that is not in the allowed list"

- group: ":snake: install_python Tests"
steps:
- label: ":snake: install_python Tests - Basic dry run with Chocolatey available"
command: |
.\tests\test_install_python.ps1 -ExpectedExitCode 0
agents:
queue: windows
notify:
- github_commit_status:
context: "install_python Tests - Basic dry run with Chocolatey available"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ _None._
### Breaking Changes

- Removed the `prepare_windows_host_for_app_distribution.ps1` script, given what it was installing is now already pre-provisioned in our custom Windows AMI. [#196]
- Removed the scripts to install Python and Windows 10 SDK, given they come pre-installed in our custom Windows AMI. [#197]
- Removed script to refresh the environment after a Chocolatey install. This functionality is also already available in the custom Windows AMI. [#197]

### New Features

Expand Down
91 changes: 0 additions & 91 deletions bin/install_python.ps1

This file was deleted.

136 changes: 0 additions & 136 deletions bin/install_windows_10_sdk.ps1

This file was deleted.

25 changes: 0 additions & 25 deletions bin/path_aware_refreshenv.ps1

This file was deleted.

15 changes: 11 additions & 4 deletions bin/setup_windows_code_signing.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# Installs the code signing certificate for Windows app distribution.
#
# The certificate is stored in our AWS SecretsManager storage (`windows-code-signing-certificate` secret ID).
# It is decoded and stored in the `certificate.pfx` file.
<#
.SYNOPSIS
Installs the code signing certificate for Windows app distribution.

The certificate is stored in our AWS SecretsManager storage (`windows-code-signing-certificate` secret ID).
It is decoded and stored in the `certificate.pfx` file.
#>

# Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"

Write-Output "--- :lock_with_ink_pen: Download Code Signing Certificate"

$certificateBinPath = "certificate.bin"

$EncodedText = aws secretsmanager get-secret-value --secret-id windows-code-signing-certificate `
| jq -r '.SecretString' `
| Out-File $certificateBinPath

$certificatePfxPath = "certificate.pfx"

certutil -decode $certificateBinPath $certificatePfxPath

If ($LastExitCode -ne 0) {
Expand Down
Loading
Loading